public abstract class IntegerDataType extends NumericDataType
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
signed |
encoding, initialValuename, PATH_SEPARATOR, qualifiedName, xtceAliasSet| Modifier | Constructor and Description |
|---|---|
protected |
IntegerDataType(IntegerDataType t) |
protected |
IntegerDataType(String name) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getInitialValue()
Get the initial value if any
|
int |
getSizeInBits() |
String |
getTypeAsString()
String which represents the type.
|
IntegerValidRange |
getValidRange()
returns the range for the values of this type to be valid or null if there is no range set (meaning that all
values are valid)
|
Yamcs.Value.Type |
getValueType()
Return the expected Value type of an engineering value conforming to this XTCE data type
|
boolean |
isSigned() |
Long |
parseString(String stringValue)
Parses the string into a Long
Base 10 (decimal) form is assumed unless:
if preceded by a 0b or 0B, value is in base two (binary form)
if preceded by a 0o or 0O, values is in base 8 (octal) form
if preceded by a 0x or 0X, value is in base 16 (hex) form.
|
void |
setInitialValue(Long initialValue) |
void |
setSigned(boolean signed) |
void |
setSizeInBits(int sizeInBits) |
void |
setValidRange(IntegerValidRange range) |
addAllUnits, addUnit, getEncoding, getUnitSet, parseStringForRawValue, setEncoding, setInitialValueaddAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getAncillaryDataSet, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setLongDescription, setName, setQualifiedName, setShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getName, getShortDescription, setLongDescription, setShortDescriptionprotected IntegerDataType(String name)
protected IntegerDataType(IntegerDataType t)
public void setSigned(boolean signed)
public boolean isSigned()
public int getSizeInBits()
public void setSizeInBits(int sizeInBits)
public IntegerValidRange getValidRange()
public void setValidRange(IntegerValidRange range)
public void setInitialValue(Long initialValue)
public Long getInitialValue()
DataTypepublic Long parseString(String stringValue)
NumberFormatException if the value cannot be parsed or does not fit within the specified number
of bitsparseString in interface DataTypeparseString in class BaseDataTypepublic Yamcs.Value.Type getValueType()
DataTypeCopyright © 2019 Space Applications Services. All rights reserved.