Class OptDirectedXYNode

  • All Implemented Interfaces:
    Serializable, DirectedGraphable, DirectedNode, Graphable, XYNode, Node

    public class OptDirectedXYNode
    extends OptDirectedNode
    implements XYNode
    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.
    Justin Deoliveira, Refractions Research Inc,
    See Also:
    OptDirectedNode, Serialized Form
    • Constructor Detail

      • OptDirectedXYNode

        public OptDirectedXYNode()
    • Method Detail

      • getCoordinate

        public Coordinate getCoordinate()
        This method creates a new Coordinate object upon each call.
        Specified by:
        getCoordinate in interface XYNode
        A coordinate.
        See Also:
      • setCoordinate

        public void setCoordinate​(Coordinate c)
        This method strips only the x and y ordinates from the Coordinate object and stores them.
        Specified by:
        setCoordinate in interface XYNode
        c - A coordinate.
        See Also: