Package org.yamcs.xtce
Class BaseTimeDataType
java.lang.Object
org.yamcs.xtce.NameDescription
org.yamcs.xtce.BaseDataType
org.yamcs.xtce.BaseTimeDataType
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
AbsoluteTimeDataType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBaseTimeDataType.Builder<T extends BaseTimeDataType.Builder<T>> -
Field Summary
Fields inherited from class org.yamcs.xtce.BaseDataType
encodingFields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedcreates a shallow copy of t -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetScale()booleanparseStringForRawValue(String stringValue) parses the string into a java object according to the parameter encodingvoidsetScaling(double offset, double scale) Scale and offset are used in a y = m*x + b type relationship (m is the scale and b is the offset) to make adjustments to the encoded value so that it matches the time units.Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, setInitialValue, setInitialValue, setUnitSet, toStringMethods 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, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.xtce.DataType
convertType, getInitialValue, getLongDescription, getName, getQualifiedName, getShortDescription, getTypeAsString, getValueType
-
Constructor Details
-
BaseTimeDataType
creates a shallow copy of t- Parameters:
t-
-
-
Method Details
-
parseStringForRawValue
Description copied from interface:DataTypeparses the string into a java object according to the parameter encoding- Specified by:
parseStringForRawValuein interfaceDataType- Overrides:
parseStringForRawValuein classBaseDataType- Returns:
- a java object representation
-
setScaling
public void setScaling(double offset, double scale) Scale and offset are used in a y = m*x + b type relationship (m is the scale and b is the offset) to make adjustments to the encoded value so that it matches the time units.- Parameters:
offset-scale-
-
needsScaling
public boolean needsScaling() -
getOffset
public double getOffset() -
getScale
public double getScale()
-