Class TagDiff

    • Constructor Detail

      • TagDiff

        public TagDiff()
      • TagDiff

        public TagDiff​(java.lang.String name,
                       TagType type)
    • Method Detail

      • isScanClassChanged

        public boolean isScanClassChanged()
      • isNameChanged

        public boolean isNameChanged()
      • isDataTypeChanged

        public boolean isDataTypeChanged()
      • isEventScriptsModified

        public boolean isEventScriptsModified()
      • isDriverNameChanged

        public boolean isDriverNameChanged()
      • isAlarmStatesModified

        public boolean isAlarmStatesModified()
      • isEnabledChanged

        public boolean isEnabledChanged()
      • isValueChanged

        public boolean isValueChanged()
      • setType

        public void setType​(TagType type)
      • isTypeChanged

        public boolean isTypeChanged()
      • toBase64String

        public java.lang.String toBase64String()
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • fromBase64String

        public static TagDiff fromBase64String​(java.lang.String str)
      • isAccessRightsChanged

        public boolean isAccessRightsChanged()
      • isPermissionModelChanged

        public boolean isPermissionModelChanged()
      • getAlarmStates

        public AlarmConfiguration getAlarmStates()
        Description copied from interface: Tag
        Returns the list of alarm states for this tag
        Specified by:
        getAlarmStates in interface Tag
      • getName

        public java.lang.String getName()
        Description copied from interface: Tag
        Returns the name of the tag.
        Specified by:
        getName in interface Tag
      • getType

        public TagType getType()
        Description copied from interface: Tag
        Returns the type of this tag.
        Specified by:
        getType in interface Tag
      • getDataType

        public DataType getDataType()
        Description copied from interface: Tag
        Returns the datatype of this tag's value property
        Specified by:
        getDataType in interface Tag
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Tag
        Returns the enabled bit for this tag
        Specified by:
        isEnabled in interface Tag
      • getCurrentValue

        public QualifiedValue getCurrentValue()
        Description copied from interface: Tag
        Returns the value in qualified form- along with quality and timestamp.
        Specified by:
        getCurrentValue in interface Tag
      • getAccessRights

        public AccessRightsType getAccessRights()
        Description copied from interface: Tag
        Gets the type of access rights for this tag
        Specified by:
        getAccessRights in interface Tag
      • getAttribute

        public QualifiedValue getAttribute​(Property<?> prop)
        Description copied from interface: Tag
        Gets the value of the given tag attribute.
        Specified by:
        getAttribute in interface Tag
      • compareTo

        public int compareTo​(Tag o)
        Specified by:
        compareTo in interface java.lang.Comparable<Tag>
      • setEnabled

        public void setEnabled​(boolean en)
        Description copied from interface: MutableTag
        Sets this tag enabled/disabled
        Specified by:
        setEnabled in interface MutableTag
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: MutableTag
        Sets the name of this tag
        Specified by:
        setName in interface MutableTag
      • setDataType

        public void setDataType​(DataType type)
        Description copied from interface: MutableTag
        Sets the data type for this tag. The existing value will most likely be lost.
        Specified by:
        setDataType in interface MutableTag
      • setAttribute

        public void setAttribute​(Property<?> prop,
                                 QualifiedValue value)
                          throws java.lang.ClassCastException
        Description copied from interface: MutableTag
        Sets the value of the given tag attribute. If the type of the argument is incorrect, an ClassCastException will be thrown.
        Specified by:
        setAttribute in interface MutableTag
        Throws:
        java.lang.ClassCastException
      • setCurrentValue

        public void setCurrentValue​(QualifiedValue value)
                             throws java.lang.ClassCastException
        Description copied from interface: MutableTag
        Sets this tags value. Will throw an ClassCastException if the value cannot be coerced into the datatype of this tag.
        Specified by:
        setCurrentValue in interface MutableTag
        Throws:
        java.lang.ClassCastException
      • setValue

        public void setValue​(TagValue tv)
                      throws java.lang.ClassCastException
        Throws:
        java.lang.ClassCastException
      • getAttrValue

        public <T> T getAttrValue​(TagProp prop)