public class RouteInformation
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 |
---|
RouteInformation()
Constructor
|
RouteInformation(long cPtr,
boolean cMemoryOwn)
Only for internal use - don't try to call this from Java.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Kills rubbish if owning the object.
|
protected void |
finalize() |
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
long |
getDuration()
Returns the driving duration.
|
java.util.Date |
getEstimatedTimeOfArrival() |
long |
getLength()
Returns the length of the route [m].
|
TollInformation |
getTollInformation()
Returns the toll information.
|
boolean |
hasLegalRestrictions() |
boolean |
hasRestrictionsAtDestination() |
boolean |
hasRestrictionsAtStart() |
boolean |
hasRestrictionsOnRoute() |
void |
setDuration(long duration)
Sets the driving duration.
|
void |
setLegalRestrictions(boolean restriction) |
void |
setLength(long length)
Sets the route length.
|
void |
setRestrictionsAtDestination(boolean restriction) |
void |
setRestrictionsAtStart(boolean restriction) |
void |
setRestrictionsOnRoute(boolean restriction) |
void |
setTollInformation(TollInformation tollInformation)
Sets the toll information.
|
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public RouteInformation()
public RouteInformation(long cPtr, boolean cMemoryOwn)
public java.util.Date getEstimatedTimeOfArrival()
public long getLength()
public void setLength(long length)
length
- - length to set [m].public long getDuration()
public void setDuration(long duration)
duration
- - the duration to set [s].public TollInformation getTollInformation()
public void setTollInformation(TollInformation tollInformation)
tollInformation
- - the toll information for the routepublic boolean hasRestrictionsOnRoute()
public void setRestrictionsOnRoute(boolean restriction)
public boolean hasRestrictionsAtStart()
public void setRestrictionsAtStart(boolean restriction)
public boolean hasRestrictionsAtDestination()
public void setRestrictionsAtDestination(boolean restriction)
public boolean hasLegalRestrictions()
public void setLegalRestrictions(boolean restriction)
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()