Class VirtualNetworkImpl

    • Field Detail

      • connectoidEdges

        protected final ConnectoidEdgesImpl connectoidEdges
        Container for connectoid edges
      • connectoidSegments

        protected final ConnectoidSegmentsImpl connectoidSegments
        Container for connectoid edge segments
      • centroidVertices

        protected final CentroidVerticesImpl centroidVertices
        Container for centroid vertices
    • Constructor Detail

      • VirtualNetworkImpl

        public VirtualNetworkImpl​(IdGroupingToken tokenId)
        Constructor
        Parameters:
        tokenId - contiguous id generation for instances of this class
      • VirtualNetworkImpl

        protected VirtualNetworkImpl​(VirtualNetworkImpl other,
                                     boolean deepCopy,
                                     GraphEntityDeepCopyMapper<ConnectoidEdge> connectoidEdgeMapper,
                                     GraphEntityDeepCopyMapper<ConnectoidSegment> connectoidSegmentMapper,
                                     GraphEntityDeepCopyMapper<CentroidVertex> centroidVertexMapper)
        Copy constructor
        Parameters:
        other - to clone
        deepCopy - when true, create a deep copy, shallow copy otherwise
        connectoidEdgeMapper - to use for tracking mapping between original and copied entity (may be null)
        connectoidSegmentMapper - to use for tracking mapping between original and copied entity (may be null)
        centroidVertexMapper - to use for tracking mapping between original and copied entity (may be null)
    • Method Detail

      • clear

        public void clear()
        free up memory by clearing contents for garbage collection
        Specified by:
        clear in interface VirtualNetwork
      • reset

        public void reset()
        All components should be able to reset going back to some representative initial state
        Specified by:
        reset in interface VirtualNetwork
        Overrides:
        reset in class Network
      • logInfo

        public void logInfo​(String prefix)
        Log general information on this network to the user
        Specified by:
        logInfo in class Network
        Parameters:
        prefix - to use
      • isEmpty

        public boolean isEmpty()
        Verify if entire network is empty
        Specified by:
        isEmpty in interface VirtualNetwork
        Specified by:
        isEmpty in class Network
        Returns:
        true if network is empty, false otherwise
      • createConjugate

        public ConjugateVirtualNetworkImpl createConjugate​(IdGroupingToken idToken)
        Create a conjugate version of this virtual network, also known as the edge-to-vertex-dual representation, where all connectoidedges/edge segments become (dangling) conjugate vertices.

        It is recommended to first create the conjugate of this virtual network BEFORE creating conjugates of network layers. The latter takes a conjugate zoning as input such that it can connect the conjugate virtual nodes to the conjugate network layer where appropriate, otherwise these connections are ignored

        Specified by:
        createConjugate in interface VirtualNetwork
        Parameters:
        idToken - to use for conjugate entity creation
        Returns:
        conjugate version of this virtual network's edges/edgesgments