36 InputMap::const_iterator it =
_input.begin();
37 if( it ==
_input.end() )
return false;
38 return (*it).second->test();
47 for( OutputMap::iterator it =
_output.begin(); it !=
_output.end(); ++it )
48 (*it).second->setValue( value );
53 OutputMap::const_iterator it =
_output.begin();
54 bool q = it !=
_output.end() ? (*it).second->getValue() :
false;
66 cout <<
"updating logic \"" << subsystemId() <<
"\"" << endl;
67 cout <<
"prev. Output:" << q << endl;
68 cout <<
"new Output:" << a << endl;
bool _debug
debug flag, true if this component should generate some useful output on every iteration
OutputMap _output
Named output "pins".
bool _inverted
Global "inverted" flag for the outputs.
InputMap _input
Named input "pins".
void update(bool firstTime, double dt)
pure virtual function to be implemented by the derived classes.
void set_output(bool value)
SGSubsystemMgr::Registrant< Logic > registrantLogic