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
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
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
ModifierConstructorDescriptionprotected
AbsoluteTimeDataType
(String name) protected
protected
AbsoluteTimeDataType
(AbsoluteTimeDataType.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionconvertType
(Object value) Converts to the canonical (boxed) java representation of this type.Get the initial value if anyString which represents the type.Return the expected Value type of an engineering value conforming to this XTCE data typeprotected void
setInitialValue
(Object initialValue) sets the initial value in UTC ISO 8860 stringMethods inherited from class org.yamcs.xtce.BaseTimeDataType
getOffset, getScale, needsScaling, parseStringForRawValue, setScaling
Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, setInitialValue, setUnitSet, toString
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, qualifiedName, 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, getQualifiedName, getShortDescription
-
Constructor Details
-
AbsoluteTimeDataType
-
AbsoluteTimeDataType
-
AbsoluteTimeDataType
-
-
Method Details
-
getReferenceTime
-
setInitialValue
sets the initial value in UTC ISO 8860 string- Specified by:
setInitialValue
in classBaseDataType
-
getInitialValue
Description copied from interface:DataType
Get the initial value if any- Returns:
-
convertType
Description copied from interface:DataType
Converts to the canonical (boxed) java representation of this type.For example, if
value
is aString
, an integer-like DataType should parse the String value, and return an Integer result.- Parameters:
value
- value to be converted, use boxed primitive values.- Returns:
- The preferred java object representation
-
getValueType
Description copied from interface:DataType
Return the expected Value type of an engineering value conforming to this XTCE data type- Returns:
-
getTypeAsString
Description copied from interface:DataType
String which represents the type. This string will be presented to the users of the system.- Returns:
-