Interface LogicalSubNetwork

    • Method Detail

      • getNumberOfInternalNodes

        int getNumberOfInternalNodes()
        Returns the number of internal nodes in the sub-network.
        Returns:
        number of internal nodes
      • getNumberOfExternalNodes

        int getNumberOfExternalNodes()
        Returns the number of external nodes in the sub-network.
        Returns:
        number of external nodes
      • getNumberOfInternalLinks

        int getNumberOfInternalLinks()
        Returns the number of internal links in the sub-network.
        Returns:
        number of internal links
      • getNumberOfBoundaryLinks

        int getNumberOfBoundaryLinks()
        Returns the number of boundary links in the sub-network, which includes both incoming links and outgoing links.
        Returns:
        number of boundary links
      • getNumberOfIncomingLinks

        int getNumberOfIncomingLinks()
        Returns the number of incoming links to the sub-network.
        Returns:
        number of incoming links
      • getNumberOfOutgoingLinks

        int getNumberOfOutgoingLinks()
        Returns the number of outgoing links from the sub-network.
        Returns:
        number of outgoing links
      • getInternalNodeIds

        long[] getInternalNodeIds()
        Returns all the internal node IDs in the sub-network.
        Returns:
        array of internal node IDs
      • getInternalBoundaryNodeIds

        long[] getInternalBoundaryNodeIds()
        Returns all the internal node IDs in the sub-network without a link to any external nodes.
        Returns:
        array of internal boundary node IDs
      • getInternalNonBoundaryNodeIds

        long[] getInternalNonBoundaryNodeIds()
        Returns all the internal node IDs in the sub-network without a link to any external nodes.
        Returns:
        array of internal non-boundary node IDs
      • getExternalNodeIds

        long[] getExternalNodeIds()
        Returns all the external node IDs in the sub-network.
        Returns:
        array of external node IDs
      • isInternalNode

        boolean isInternalNode​(long nodeId)
        Checks whether the input node is an internal node or not.
        Parameters:
        nodeId - node id
        Returns:
        true, if the input node is an internal node; false, otherwise.
      • isInternalLink

        boolean isInternalLink​(long linkId)
        Checks whether the input link is an internal link or not.
        Parameters:
        linkId - link ID
        Returns:
        true, if the input link is an internal link; false, otherwise.
      • isIncomingLink

        boolean isIncomingLink​(long linkId)
        Checks whether the input link is an incoming link or not.
        Parameters:
        linkId - link ID
        Returns:
        true, if the input link is an incoming link; false, otherwise.
      • isOutgoingLink

        boolean isOutgoingLink​(long linkId)
        Checks whether the input link is an outgoing link or not.
        Parameters:
        linkId - link ID
        Returns:
        true, if the input link is an outgoing link; false, otherwise.
      • getInternalLinkIds

        long[] getInternalLinkIds()
        Returns all the internal link IDs in the sub-network.
        Returns:
        array of internal link IDs.
      • getBoundaryLinkIds

        long[] getBoundaryLinkIds()
        Returns all the boundary link IDs in the sub-network.
        Returns:
        array of boundary link IDs.
      • getIncomingLinkIds

        long[] getIncomingLinkIds()
        Returns all the incoming link IDs in the sub-network.
        Returns:
        array of incoming link IDs.
      • getOutgoingLinkIds

        long[] getOutgoingLinkIds()
        Returns all the outgoing link IDs in the sub-network.
        Returns:
        array of outgoing link IDs.
      • addNode

        void addNode​(LogicalNetNode node,
                     boolean isInternal)
        Adds a logical node to the sub-network.
        Parameters:
        node - logical node
        isInternal - set to true, if the node is an internal node; false, otherwise.