Class DirectionsModifier


  • public class DirectionsModifier
    extends java.lang.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()
     
     
    • Method Detail

      • getTags

        public java.util.List<TagModifier> getTags()
        List of elements (tags) that identify the links taking into consideration when applying DirectionsModifier operations.
      • getTagsString

        public java.util.List<java.lang.String> getTagsString()
        List of tags as strings
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object