Package xal.tools.transforms
Class DoubleArrayTransformAdaptor
java.lang.Object
xal.tools.transforms.DoubleArrayTransformAdaptor
- All Implemented Interfaces:
DataTransform,DoubleArrayTransform
An abstract class that provides a convenient base for classes implementing
DoubleArrayTransform. The developer need only implement the non-inherited
methods of the DoubleArrayTransform 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 double[]convertFromRaw(double[] rawValue) DoubleTransform interfaceabstract double[]convertToRaw(double[] physicalValue) DoubleTransform interfacestatic ValueTransformimplementValueTransform(DoubleArrayTransform transform) Helper method for implementing the valueTransform() DataTransform method for a DoubleArrayTransform implementation.final ValueTransformImplement DataTransform interface
-
Constructor Details
-
DoubleArrayTransformAdaptor
public DoubleArrayTransformAdaptor()
-
-
Method Details
-
convertFromRaw
public abstract double[] convertFromRaw(double[] rawValue) DoubleTransform interface- Specified by:
convertFromRawin interfaceDoubleArrayTransform- Parameters:
rawValue- The raw array to be converted to a physical array.- Returns:
- A physical equivalent of the raw array.
-
convertToRaw
public abstract double[] convertToRaw(double[] physicalValue) DoubleTransform interface- Specified by:
convertToRawin interfaceDoubleArrayTransform- Parameters:
physicalValue- The physical array to be converted to a raw array.- Returns:
- A raw equivalent of the physical array.
-
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 DoubleArrayTransform implementation.
-