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 TypeMethodDescriptionbooleangetBool(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess) getName()This method returns the hierarchical name like vehicle.type of this EncodedValueintThis method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling nextbooleanvoidsetBool(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess, boolean value)
-
Constructor Details
-
ExternalBooleanEncodedValue
-
-
Method Details
-
setBool
- Specified by:
setBoolin interfaceBooleanEncodedValue
-
getBool
- Specified by:
getBoolin interfaceBooleanEncodedValue
-
init
Description copied from interface:EncodedValueThis method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling next- Specified by:
initin interfaceEncodedValue- Returns:
- used bits
- See Also:
-
getName
Description copied from interface:EncodedValueThis method returns the hierarchical name like vehicle.type of this EncodedValue- Specified by:
getNamein interfaceEncodedValue
-
isStoreTwoDirections
public boolean isStoreTwoDirections()- Specified by:
isStoreTwoDirectionsin interfaceEncodedValue- Returns:
- true if this EncodedValue can store a different value for its reverse direction
-