Package com.graphhopper.routing.ev
Class ExternalBooleanEncodedValue
java.lang.Object
com.graphhopper.routing.ev.ExternalBooleanEncodedValue
- All Implemented Interfaces:
BooleanEncodedValue
,EncodedValue
Works like a normal encoded value, but the underlying data is not stored within the graph
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphhopper.routing.ev.EncodedValue
EncodedValue.InitializerConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBool
(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess) getName()
This method returns the hierarchical name like vehicle.type of this EncodedValueint
This method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling nextboolean
void
setBool
(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess, boolean value)
-
Constructor Details
-
ExternalBooleanEncodedValue
-
-
Method Details
-
setBool
- Specified by:
setBool
in interfaceBooleanEncodedValue
-
getBool
- Specified by:
getBool
in interfaceBooleanEncodedValue
-
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 interfaceEncodedValue
- Returns:
- used bits
- See Also:
-
EncodedValue.InitializerConfig.next(int)
-
getName
Description copied from interface:EncodedValue
This method returns the hierarchical name like vehicle.type of this EncodedValue- Specified by:
getName
in interfaceEncodedValue
-
isStoreTwoDirections
public boolean isStoreTwoDirections()- Specified by:
isStoreTwoDirections
in interfaceEncodedValue
- Returns:
- true if this EncodedValue can store a different value for its reverse direction
-