Class PhysicalLink


  • public class PhysicalLink
    extends Object
    Represents physical link between devices or patch panels
    • Constructor Detail

      • PhysicalLink

        public PhysicalLink()
        Constructor for new object
      • PhysicalLink

        public PhysicalLink​(org.netxms.base.NXCPMessage msg,
                            long base)
        Object constructor form message
        Parameters:
        msg - message
        base - base id
      • PhysicalLink

        public PhysicalLink​(PhysicalLink link)
        Copy constructor for physical link
        Parameters:
        link - link to copy form
    • Method Detail

      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg,
                                long base)
        Fill message with object fields
        Parameters:
        msg - message to fill
        base - base id
      • getId

        public long getId()
        Get link object ID
        Returns:
        link object ID
      • setId

        public void setId​(long id)
        Set link object ID
        Parameters:
        id - new link object ID
      • getDescription

        public String getDescription()
        Returns:
        the description
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - the description to set
      • getLeftObjectId

        public long getLeftObjectId()
        Returns:
        the leftObjectId
      • setLeftObjectId

        public void setLeftObjectId​(long leftObjectId)
        Parameters:
        leftObjectId - the leftObjectId to set
      • getLeftPatchPanelId

        public long getLeftPatchPanelId()
        Returns:
        the leftPatchPanelId
      • setLeftPatchPanelId

        public void setLeftPatchPanelId​(long leftPatchPanelId)
        Parameters:
        leftPatchPanelId - the leftPatchPanelId to set
      • getLeftPortNumber

        public int getLeftPortNumber()
        Returns:
        the leftPortNumber
      • setLeftPortNumber

        public void setLeftPortNumber​(int leftPortNumber)
        Parameters:
        leftPortNumber - the leftPortNumber to set
      • getLeftFront

        public int getLeftFront()
        Returns:
        the leftFront
      • setLeftFront

        public void setLeftFront​(boolean front)
        Set "isFront" flag for left side of the link
        Parameters:
        front - true if this link comes to front side on the left
      • getRightObjectId

        public long getRightObjectId()
        Returns:
        the rightObjectId
      • setRightObjectId

        public void setRightObjectId​(long rightObjectId)
        Parameters:
        rightObjectId - the rightObjectId to set
      • getRightPatchPanelId

        public long getRightPatchPanelId()
        Returns:
        the rightPatchPanelId
      • setRightPatchPanelId

        public void setRightPatchPanelId​(long rightPatchPanelId)
        Parameters:
        rightPatchPanelId - the rightPatchPanelId to set
      • getRightPortNumber

        public int getRightPortNumber()
        Returns:
        the rightPortNumber
      • setRightPortNumber

        public void setRightPortNumber​(int rightPortNumber)
        Parameters:
        rightPortNumber - the rightPortNumber to set
      • getRightFront

        public int getRightFront()
        Returns:
        the rightFront
      • setRightFront

        public void setRightFront​(boolean front)
        Set "isFront" flag for right side of the link
        Parameters:
        front - true if this link comes to front side on the right