mbsimcontrol  4.0.0
MBSim Control Module
MBSimControl::Switch Class Reference

Switch. More...

#include <switch.h>

Inheritance diagram for MBSimControl::Switch:
[legend]

Public Member Functions

 Switch (const std::string &name="")
 
void initializeUsingXML (xercesc::DOMElement *element) override
 
void init (InitStage stage, const MBSim::InitConfigSet &config) override
 
void setFirstDataInputSignal (Signal *signal_)
 
void setSecondDataInputSignal (Signal *signal_)
 
void setControlInputSignal (Signal *signal_)
 
void setThreshold (double s0_)
 
void setRootFinding (bool rf_)
 
void updateSignal () override
 
int getSignalSize () const override
 
bool isSetValued () const override
 
void calcsvSize () override
 
void updateStopVector () override
 
void checkActive (int j) override
 
bool isActive () const 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 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
 
- Public Member Functions inherited from MBSim::Element
 Element (const std::string &name)
 
virtual void setDynamicSystemSolver (DynamicSystemSolver *sys)
 
virtual void plotAtSpecialEvent ()
 
const std::string & getName () const
 
void setName (const std::string &str)
 
DynamicSystemSolver * getDynamicSystemSolver ()
 
H5::GroupBase * getPlotGroup ()
 
bool getPlotFeature (const PlotFeatureEnum &pf)
 
virtual void setPlotFeature (const PlotFeatureEnum &pf, bool value)
 
void setPlotFeatureForChildren (const PlotFeatureEnum &pf, bool value)
 
void setPlotFeatureRecursive (const PlotFeatureEnum &pf, bool value)
 
T * getByPath (const std::string &path, bool initialCaller=true) const
 
std::string getPath (const Element *relTo=nullptr, std::string sep="/") const
 
virtual Element * getChildByContainerAndName (const std::string &container, const std::string &name) const
 
std::vector< Element * > getDependencies () const
 
int computeLevel ()
 

Private Attributes

Signal * dataSignal1 {nullptr}
 
Signal * dataSignal2 {nullptr}
 
Signal * controlSignal {nullptr}
 
double s0 {0}
 
bool active {false}
 
bool rf {false}
 
std::string dataSignalString1
 
std::string dataSignalString2
 
std::string controlSignalString
 

Additional Inherited Members

- Public Types inherited from MBSim::Element
enum  InitStage
 
- Public Attributes inherited from MBSim::Element
 resolveStringRef
 
 preInit
 
 plotting
 
 unknownStage
 
- Protected Attributes inherited from MBSimControl::Signal
fmatvec::VecV s
 
bool upds
 
- Protected Attributes inherited from MBSim::Element
std::string name
 
std::string path
 
MBXMLUtils::DOMEvalException domEvalError
 
DynamicSystemSolver * ds
 
H5::VectorSerie< double > * plotVectorSerie
 
std::vector< double > plotVector
 
std::vector< std::string > plotColumns
 
H5::GroupBase * plotGroup
 
std::vector< Element * > dependency
 
PlotFeatureMap plotFeature
 

Detailed Description

Switch.

Author
Martin Foerg

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