类 StructureMembers.Member

  • 封闭类:
    StructureMembers

    public class StructureMembers.Member
    extends java.lang.Object
    A member of a StructureData.
    • 构造器详细资料

      • Member

        public Member​(java.lang.String name,
                      java.lang.String desc,
                      java.lang.String units,
                      DataType dtype,
                      int[] shape)
    • 方法详细资料

      • setStructureMembers

        public void setStructureMembers​(StructureMembers members)
      • setShape

        public void setShape​(int[] shape)
      • getName

        public java.lang.String getName()
        Get the short name.
        返回:
        the short name.
      • getFullName

        public java.lang.String getFullName()
      • getUnitsString

        public java.lang.String getUnitsString()
        Get the units string, if any.
        返回:
        the units string, or null if none.
      • getDescription

        public java.lang.String getDescription()
        Get the description, if any.
        返回:
        the description, or null if none.
      • getDataType

        public DataType getDataType()
        Get the DataType.
        返回:
        the DataType.
      • getShape

        public int[] getShape()
        Get the array shape. This does not have to match the VariableSimpleIF.
        返回:
        the array shape.
      • getSize

        public int getSize()
        Get the total number of elements. This does not have to match the VariableSimpleIF.
        返回:
        the total number of elements.
      • isVariableLength

        public boolean isVariableLength()
      • getSizeBytes

        public int getSizeBytes()
        Get the total size in bytes. This does not have to match the VariableSimpleIF. Note that this will not be correct when containing a member of type Sequence, or String, since those are variable length. In that case
        返回:
        total size in bytes
      • isScalar

        public boolean isScalar()
        Is this a scalar (size == 1). This does not have to match the VariableSimpleIF.
        返回:
        if this is a scalar
      • getDataParam

        public int getDataParam()
        Get the data parameter value, for use behind the scenes.
        返回:
        data parameter value
      • setDataParam

        public void setDataParam​(int dataParam)
        Set the data parameter value, for use behind the scenes.
        参数:
        dataParam - set to this value
      • getDataArray

        public Array getDataArray()
        Get the data array, if any. Used for implementation, DO NOT USE DIRECTLY!
        返回:
        data object, may be null
      • setDataArray

        public void setDataArray​(Array data)
        Set the data array. Used for implementation, DO NOT USE DIRECTLY!
        参数:
        data - set to this Array. must not be a logical view
      • getDataObject

        public java.lang.Object getDataObject()
        Get an opaque data object, for use behind the scenes. May be null
        返回:
        data object, may be null
      • setDataObject

        public void setDataObject​(java.lang.Object o)
        Set an opaque data object, for use behind the scenes.
        参数:
        o - set to this value
      • setVariableInfo

        public void setVariableInfo​(java.lang.String vname,
                                    java.lang.String desc,
                                    java.lang.String unitString,
                                    DataType dtype)
      • showInternal

        public void showInternal​(java.util.Formatter f,
                                 Indent indent)
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object