public final class UnitStructure extends OSTypeStructure
The unit structure.
Modifier and Type | Field and Description |
---|---|
static int |
StructureKey
Identifies the structure key.
|
Constructor and Description |
---|
UnitStructure(ClassID keyName)
Initializes a new instance of the
UnitStructure class. |
Modifier and Type | Method and Description |
---|---|
int |
getKey()
Gets the structure key.
|
int |
getLength()
Gets the
OSTypeStructure length in bytes. |
int |
getUnitType()
Gets or sets the unit type.
|
double |
getValue()
Gets or sets the value.
|
void |
setUnitType(int value)
Gets or sets the unit type.
|
void |
setValue(double value)
Gets or sets the value.
|
getHeaderLength, getKeyName, save, saveWithoutKeyName, setKeyName
public static final int StructureKey
Identifies the structure key.
public UnitStructure(ClassID keyName)
Initializes a new instance of the UnitStructure
class.
keyName
- The key name.public final int getUnitType()
Gets or sets the unit type.
Value: The unit type.public final void setUnitType(int value)
Gets or sets the unit type.
Value: The unit type.public final double getValue()
Gets or sets the value.
Value: The value.public final void setValue(double value)
Gets or sets the value.
Value: The value.public int getKey()
Gets the structure key.
getKey
in class OSTypeStructure
public int getLength()
Gets the OSTypeStructure
length in bytes.
getLength
in class OSTypeStructure