Class LinkImpl<N extends DirectedVertex,​LS extends EdgeSegment>

    • Field Detail

      • linkId

        protected long linkId
        unique internal identifier
    • Constructor Detail

      • LinkImpl

        protected LinkImpl​(LinkImpl<N,​LS> other,
                           boolean deepCopy)
        Copy constructor
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
      • LinkImpl

        protected LinkImpl​(IdGroupingToken groupId,
                           N nodeA,
                           N nodeB)
        Constructor which injects link length directly
        Parameters:
        groupId - , contiguous id generation within this group for instances of this class
        nodeA - the first node in the link
        nodeB - the second node in the link
      • LinkImpl

        protected LinkImpl​(IdGroupingToken groupId,
                           N nodeA,
                           N nodeB,
                           double length)
        Constructor which injects link length directly
        Parameters:
        groupId - , contiguous id generation within this group for instances of this class
        nodeA - the first node in the link
        nodeB - the second node in the link
        length - the length of the link