Class VarInfo

  • All Implemented Interfaces:
    java.lang.Comparable<VarInfo>

    public class VarInfo
    extends java.lang.Object
    implements java.lang.Comparable<VarInfo>
    • Constructor Detail

      • VarInfo

        public VarInfo​(int id,
                       java.lang.String name,
                       java.lang.String desc)
    • Method Detail

      • isArray

        public boolean isArray()
        Returns whether or not this variable is an array.
        Returns:
        True, yes, False, no.
      • typeString

        public java.lang.String typeString()
        Returns the type as readable string.
      • varSize

        public int varSize()
        Returns the total size of the variable. So if its an array its the size of the scalar times the size of the array.
        Returns:
        Size of the complete variable in bytes
      • subsys

        public int subsys()
        Returns the subsystem ID.
      • index

        public int index()
        Returns the index of the variable within the subsystem.
      • isReadable

        public boolean isReadable()
      • isWritable

        public boolean isWritable()
      • isVirtual

        public boolean isVirtual()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

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

        public void write​(MessageWriter mw,
                          java.lang.Object value)
        Parameters:
        mw -
        value -
      • javaType

        public java.lang.Class<?> javaType()
        Returns:
      • format

        public java.lang.String format​(java.lang.Object data,
                                       boolean asHex)