类 StructureMembers.Member
- java.lang.Object
-
- org.meteoinfo.ndarray.StructureMembers.Member
-
- 封闭类:
- StructureMembers
public class StructureMembers.Member extends java.lang.ObjectA member of a StructureData.
-
-
构造器概要
构造器 构造器 说明 Member(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dtype, int[] shape)Member(StructureMembers.Member from)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ArraygetDataArray()Get the data array, if any.java.lang.ObjectgetDataObject()Get an opaque data object, for use behind the scenes.intgetDataParam()Get the data parameter value, for use behind the scenes.DataTypegetDataType()Get the DataType.java.lang.StringgetDescription()Get the description, if any.java.lang.StringgetFullName()java.lang.StringgetName()Get the short name.int[]getShape()Get the array shape.intgetSize()Get the total number of elements.intgetSizeBytes()Get the total size in bytes.StructureMembersgetStructureMembers()java.lang.StringgetUnitsString()Get the units string, if any.booleanisScalar()Is this a scalar (size == 1).booleanisVariableLength()voidsetDataArray(Array data)Set the data array.voidsetDataObject(java.lang.Object o)Set an opaque data object, for use behind the scenes.voidsetDataParam(int dataParam)Set the data parameter value, for use behind the scenes.voidsetShape(int[] shape)voidsetStructureMembers(StructureMembers members)voidsetVariableInfo(java.lang.String vname, java.lang.String desc, java.lang.String unitString, DataType dtype)voidshowInternal(java.util.Formatter f, Indent indent)java.lang.StringtoString()
-
-
-
构造器详细资料
-
Member
public Member(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dtype, int[] shape)
-
Member
public Member(StructureMembers.Member from)
-
-
方法详细资料
-
setStructureMembers
public void setStructureMembers(StructureMembers members)
-
getStructureMembers
public StructureMembers getStructureMembers()
-
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
-
-