Class NetworkMapElement

    • Field Detail

      • MAP_ELEMENT_DCI_CONTAINER

        public static final int MAP_ELEMENT_DCI_CONTAINER
        See Also:
        Constant Field Values
      • id

        protected long id
      • type

        protected int type
      • x

        protected int x
      • y

        protected int y
    • Constructor Detail

      • NetworkMapElement

        protected NetworkMapElement​(org.netxms.base.NXCPMessage msg,
                                    long baseId)
        Create element from NXCP message.
        Parameters:
        msg - NXCP message
        baseId - base variable ID
      • NetworkMapElement

        public NetworkMapElement​(long id)
        Create new generic element
    • Method Detail

      • createMapElement

        public static NetworkMapElement createMapElement​(org.netxms.base.NXCPMessage msg,
                                                         long baseId)
        Factory method for creating map element from NXCP message.
        Parameters:
        msg - NXCP message
        baseId - base variable ID
        Returns:
        map element object
      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg,
                                long baseId)
        Fill NXCP message with element data
        Parameters:
        msg - NXCP message
        baseId - base variable ID
      • getType

        public int getType()
        Returns:
        the type
      • getX

        public int getX()
        Returns:
        the x
      • getY

        public int getY()
        Returns:
        the y
      • getId

        public long getId()
        Returns:
        the id
      • setLocation

        public void setLocation​(int x,
                                int y)
        Set elements's location
        Parameters:
        x -
        y -
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getFlags

        public int getFlags()
        Returns:
        the flags
      • setFlags

        public void setFlags​(int flags)
        Parameters:
        flags - the flags to set
      • addFlag

        public void addFlag​(int flags)
        Parameters:
        flags - the flag to be added to current flags
      • removeFlag

        public void removeFlag​(int flags)
        Parameters:
        flags - the flag