Class PassiveRackElement


  • public class PassiveRackElement
    extends Object
    Rack element configuration entry
    • Constructor Detail

      • PassiveRackElement

        public PassiveRackElement()
        Create empty rack attribute entry
      • PassiveRackElement

        public PassiveRackElement​(org.netxms.base.NXCPMessage msg,
                                  long base)
        Rack passive element constructor
        Parameters:
        msg - message from server
        base - base id for creation
      • PassiveRackElement

        public PassiveRackElement​(PassiveRackElement element)
        Rack passive element copy constructor
        Parameters:
        element - element to copy
    • Method Detail

      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg,
                                long base)
        Fill message with passive rack element data
        Parameters:
        msg - message to fill
        base - base id to start from
      • setType

        public void setType​(RackElementType type)
        Set element type
        Parameters:
        type - to set
      • getType

        public RackElementType getType()
        Get element type
        Returns:
        element type
      • setPosition

        public void setPosition​(int position)
        Set attribute position
        Parameters:
        position - to set
      • getPosition

        public int getPosition()
        Get attribute position in rack
        Returns:
        position
      • setOrientation

        public void setOrientation​(RackOrientation orientation)
        Set attribute orientation
        Parameters:
        orientation - to set
      • getOrientation

        public RackOrientation getOrientation()
        Get orientation
        Returns:
        orientation
      • getName

        public String getName()
        Get element name
        Returns:
        element name
      • setName

        public void setName​(String name)
        Set element name
        Parameters:
        name - new element name
      • getId

        public long getId()
        Returns:
        the id
      • setId

        public void setId​(long id)
        Parameters:
        id - the id to set
      • getPortCount

        public int getPortCount()
        Returns:
        the portCount
      • setPortCount

        public void setPortCount​(int portCount)
        Parameters:
        portCount - the portCount to set
      • toString

        public String toString()
        To string method for object
        Overrides:
        toString in class Object