This class provides a special kind of Navigation developed for waste disposal or winter road clearance
More...
Inheritance diagram for FollowMeRoute:Static Public Member Functions | |
| static void | addFollowMeRouteListener (FollowMeRouteListener listener) |
| static FollowMeRoute | getPausedFollowMeRoute () |
| static FollowMeRoute | init (final String nmeaFileName) |
| static void | removeAllFollowMeRouteListeners () |
| static void | removeFollowMeRouteListener (FollowMeRouteListener listener) |
A follow me route is a navigation process that guides along a route which is specified in a gps log file. If the route is left, the routing guides to the position where the route was left and continues to guide based on the log file. The route is filled with points on the map which are removed / collected by driving over the positions.
The nmea file used for follow me may contain special tags at certain positions (see Gps.addActionToLog() and Gps.addEventToLog() ) which will fire an event if reached(FollowMeRouteListener.followMeAction() and FollowMeRouteListener.followMeEvent() )
An action defines a predefined event (FmrActionType) which will also affect the followMe behavior while events are purely userdefined and only fire the described event callback.
The defined actions result in the following behavior:
The last received action is valid until a new action is received (e.g. after a MTA_FMR_ACTION_TYPE "MTA_FMR_ACT_COLLECT_LEFT" action, dots have to be collected on the left side until the next event is received
|
static |
| ApiError addRemark | ( | final int | code, |
| final String | remark | ||
| ) |
Adds a remark to the remarks file. The path for the remarks files can be configured in the settings.ini section [FOLLOWME] key "RemarksFilePath".
| remark | - The remark to be written to the remarks file |
| void addTaskListener | ( | TaskListener | listener | ) |
| Task< FollowMeRoute > calculate | ( | final boolean | fromCurrentPosition, |
| final boolean | doContinue | ||
| ) |
Calculates the route asynchronously.
| fromCurrentPosition | - Add the approaching part from the current position to the start point of the real FollowMeRoute. |
| doContinue | - Add the approaching part from the current position to the point of the real FollowMeRoute, where the route was paused. |
| ApiError continueFollowMeRoute | ( | ) |
Continues on the segment where the follow me route was paused. This can be used to continue at the same route segment at a later point in time.
| ApiError discardNextMeters | ( | final int | meters, |
| final boolean | later | ||
| ) |
| later | - True: The events will be collected later (currently missed) or (false) will never be collected anymore and not displayed on the map (discarded). |
| ApiError discardNextSegments | ( | final int | segmentsInFront, |
| final boolean | later | ||
| ) |
Discards the next n street segments
| later | - True: The events will be collected later (currently missed) or (false) will never be collected anymore and not displayed on the map (discarded). |
| ApiError discardPreviousEvents | ( | final boolean | later | ) |
Discards the previous missed events
| later | - True: The events will be collected later (currently missed) or (false) will never be collected anymore and not displayed on the map (discarded). |
|
inherited |
| Iterable< FollowMeRouteEvent > getFollowMeEventsIterator | ( | final int | maxEvents, |
| final double | maxDistance | ||
| ) |
Get an iterator to a list of upcoming follow me events. The list can be limited both by number of events and by distance.
| maxEvents | - maximum number of events to return, unlimited if 0 |
| maxDistance | - maximum route length for which events are to be returned, unlimited if 0 |
| Iterable< FollowMeRouteInterval > getFollowMeIntervalIterator | ( | ) |
Get an iterator to a list of intervals. A FollowMe interval is a coherent part of the route with a unique MTA_FOLLOW_ME_INTERVAL_TYPE.
| Polygon getMissedCollectionPointsExtent | ( | ) |
|
static |
Returns paused follow me route. If now route was paused check the last error via Api.getLastError() For the returned follow me object no route calculation is necessary. It will be calculated automatically by the next FollowMeRoute.continueFollowMeRoute() call.
| int getRemainingCollectionPointsNum | ( | ) |
| FollowMeState getStatus | ( | ) |
| Waypoint highlightSegment | ( | final int | segmentsInFront | ) |
Sets the green arrow n street segments in front of the current position on the route. If the parameter segmentsInFront is zero, the green arrow will be deleted. The returned waypoint has a user attribute 'segmentsInFront', which contains the (probably corrected) value of segmentsInFront. Use this value to check, if your committed value has exceeded the number of route segments. This value can be -1, if an error occurred. Use this function in combination with FollowMeRoute.discardNextSegments()
| segmentsInFront |
|
static |
Creates a FollowMeRoute object. If the returned object is invalid, the handed file could not be found.
| nmeaFileName | - The full path to the nmea or csv file OR the relative path on the FollowMeServer. |
| ApiError pauseFollowMeRoute | ( | ) |
Stops the follow me process and remembers the current position on the follow me route. During a paused follow me route, a normal route calculation and navigation can be started. A paused follow me route is persistently stored and can be continued even after the api is re-initialized. See FollowMeRoute.getPausedFollowMeRoute()
|
static |
| void removeAllTaskListeners | ( | ) |
|
static |
| void removeTaskListener | ( | TaskListener | listener | ) |
Shows the remaining / unreached collection points. The map viewer uses the layer mmPacman. You cannot hide this Layer during a FMR guidance.
| show | - Shows (true) or hides (false) the Layer. |
| mapviewer | - The map to show the points. |
Shows the remaining / unreached transfer parts. Use this function only for overview purposes. The content of this layer is only refreshed in this function call. Not automatically during any ordinary FMR guidance. The map viewer uses the layer mmFmrTransfer. You cannot hide this Layer during a FMR guidance.
| show | - Shows (true) or hides (false) the Layer. |
| mapviewer | - The map to show the points. |
| ApiError start | ( | final boolean | simulation | ) |
| ApiError stopFollowMeRoute | ( | ) |
Stops the FollowMe Route. It cannot be continued anymore.
| ApiError terminate | ( | ) |
Terminates this FollowMe Route and deletes all paused settings, etc.