Class ExternalBooleanEncodedValue

java.lang.Object
com.graphhopper.routing.ev.ExternalBooleanEncodedValue
All Implemented Interfaces:
BooleanEncodedValue, EncodedValue

public class ExternalBooleanEncodedValue extends Object implements BooleanEncodedValue
Works like a normal encoded value, but the underlying data is not stored within the graph
  • Constructor Details

    • ExternalBooleanEncodedValue

      public ExternalBooleanEncodedValue(String name, boolean storeTwoDirections)
  • Method Details

    • setBool

      public void setBool(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess, boolean value)
      Specified by:
      setBool in interface BooleanEncodedValue
    • getBool

      public boolean getBool(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess)
      Specified by:
      getBool in interface BooleanEncodedValue
    • init

      public int init(EncodedValue.InitializerConfig init)
      Description copied from interface: EncodedValue
      This method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling next
      Specified by:
      init in interface EncodedValue
      Returns:
      used bits
      See Also:
      • EncodedValue.InitializerConfig.next(int)
    • getName

      public String getName()
      Description copied from interface: EncodedValue
      This method returns the hierarchical name like vehicle.type of this EncodedValue
      Specified by:
      getName in interface EncodedValue
    • isStoreTwoDirections

      public boolean isStoreTwoDirections()
      Specified by:
      isStoreTwoDirections in interface EncodedValue
      Returns:
      true if this EncodedValue can store a different value for its reverse direction