mbsimcontrol  4.0.0
MBSim Control Module
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
MBSimControl::StateMachine Class Reference

State machine. More...

#include <state_machine.h>

Inheritance diagram for MBSimControl::StateMachine:
[legend]

Classes

struct  State
 
struct  Transition
 

Public Member Functions

 StateMachine (const std::string &name="")
 
void initializeUsingXML (xercesc::DOMElement *element) override
 
void init (InitStage stage, const MBSim::InitConfigSet &config) override
 
void addState (const std::string &name, double val)
 
Transition & addTransition (const std::string &name, const std::string &dest, Signal *sig, double s0=0)
 
void setInitialState (const std::string &name)
 
const State & getActiveState () const
 
void updateSignal () override
 
int getSignalSize () const override
 
void calcisSize () override
 
void calcsvSize () override
 
void updateStopVector () override
 
void checkActive (int j) override
 
- Public Member Functions inherited from MBSimControl::Signal
 Signal (const std::string &name)
 
void init (InitStage stage, const MBSim::InitConfigSet &config) override
 
void updateg () override
 
void updategd () override
 
void updateWRef (fmatvec::Mat &ref, int i=0) override
 
void updateVRef (fmatvec::Mat &ref, int i=0) override
 
void updatehRef (fmatvec::Vec &hRef, int i=0) override
 
virtual void updatedhdqRef (fmatvec::Mat &ref, int i=0)
 
virtual void updatedhduRef (fmatvec::SqrMat &ref, int i=0)
 
virtual void updatedhdtRef (fmatvec::Vec &ref, int i=0)
 
void updaterRef (fmatvec::Vec &ref, int i=0) override
 
bool isActive () const override
 
bool gActiveChanged () override
 
bool isSingleValued () const override
 
void updaterFactors () override
 
void solveConstraintsFixpointSingle () override
 
void checkConstraintsForTermination () override
 
void plot () override
 
const fmatvec::VecV & getSignal (bool check=true)
 
const fmatvec::VecV & evalSignal ()
 
void resetUpToDate () override
 

Private Attributes

std::vector< State > state
 
std::vector< Transition > transition
 
std::string stateStr
 

Additional Inherited Members

- Protected Attributes inherited from MBSimControl::Signal
fmatvec::VecV s
 
bool upds
 

Detailed Description

State machine.

Author
Martin Foerg

The documentation for this class was generated from the following files: