Class LogicalNetLinkImpl

  • All Implemented Interfaces:
    LogicalLink, LogicalNetLink

    public class LogicalNetLinkImpl
    extends java.lang.Object
    implements LogicalNetLink
    Default implementation of LogicalNetLink.
    Since:
    11gR1
    • Method Detail

      • getPartitionId

        public int getPartitionId()
        Description copied from interface: LogicalNetLink
        Returns the ID of the partition that owns the link.
        Specified by:
        getPartitionId in interface LogicalNetLink
        Returns:
      • setPartitionId

        public void setPartitionId​(int partitionId)
        Description copied from interface: LogicalNetLink
        Sets the ID of the partition that owns the link.
        Specified by:
        setPartitionId in interface LogicalNetLink
      • isPartiallyLoaded

        public boolean isPartiallyLoaded()
        Use link level as an indicator for whether a link is external. If the link level is less than 0, then the link must be an external link that is partially loaded.
        Specified by:
        isPartiallyLoaded in interface LogicalNetLink
        Returns:
      • toStandAloneLink

        public LogicalLink toStandAloneLink()
        Description copied from interface: LogicalNetLink
        Returns a new instance of a standalone link, which has the same properties as this link.
        Specified by:
        toStandAloneLink in interface LogicalNetLink
        Returns:
        a standalone link
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Support cloneable
        Specified by:
        clone in interface LogicalLink
        Specified by:
        clone in interface LogicalNetLink
        Returns:
        cloned object
        Throws:
        java.lang.CloneNotSupportedException
      • getCategorizedUserData

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

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

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

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

        public long getId()
        Description copied from interface: LogicalLink
        Returns the link ID.
        Specified by:
        getId in interface LogicalLink
        Returns:
        link ID
      • getLevel

        public int getLevel()
        Description copied from interface: LogicalLink
        Returns the link level.
        Specified by:
        getLevel in interface LogicalLink
        Returns:
        link level
      • getStartNodeId

        public long getStartNodeId()
        Description copied from interface: LogicalLink
        Returns the start node ID.
        Specified by:
        getStartNodeId in interface LogicalLink
        Returns:
        start node ID
      • setStartNodeId

        public void setStartNodeId​(long startNodeId)
        Description copied from interface: LogicalLink
        Sets the start node ID.
        Specified by:
        setStartNodeId in interface LogicalLink
        Parameters:
        startNodeId - start node ID
      • getEndNodeId

        public long getEndNodeId()
        Description copied from interface: LogicalLink
        Returns the end node ID.
        Specified by:
        getEndNodeId in interface LogicalLink
        Returns:
        end node ID
      • setEndNodeId

        public void setEndNodeId​(long endNodeId)
        Description copied from interface: LogicalLink
        Sets the end node ID.
        Specified by:
        setEndNodeId in interface LogicalLink
        Parameters:
        endNodeId - end node ID
      • getCost

        public double getCost()
        Description copied from interface: LogicalLink
        Returns the cost of this link.
        Specified by:
        getCost in interface LogicalLink
        Returns:
        link cost
      • setCost

        public void setCost​(double cost)
        Description copied from interface: LogicalLink
        Sets the cost of this link.
        Specified by:
        setCost in interface LogicalLink
        Parameters:
        cost - link cost
      • isBidirected

        public boolean isBidirected()
        Description copied from interface: LogicalLink
        Checks whether this link is bidirected or not.
        Specified by:
        isBidirected in interface LogicalLink
        Returns:
        true, if this link is bidirected; false, otherwise.
      • isActive

        public boolean isActive()
        Description copied from interface: LogicalLink
        Checks whether the link is active.
        Specified by:
        isActive in interface LogicalLink
        Returns:
        true if the link is active; false otherwise.
      • setIsActive

        public void setIsActive​(boolean isActive)
        Description copied from interface: LogicalLink
        Sets whether the link is active.
        Specified by:
        setIsActive in interface LogicalLink
        Parameters:
        isActive - true if the link is active; false otherwise.
      • setIsBidirected

        public void setIsBidirected​(boolean isBidirected)
        Description copied from interface: LogicalLink
        Sets whether the link is bidirected or not.
        Specified by:
        setIsBidirected in interface LogicalLink
        Parameters:
        isBidirected - true, if this link is bidirected; false, otherwise.
      • update

        public void update​(LogicalLink link)
        Description copied from interface: LogicalLink
        Copies the attributes of the input link to this link.
        Specified by:
        update in interface LogicalLink
        Parameters:
        link - link to copy from
      • getUserData

        public UserData getUserData​(int category)
      • setUserData

        public void setUserData​(int category,
                                UserData userData)