Package xal.tools.transforms
Class DoubleTransformAdaptor
java.lang.Object
xal.tools.transforms.DoubleTransformAdaptor
- All Implemented Interfaces:
DataTransform,DoubleTransform
An abstract class that provides a convenient base for classes implementing
DoubleTransform. The developer need only implement the non-inherited methods
of the DoubleTransform interface. Even if you do not want to subclass this
class, it provides a static helper method from implementing the
valueTransform() method required by DataTransform.
- Author:
- tap
- See Also:
-
Field Summary
Fields inherited from interface xal.tools.transforms.DataTransform
NO_OPERATION_TRANSFORM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleconvertFromRaw(double rawValue) DoubleTransform interfaceabstract doubleconvertToRaw(double physicalValue) DoubleTransform interfacestatic ValueTransformimplementValueTransform(DoubleTransform transform) Helper method for implementing the valueTransform() DataTransform method for a DoubleTransform implementation.final ValueTransformImplement DataTransform interface
-
Constructor Details
-
DoubleTransformAdaptor
public DoubleTransformAdaptor()
-
-
Method Details
-
convertFromRaw
public abstract double convertFromRaw(double rawValue) DoubleTransform interface- Specified by:
convertFromRawin interfaceDoubleTransform- Parameters:
rawValue- The raw value to be converted to a physical value.- Returns:
- A physical equivalent of the raw value.
-
convertToRaw
public abstract double convertToRaw(double physicalValue) DoubleTransform interface- Specified by:
convertToRawin interfaceDoubleTransform- Parameters:
physicalValue- The physical value to be converted to a raw value.- Returns:
- A raw value equivalent of the physical value.
-
valueTransform
Implement DataTransform interface- Specified by:
valueTransformin interfaceDataTransform- Returns:
- An equivalent value transform for converting ArrayValue stores.
-
implementValueTransform
Helper method for implementing the valueTransform() DataTransform method for a DoubleTransform implementation.
-