public abstract class IntegerDataType extends NumericDataType
| Modifier and Type | Class and Description |
|---|---|
static class |
IntegerDataType.Builder<T extends IntegerDataType.Builder<T>> |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
signed |
encodingancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet| Modifier | Constructor and Description |
|---|---|
protected |
IntegerDataType(IntegerDataType.Builder<?> builder) |
protected |
IntegerDataType(IntegerDataType t) |
| 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) |
protected void |
setInitialValue(Object initialValue) |
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, toStringaddAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getName, getShortDescriptionprotected IntegerDataType(IntegerDataType.Builder<?> builder)
protected IntegerDataType(IntegerDataType t)
public boolean isSigned()
public int getSizeInBits()
protected void setInitialValue(Object initialValue)
setInitialValue in class BaseDataTypepublic IntegerValidRange getValidRange()
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 © 2020 Space Applications Services. All rights reserved.