Package org.yamcs.xtce
Class AbsoluteTimeDataType
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.BaseDataType
-
- org.yamcs.xtce.BaseTimeDataType
-
- org.yamcs.xtce.AbsoluteTimeDataType
-
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
AbsoluteTimeArgumentType,AbsoluteTimeParameterType
public abstract class AbsoluteTimeDataType extends BaseTimeDataType
Used to contain an absolute time. Contains an absolute (to a known epoch) time. Use the [ISO 8601] extended format CCYY-MM-DDThh:mm:ss where "CC" represents the century, "YY" the year, "MM" the month and "DD" the day, preceded by an optional leading "-" sign to indicate a negative number. If the sign is omitted, "+" is assumed. The letter "T" is the date/time separator and "hh", "mm", "ss" represent hour, minute and second respectively. Additional digits can be used to increase the precision of fractional seconds if desired i.e. the format ss.ss... with any number of digits after the decimal point is supported.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbsoluteTimeDataType.Builder<T extends AbsoluteTimeDataType.Builder<T>>
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.BaseDataType
encoding
-
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbsoluteTimeDataType(String name)protectedAbsoluteTimeDataType(AbsoluteTimeDataType t)protectedAbsoluteTimeDataType(AbsoluteTimeDataType.Builder<?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInitialValue()Get the initial value if anyReferenceTimegetReferenceTime()StringgetTypeAsString()String which represents the type.Yamcs.Value.TypegetValueType()Return the expected Value type of an engineering value conforming to this XTCE data typeStringparseString(String stringValue)Used to parse string such as an initial valueprotected voidsetInitialValue(Object initialValue)sets the initial value in UTC ISO 8860 string-
Methods inherited from class org.yamcs.xtce.BaseTimeDataType
getOffset, getScale, needsScaling, parseStringForRawValue, setScaling
-
Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, setInitialValue, toString
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.xtce.DataType
getLongDescription, getName, getShortDescription
-
-
-
-
Constructor Detail
-
AbsoluteTimeDataType
protected AbsoluteTimeDataType(AbsoluteTimeDataType.Builder<?> builder)
-
AbsoluteTimeDataType
protected AbsoluteTimeDataType(String name)
-
AbsoluteTimeDataType
protected AbsoluteTimeDataType(AbsoluteTimeDataType t)
-
-
Method Detail
-
getReferenceTime
public ReferenceTime getReferenceTime()
-
setInitialValue
protected void setInitialValue(Object initialValue)
sets the initial value in UTC ISO 8860 string- Specified by:
setInitialValuein classBaseDataType
-
getInitialValue
public String getInitialValue()
Description copied from interface:DataTypeGet the initial value if any- Returns:
-
parseString
public String parseString(String stringValue)
Description copied from class:BaseDataTypeUsed to parse string such as an initial value- Specified by:
parseStringin interfaceDataType- Specified by:
parseStringin classBaseDataType- Returns:
-
getValueType
public Yamcs.Value.Type getValueType()
Description copied from interface:DataTypeReturn the expected Value type of an engineering value conforming to this XTCE data type- Returns:
-
-