Class BaseTimeDataType

All Implemented Interfaces:
Serializable, DataType
Direct Known Subclasses:
AbsoluteTimeDataType

public abstract class BaseTimeDataType extends BaseDataType
See Also:
  • Constructor Details

    • BaseTimeDataType

      protected BaseTimeDataType(BaseTimeDataType t)
      creates a shallow copy of t
      Parameters:
      t -
  • Method Details

    • parseStringForRawValue

      public Object parseStringForRawValue(String stringValue)
      Description copied from interface: DataType
      parses the string into a java object according to the parameter encoding
      Specified by:
      parseStringForRawValue in interface DataType
      Overrides:
      parseStringForRawValue in class BaseDataType
      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()