Class GraphItem


  • public class GraphItem
    extends Object
    This class represents single graph item (DCI)
    • Constructor Detail

      • GraphItem

        public GraphItem()
        Create graph item object with default values
      • GraphItem

        public GraphItem​(long nodeId,
                         long dciId,
                         int source,
                         DataType dataType,
                         String name,
                         String description,
                         String displayFormat)
        Constructor for ITEM type
        Parameters:
        nodeId - The node ID
        dciId - The dci ID
        source - The source
        dataType - The data type
        name - The name
        description - The description
        displayFormat - The display format
      • GraphItem

        public GraphItem​(long nodeId,
                         long dciId,
                         int source,
                         DataType dataType,
                         String name,
                         String description,
                         String displayFormat,
                         String instance,
                         String dataColumn)
        Constructor for TABLE type
        Parameters:
        nodeId - The node ID
        dciId - The dci ID
        source - The source
        dataType - The data type
        name - The name
        description - The description
        displayFormat - The display format
        instance - The instance
        dataColumn - The data column
    • Method Detail

      • getNodeId

        public long getNodeId()
        Returns:
        the nodeId
      • setNodeId

        public void setNodeId​(long nodeId)
        Parameters:
        nodeId - the nodeId to set
      • getDciId

        public long getDciId()
        Returns:
        the dciId
      • setDciId

        public void setDciId​(long dciId)
        Parameters:
        dciId - the dciId to set
      • getSource

        public int getSource()
        Returns:
        the source
      • setSource

        public void setSource​(int source)
        Parameters:
        source - the source to set
      • getDataType

        public DataType getDataType()
        Returns:
        the dataType
      • setDataType

        public void setDataType​(DataType dataType)
        Parameters:
        dataType - the dataType to set
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getDescription

        public String getDescription()
        Returns:
        the description
      • setDescription

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

        public int getType()
        Returns:
        the type
      • setType

        public void setType​(int type)
        Parameters:
        type - the type to set
      • getDataColumn

        public String getDataColumn()
        Returns:
        the dataColumn
      • setDataColumn

        public void setDataColumn​(String dataColumn)
        Parameters:
        dataColumn - the dataColumn to set
      • getInstance

        public String getInstance()
        Returns:
        the instance
      • setInstance

        public void setInstance​(String instance)
        Parameters:
        instance - the instance to set
      • getDisplayFormat

        public String getDisplayFormat()
        Returns:
        the displayFormat
      • setDisplayFormat

        public void setDisplayFormat​(String displayFormat)
        Parameters:
        displayFormat - the displayFormat to set