public class NavigationCue
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NavigationCue.ConditionalNavigationCue
Class representing the guts of a Navigation Cue.
|
static class |
NavigationCue.TriggerMode
Defines how the cue should be triggered--based on distance away from a point or estimated
time until the point is reached.
|
Constructor and Description |
---|
NavigationCue(java.lang.String id,
java.lang.String voiceCue,
java.lang.String textCue)
Constructs a new Navigation Cue.
|
Modifier and Type | Method and Description |
---|---|
void |
addCue(NavigationCue.TriggerMode triggerMode,
int triggerValue)
Adds a cue to the NavigationCue.
|
java.util.List<NavigationCue.ConditionalNavigationCue> |
getCues()
Gets a copy of the map associating departure UIDs to ConditionalNav cues.
|
java.lang.String |
getID()
Get the id of the waypoint that is associated with this Navigation Cue
|
java.lang.String |
getTextCue()
Gets the text cue associated with this cue.
|
java.lang.String |
getVoiceCue()
Gets the voice cue associated with this cue.
|
static NavigationCue |
inverseCue(java.lang.String newCueId,
NavigationCue cue)
Creates a new cue that is the inverse of the one that is passed as a parameter.
|
public NavigationCue(java.lang.String id, java.lang.String voiceCue, java.lang.String textCue)
id
- the id for the navigation cuevoiceCue
- the voice cue to be spokentextCue
- the text cue to be displayedpublic void addCue(NavigationCue.TriggerMode triggerMode, int triggerValue)
triggerMode
- distance or timetriggerValue
- the trigger value related to the modepublic java.lang.String getID()
public java.lang.String getVoiceCue()
public java.lang.String getTextCue()
public java.util.List<NavigationCue.ConditionalNavigationCue> getCues()
public static NavigationCue inverseCue(java.lang.String newCueId, NavigationCue cue)
newCueId
- The ID that new cue should havecue
- The cue to create the inverse of