Class OptDirectedXYNode
Object
OptGraphable
OptDirectedNode
OptDirectedXYNode
- All Implemented Interfaces:
- Serializable,- DirectedGraphable,- DirectedNode,- Graphable,- XYNode,- Node
Optimized implementation of XYNode extended from OptDirectedNode. Instead of storing an underlying coordinate object,
 only a set of (x,y) values are stored eliminating the storage of additional oordinate dimensions.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class OptDirectedNodeOptDirectedNode.RelatedIterator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis method creates a new Coordinate object upon each call.voidThis method strips only the x and y ordinates from the Coordinate object and stores them.Methods inherited from class OptDirectedNodeadd, addIn, addOut, getDegree, getEdge, getEdges, getEdges, getInDegree, getInEdge, getInEdgeArray, getInEdges, getInEdges, getInRelated, getOutDegree, getOutEdge, getOutEdgeArray, getOutEdges, getOutEdges, getOutRelated, getRelated, remove, removeIn, removeOut, setInDegree, setOutDegreeMethods inherited from class OptGraphablegetCount, getID, getObject, isVisited, setCount, setID, setObject, setVisitedMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GraphablegetCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited
- 
Constructor Details- 
OptDirectedXYNodepublic OptDirectedXYNode()
 
- 
- 
Method Details- 
getCoordinateThis method creates a new Coordinate object upon each call.- Specified by:
- getCoordinatein interface- XYNode
- Returns:
- A coordinate.
- See Also:
 
- 
setCoordinateThis method strips only the x and y ordinates from the Coordinate object and stores them.- Specified by:
- setCoordinatein interface- XYNode
- Parameters:
- c- A coordinate.
- See Also:
 
 
-