public class Tour
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 |
---|
Tour(java.io.File f) |
Tour(java.lang.String fileName) |
Tour(WayPoint start) |
Modifier and Type | Method and Description |
---|---|
void |
addStation(WayPoint wayPoint)
Add a regular station to a tour
|
void |
addStations(NativeArray<WayPoint> wayPoints)
Add multiple regular stations to a formerly created tour.
|
void |
addSVPs(NativeArray<SVPWayPoint> wayPoints)
Add SVP stations to a tour
An SVP station is a set of coordinates + direction which describe an approximation of a
route to a destination.
|
void |
delete()
Kills rubbish if owning the object.
|
protected void |
finalize() |
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
WayPoint |
getDestination(short index)
Get a particular destination of a tour by their index.
|
int |
getDestinationCount()
Get the number of destinations of the tour.
|
NativeArray<SVPWayPoint> |
getDestinationSVPs(int index)
Get the SVPs of a tour station.
|
int |
getDestinationType(short index)
Get the type of a particular destination, identified by their index.
|
WayPoint |
getStartStation()
Get the start station of the tour.
|
void |
saveTour(java.io.File file)
Save a tour to a bcr file.
|
void |
saveTour(java.lang.String fileName)
Save a tour to a bcr file.
|
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public Tour(WayPoint start) throws NavigationException
NavigationException
public Tour(java.io.File f) throws NavigationException
NavigationException
public Tour(java.lang.String fileName) throws NavigationException
NavigationException
public void addSVPs(NativeArray<SVPWayPoint> wayPoints) throws NavigationException
wayPoints
- The provided SVP route coordinatesNavigationException
public void addStations(NativeArray<WayPoint> wayPoints) throws NavigationException
wayPoints
- An array of waypoints to add to the tour.NavigationException
public void addStation(WayPoint wayPoint) throws NavigationException
wayPoint
- The coordinate (and direction) of the station.NavigationException
public void saveTour(java.io.File file) throws NavigationException
file
- The file to saveNavigationException
public void saveTour(java.lang.String fileName) throws NavigationException
fileName
- The name of the file to saveNavigationException
public WayPoint getStartStation() throws NavigationException
NavigationException
public WayPoint getDestination(short index) throws NavigationException
index
- The index of the station in the tourNavigationException
public NativeArray<SVPWayPoint> getDestinationSVPs(int index) throws NavigationException
index
- The index of the station in the tourNavigationException
public int getDestinationCount() throws NavigationException
NavigationException
public int getDestinationType(short index) throws NavigationException
index
- The index of the station in the tourNavigationException
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()