Interface LogicalLink

    • Method Detail

      • getId

        long getId()
        Returns the link ID.
        Returns:
        link ID
      • getLevel

        int getLevel()
        Returns the link level.
        Returns:
        link level
      • getStartNodeId

        long getStartNodeId()
        Returns the start node ID.
        Returns:
        start node ID
      • setStartNodeId

        void setStartNodeId​(long startNodeId)
        Sets the start node ID.
        Parameters:
        startNodeId - start node ID
      • getEndNodeId

        long getEndNodeId()
        Returns the end node ID.
        Returns:
        end node ID
      • setEndNodeId

        void setEndNodeId​(long endNodeId)
        Sets the end node ID.
        Parameters:
        endNodeId - end node ID
      • getCost

        double getCost()
        Returns the cost of this link.
        Returns:
        link cost
      • setCost

        void setCost​(double cost)
        Sets the cost of this link.
        Parameters:
        cost - link cost
      • isBidirected

        boolean isBidirected()
        Checks whether this link is bidirected or not.
        Returns:
        true, if this link is bidirected; false, otherwise.
      • setIsBidirected

        void setIsBidirected​(boolean isBidirected)
        Sets whether the link is bidirected or not.
        Parameters:
        isBidirected - true, if this link is bidirected; false, otherwise.
      • toLogicalNetLink

        LogicalNetLink toLogicalNetLink​(LogicalPartition partition)
        Converts the standalone link to a partition link
        Parameters:
        partition - the partition that contains the link
        Returns:
      • isActive

        boolean isActive()
        Checks whether the link is active.
        Returns:
        true if the link is active; false otherwise.
      • setIsActive

        void setIsActive​(boolean isActive)
        Sets whether the link is active.
        Parameters:
        isActive - true if the link is active; false otherwise.
      • update

        void update​(LogicalLink link)
        Copies the attributes of the input link to this link.
        Parameters:
        link - link to copy from
      • clone

        java.lang.Object clone()
                        throws java.lang.CloneNotSupportedException
        Support cloneable.
        Returns:
        cloned object
        Throws:
        java.lang.CloneNotSupportedException
      • getCategorizedUserData

        CategorizedUserData getCategorizedUserData()
        Returns categorized user data.
        Returns:
      • setCategorizedUserData

        void setCategorizedUserData​(CategorizedUserData userData)
        Sets categorized user data.
        Parameters:
        userData -
      • getUserData

        UserData getUserData​(int category)
        Returns user data for the specified category.
        Returns:
      • setUserData

        void setUserData​(int category,
                         UserData userData)
        Sets user data for the specified category.
        Parameters:
        userData -