public class ManeuverDescription
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
jniCMemOwn |
protected long |
jniCPtr |
com.ptvag.navigation.sdk.NativeObject |
parent |
Constructor and Description |
---|
ManeuverDescription()
Constructor
|
ManeuverDescription(long cPtr,
boolean cMemoryOwn)
Only for internal use - don't try to call this from Java.
|
ManeuverDescription(long cPtr,
com.ptvag.navigation.sdk.NativeObject parent) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Kills rubbish if owning the object.
|
protected void |
finalize() |
boolean |
getBorder()
Returns true if maneuver is a border.
|
int |
getCategory()
Returns the road category of road after maneuver [0..4].
|
int |
getCountryId()
Returns the country id.
|
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
int |
getDistFromStart()
Returns the distance from start [m].
|
int |
getDrivingDirection()
Returns the driving direction - [0..360[, 0 is East.
|
boolean |
getEnterFerry()
Is maneuver entering a ferry.
|
short |
getExitNr()
Returns the exit number in a round-about.
|
GuidanceKind |
getGuidanceKind()
Returns the kind of current guidance as of next menoeuvre.
|
short |
getJunctionType()
Returns the type of junction this maneuver belongs to.
|
boolean |
getLeaveFerry()
Is maneuver leaving a ferry.
|
ManeuverType |
getManeuverType()
Returns the type of the maneuver - @link ManeuverType.
|
GuidanceKind |
getNextGuidanceKind()
Returns the kind of next guidance as after next maneuver.
|
Position |
getPos()
Returns the coordinates of the maneuver.
|
int |
getRoadType()
Returns the road type of road after maneuver [0..14]
|
boolean |
getRoundaboutManeuver()
Returns the information if it's a maneuver related to a round-about.
|
SignPostInfo |
getSignPostInfo()
Delivers the SignPostInfo of the ManeuverDescription.
|
java.lang.String |
getStreetName()
Returns the street name of segment after passing the maneuver.
|
boolean |
getTBaseCrossing()
Returns if the maneuver is at a T-like crossing (i.e. two streets leaving
the current street, one about 90° left, one about 90° right).
|
int |
getTimeFromStart()
Returns the time from start [s].
|
int |
getTunnelMode()
Returns the tunnel mode.
|
ManeuverDirection |
getTurnOrient()
Returns the a turn orientation -
ManeuverDirection . |
ManeuverWeight |
getTurnWeight()
Returns the weight of the maneuver -
ManeuverWeight . |
boolean |
hasSignPostInfo()
Delivers the information, wether the ManeuverDesrciption has a SignPostInfo
or not.
|
void |
setBorder(boolean border)
Sets if the maneuver is a border.
|
void |
setCategory(int category)
Sets the road category of road after maneuver [0..4].
|
void |
setCountryId(int countryId)
Sets the country id.
|
void |
setDistFromStart(int distFromStart)
Sets the distance from start [m].
|
void |
setDrivingDirection(int drivingDirection)
Sets the driving direction - [0..360[, 0 is East.
|
void |
setEnterFerry(boolean enterFerry)
Sets the switch if the maneuver is entering a ferry.
|
void |
setExitNr(short exitNr)
Sets the exit number in a round-about.
|
void |
setGuidanceKind(GuidanceKind guidanceKind)
Sets the kind of current guidance as of next menoeuvre.
|
void |
setHasSignPostInfo(boolean available)
Sets the flag, that signs if the ManeuverDescription has a SignPostInfo
or not.
|
void |
setJunctionType(short junctionType)
Sets the type of junction this maneuver belongs to.
|
void |
setLeaveFerry(boolean leaveFerry)
Sets the switch if the maneuver is leaving a ferry.
|
void |
setManeuverType(ManeuverType maneuverType)
Sets the type of the maneuver - @link ManeuverType.
|
void |
setNextGuidanceKind(GuidanceKind nextGuidanceKind)
Sets the kind of next guidance as after next maneuver.
|
void |
setPos(Position position)
Sets the coordinates of the maneuver.
|
void |
setRoadType(int roadType)
Sets the road type of road after maneuver [0..14].
|
void |
setRoundaboutManeuver(boolean roundaboutManeuver)
Sets if it's a maneuver related to a round-about.
|
void |
setSignPostInfo(SignPostInfo signPost)
Assigns the SignPostInfo to the ManeuverDescription.
|
void |
setStreetName(java.lang.String streetName)
Sets the street name of segment after passing the maneuver.
|
void |
setTBaseCrossing(boolean tBaseCrossing)
Sets if the maneuver is at a T-like crossing (i.e. two streets leaving
the current street, one about 90° left, one about 90° right).
|
void |
setTimeFromStart(int timeFromStart)
Sets the time from start [s].
|
void |
setTunnelMode(int tunnelMode)
Sets the tunnel mode.
|
void |
setTurnOrient(ManeuverDirection maneuverDirection)
Sets the a turn orientation -
ManeuverDirection . |
void |
setTurnWeight(ManeuverWeight maneuverWeight)
Sets the weight of the maneuver -
ManeuverWeight . |
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public ManeuverDescription()
public ManeuverDescription(long cPtr, boolean cMemoryOwn)
public ManeuverDescription(long cPtr, com.ptvag.navigation.sdk.NativeObject parent)
public Position getPos()
public void setPos(Position position)
position
- the coordinates of the maneuver.public int getDrivingDirection()
public void setDrivingDirection(int drivingDirection)
drivingDirection
- the driving directionpublic int getRoadType()
public void setRoadType(int roadType)
roadType
- the road type of road after maneuver.public int getCategory()
public void setCategory(int category)
category
- the road category of road after maneuver.public int getCountryId()
public void setCountryId(int countryId)
countryId
- the country id.public int getDistFromStart()
public void setDistFromStart(int distFromStart)
distFromStart
- the distance from start.public int getTimeFromStart()
public void setTimeFromStart(int timeFromStart)
timeFromStart
- the time from start.public int getTunnelMode()
public void setTunnelMode(int tunnelMode)
tunnelMode
- - the tunnel mode to set.public boolean getRoundaboutManeuver()
public void setRoundaboutManeuver(boolean roundaboutManeuver)
roundaboutManeuver
- - is the maneuver related to a round-about.public boolean getTBaseCrossing()
public void setTBaseCrossing(boolean tBaseCrossing)
tBaseCrossing
- - is the maneuver at a T-like crossingpublic ManeuverType getManeuverType()
public void setManeuverType(ManeuverType maneuverType)
maneuverType
- the type of the maneuver.public ManeuverDirection getTurnOrient()
ManeuverDirection
.public void setTurnOrient(ManeuverDirection maneuverDirection)
ManeuverDirection
.maneuverDirection
- the a turn orientation to set.public ManeuverWeight getTurnWeight()
ManeuverWeight
.public void setTurnWeight(ManeuverWeight maneuverWeight)
ManeuverWeight
.maneuverWeight
- - the weight of the maneuver to be set.public short getExitNr()
public void setExitNr(short exitNr)
exitNr
- - the exit number in a round-about to set.public GuidanceKind getGuidanceKind()
public void setGuidanceKind(GuidanceKind guidanceKind)
guidanceKind
- - the kind of current guidance as of next menoeuvre to set.public GuidanceKind getNextGuidanceKind()
public void setNextGuidanceKind(GuidanceKind nextGuidanceKind)
nextGuidanceKind
- - the kind of next guidance as after next maneuver.public boolean getBorder()
public void setBorder(boolean border)
border
- - is maneuver a border?public boolean getEnterFerry()
public void setEnterFerry(boolean enterFerry)
enterFerry
- - the maneuver is entering a ferry?public boolean getLeaveFerry()
public void setLeaveFerry(boolean leaveFerry)
leaveFerry
- - the maneuver is leaving a ferry?public short getJunctionType()
public void setJunctionType(short junctionType)
junctionType
- - the type of junction.public java.lang.String getStreetName()
public void setStreetName(java.lang.String streetName)
streetName
- - the street name of segment after passing the maneuver.public boolean hasSignPostInfo()
public SignPostInfo getSignPostInfo()
public void setHasSignPostInfo(boolean available)
available
- - true if it has a SignPostInfo - else false.public void setSignPostInfo(SignPostInfo signPost)
signPost
- the SignPostInfo to assign.public static long getCPtr(com.ptvag.navigation.sdk.NativeObject obj)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void delete()