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 | getElevation(int nodeId) | 
| double | getLat(int nodeId) | 
| double | getLatitude(int nodeId) | 
| double | getLon(int nodeId) | 
| double | getLongitude(int nodeId) | 
| int | getTurnCostIndex(int nodeId) | 
| boolean | is3D() | 
| void | setNode(int nodeId,
       double lat,
       double lon) | 
| 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_ENTRYmeans there
 are no turn costs at this node. | 
public 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 getLatitude(int nodeId)
getLatitude in interface PointAccesspublic double getLongitude(int nodeId)
getLongitude in interface PointAccesspublic double getElevation(int nodeId)
getElevation 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)
setNode in interface PointAccesspublic 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 NodeAccesspublic double getLat(int nodeId)
getLat in interface PointAccesspublic double getLon(int nodeId)
getLon in interface PointAccesspublic double getEle(int nodeId)
getEle in interface PointAccessCopyright © 2012–2020. All rights reserved.