|
WSF
|
#include <WsfGuidanceComputer.hpp>
Public Member Functions | |
| Variable (double aValue=0.0) | |
Operator overloading. | |
Allows the variable to be used as a normal variable.
| |
| double | mValue |
| double | mScale |
| The scale factor used to convert from user supplied units to internal units. | |
| WsfStringId | mVarNameId |
| operator double () const | |
| double | operator+ (double aRhs) const |
| double | operator- (double aRhs) const |
| double | operator= (double aRhs) |
| double | Get () const |
| bool | HasDefaultValue () const |
| bool | IsReference () const |
| Returns true if the variable is a script reference. | |
| void | ReadValue (UtInput &aInput, WsfScriptContext &aContext) |
| void | ReadValueOfType (UtInput &aInput, UtInput::ValueType aValueType, WsfScriptContext &aContext) |
| void | Update (WsfScriptContext &aContext) |
| void | ValueInClosedRange (UtInput &aInput, double aMinValue, double aMaxValue) |
| Interface to UtInput::ValueInClosedRange. | |
| void | ValueGreater (UtInput &aInput, double aMinValue) |
| Interface to UtInput::ValueGreater. | |
| void | ValueGreaterOrEqual (UtInput &aInput, double aMinValue) |
| Interface to UtInput::ValueGreaterOrEqual. | |
| void | ValueLess (UtInput &aInput, double aMaxValue) |
| Interface to UtInput::ValueLess. | |
| void | ValueLessOrEqual (UtInput &aInput, double aMaxValue) |
| Interface to UtInput::ValueLessOrEqual. | |
A class that defines a double precision value that can be either:
|
inline |
References mScale, mValue, and mVarNameId.
|
inline |
References mValue.
|
inline |
Referenced by ValueGreater(), ValueGreaterOrEqual(), ValueInClosedRange(), ValueLess(), and ValueLessOrEqual().
|
inline |
Returns true if the variable is a script reference.
References mVarNameId.
Referenced by ValueGreater(), ValueGreaterOrEqual(), ValueInClosedRange(), ValueLess(), and ValueLessOrEqual().
|
inline |
References mValue.
|
inline |
References mValue.
|
inline |
References mValue.
|
inline |
References mScale, mValue, and mVarNameId.
| void WsfGuidanceComputer::Variable::ReadValue | ( | UtInput & | aInput, |
| WsfScriptContext & | aContext ) |
Read a unitless value.
| aInput | The input stream. |
| aContext | The script context for resolving a script variable. |
References WsfScriptContext::GetContext(), mScale, mValue, and mVarNameId.
| void WsfGuidanceComputer::Variable::ReadValueOfType | ( | UtInput & | aInput, |
| UtInput::ValueType | aValueType, | ||
| WsfScriptContext & | aContext ) |
Read a value with units
| aInput | The input stream. |
| aValueType | The unit type of the parameter. |
| aContext | The script context for resolving a script variable. |
References WsfScriptContext::GetContext(), mScale, mValue, and mVarNameId.
Referenced by WsfGuidanceComputer::Phase::ProcessNextPhase().
| void WsfGuidanceComputer::Variable::Update | ( | WsfScriptContext & | aContext | ) |
Update the value of the variable if it a script reference
| aContext | The script context for resolving a script variable. |
References WsfScriptContext::GetContext(), mScale, mValue, and mVarNameId.
Referenced by WsfGuidanceComputer::CheckForPhaseChange().
| void WsfGuidanceComputer::Variable::ValueGreater | ( | UtInput & | aInput, |
| double | aMinValue ) |
Interface to UtInput::ValueGreater.
References HasDefaultValue(), IsReference(), and mValue.
Referenced by WsfGuidanceComputer::Phase::ProcessNextPhase().
| void WsfGuidanceComputer::Variable::ValueGreaterOrEqual | ( | UtInput & | aInput, |
| double | aMinValue ) |
Interface to UtInput::ValueGreaterOrEqual.
References HasDefaultValue(), IsReference(), and mValue.
Referenced by WsfGuidanceComputer::Phase::ProcessNextPhase().
| void WsfGuidanceComputer::Variable::ValueInClosedRange | ( | UtInput & | aInput, |
| double | aMinValue, | ||
| double | aMaxValue ) |
Interface to UtInput::ValueInClosedRange.
References HasDefaultValue(), IsReference(), and mValue.
| void WsfGuidanceComputer::Variable::ValueLess | ( | UtInput & | aInput, |
| double | aMaxValue ) |
Interface to UtInput::ValueLess.
References HasDefaultValue(), IsReference(), and mValue.
Referenced by WsfGuidanceComputer::Phase::ProcessNextPhase().
| void WsfGuidanceComputer::Variable::ValueLessOrEqual | ( | UtInput & | aInput, |
| double | aMaxValue ) |
Interface to UtInput::ValueLessOrEqual.
References HasDefaultValue(), IsReference(), and mValue.
| double WsfGuidanceComputer::Variable::mScale |
The scale factor used to convert from user supplied units to internal units.
Referenced by operator=(), ReadValue(), ReadValueOfType(), Update(), and Variable().
| double WsfGuidanceComputer::Variable::mValue |
The current value. This will be the constant value if mVarNameId.IsNull() or the last value resolved from a script reference.
Referenced by Get(), operator double(), operator+(), operator-(), operator=(), ReadValue(), ReadValueOfType(), Update(), ValueGreater(), ValueGreaterOrEqual(), ValueInClosedRange(), ValueLess(), ValueLessOrEqual(), and Variable().
| WsfStringId WsfGuidanceComputer::Variable::mVarNameId |
The name of the script variable from which the value is to be gotten. If IsNull() then use the constant value in mValue.
Referenced by IsReference(), operator=(), ReadValue(), ReadValueOfType(), Update(), and Variable().