public class ExtendedNodeAccess extends Object implements NodeAccess
NodeAccess that allows adding additional points| Constructor and Description |
|---|
ExtendedNodeAccess(NodeAccess nodeAccess,
PointList additionalNodes,
int firstAdditionalNodeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureNode(int nodeId) |
int |
getDimension() |
double |
getEle(int nodeId) |
double |
getLat(int nodeId) |
double |
getLon(int nodeId) |
int |
getTurnCostIndex(int nodeId) |
boolean |
is3D() |
void |
setNode(int nodeId,
double lat,
double lon,
double ele) |
void |
setTurnCostIndex(int nodeId,
int additionalValue)
Sets the turn cost index for this node, using
TurnCostStorage.NO_TURN_ENTRY means there
are no turn costs at this node. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNodepublic ExtendedNodeAccess(NodeAccess nodeAccess, PointList additionalNodes, int firstAdditionalNodeId)
nodeAccess - the node access this class delegates toadditionalNodes - the additional points that should be usedfirstAdditionalNodeId - the node id that is used for the first additional point (all other nodes will
use consecutive ids)public void ensureNode(int nodeId)
ensureNode in interface PointAccesspublic boolean is3D()
is3D in interface PointAccesspublic int getDimension()
getDimension in interface PointAccesspublic double getLat(int nodeId)
getLat in interface PointAccesspublic double getLon(int nodeId)
getLon in interface PointAccesspublic double getEle(int nodeId)
getEle in interface PointAccesspublic int getTurnCostIndex(int nodeId)
getTurnCostIndex in interface NodeAccessTurnCostStorage.NO_TURN_ENTRY
in case no turn costs were stored for this nodepublic void setNode(int nodeId,
double lat,
double lon,
double ele)
setNode in interface PointAccesspublic void setTurnCostIndex(int nodeId,
int additionalValue)
NodeAccessTurnCostStorage.NO_TURN_ENTRY means there
are no turn costs at this node.
setTurnCostIndex in interface NodeAccessCopyright © 2012–2022. All rights reserved.