Package es.situm.sdk.directions
Class DirectionsModifier
- java.lang.Object
-
- es.situm.sdk.directions.DirectionsModifier
-
public class DirectionsModifier extends java.lang.ObjectIt 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 Summary
Nested 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectionsModifier.ActionsgetAction()Returns the action option that will be applied with this modifier.java.util.List<TagModifier>getTags()List of elements (tags) that identify the links taking into consideration when applyingDirectionsModifieroperations.java.util.List<java.lang.String>getTagsString()List of tags as stringsjava.lang.StringtoString()
-
-
-
Method Detail
-
getAction
public DirectionsModifier.Actions getAction()
Returns the action option that will be applied with this modifier.- Returns:
- one of
DirectionsModifier.Actionsvalue
-
getTags
public java.util.List<TagModifier> getTags()
List of elements (tags) that identify the links taking into consideration when applyingDirectionsModifieroperations.
-
getTagsString
public java.util.List<java.lang.String> getTagsString()
List of tags as strings
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-