43 #include "FGFCSComponent.h" 44 #include "math/FGCondition.h" 45 #include "math/FGPropertyValue.h" 51 #define ID_SWITCH "$Id: FGSwitch.h,v 1.18 2013/11/24 11:40:57 bcoconni Exp $" 162 double GetValue(
void) {
163 if (OutputProp == 0L)
return OutputVal;
164 else return OutputProp->GetValue()*sign;
174 void setTestValue(std::string value, std::string Name,
178 std::cerr <<
"No VALUE supplied for switch component: " << Name << std::endl;
180 if (is_number(value)) {
181 OutputVal = atof(value.c_str());
184 if (value[0] ==
'-') {
202 std::vector <test*> tests;
204 void Debug(
int from);
Represents a property value which can use late binding.
FGSwitch(FGFCS *fcs, Element *element)
Constructor.
Class wrapper for property handling.
bool Run(void)
Executes the switch logic.
Encapsulates the Flight Control System (FCS) functionality.
Base class for JSBSim Flight Control System Components.
Encapsulates a condition, which is used in parts of JSBSim including switches.
Encapsulates a switch for the flight control system.