Package es.situm.sdk.directions
Class DirectionsModifier
- java.lang.Object
- 
- es.situm.sdk.directions.DirectionsModifier
 
- 
 public class DirectionsModifier extends Object It represents a modification applied to a graph in order to compute a @{link Route} The basic modifier is considered to be an Action represented by a @{link Actions} options and elements represented by a list of @{link TagModifier} instances where this action would be applied. An example of modifier could be:List<TagModifier> prioritizeTags = new ArrayList<>(); prioritizeTags.add(new TagModifier.Builder().tag("Public").build()); DirectionsModifier modifier = new DirectionsModifier.Builder() .action(DirectionsModifier.Actions.PRIORITIZE) .tags(prioritizeTags) .build()
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDirectionsModifier.ActionsActions to be processed when computing a routestatic classDirectionsModifier.BuilderHelper class to create well formed instances of DirectionsModifier class.static classDirectionsModifier.LEGACY_OPTIONSAdditional options to keep compatibility with previous versions.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectionsModifier.ActionsgetAction()Returns the action option that will be applied with this modifier.List<TagModifier>getTags()List of elements (tags) that identify the links taking into consideration when applyingDirectionsModifieroperations.List<String>getTagsString()List of tags as stringsStringtoString()
 
- 
- 
- 
Method Detail- 
getActionpublic DirectionsModifier.Actions getAction() Returns the action option that will be applied with this modifier.- Returns:
- one of DirectionsModifier.Actionsvalue
 
 - 
getTagspublic List<TagModifier> getTags() List of elements (tags) that identify the links taking into consideration when applyingDirectionsModifieroperations.
 
- 
 
-