public class MathOperationCalibration extends Object implements Calibration
| Constructor and Description |
|---|
MathOperationCalibration(org.omg.space.xtce.CalibratorType.MathOperationCalibrator element)
Constructs a Calibration object based on the MathOperationCalibrator
element in the XTCE document.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
calibrate(Number xValue)
Calibration of values using MathOperationCalibrator has some limited
support for common numeric values and operators.
|
String |
toInfixString()
Method to create a simple space delimited string that represents the
infix expression from the XTCE MathOperationCalibrator that this
object instance represents.
|
String |
toString()
Method to create a simple space delimited string that represents the
postfix expression from the XTCE MathOperationCalibrator that this
object instance represents.
|
Number |
uncalibrate(Number yValue)
Reverse calibration of values is not yet supported for
MathOperationCalibrator.
|
public MathOperationCalibration(org.omg.space.xtce.CalibratorType.MathOperationCalibrator element)
element - MathOperationCalibrator containing the data.public Number calibrate(Number xValue) throws XTCEDatabaseException
calibrate in interface CalibrationxValue - Number containing the uncalibrated value.XTCEDatabaseException - thrown in the event that the math operator
is not yet supported, the stack is exhausted, which would occur for an
invalid expression, or for an arithmetic error, such as a division by
zero.public Number uncalibrate(Number yValue) throws XTCEDatabaseException
uncalibrate in interface CalibrationyValue - Number containing the calibrated value.XTCEDatabaseException - any time this is called.public String toString()
public String toInfixString() throws XTCEDatabaseException
XTCEDatabaseException - thrown in the event that the math operator
is not yet supported or the stack is exhausted, which would occur for an
invalid expression.Copyright © 2015–2019. All rights reserved.