20 #ifndef _SIGNALMBSIM_H_
21 #define _SIGNALMBSIM_H_
23 #include "mbsim/links/link.h"
24 #include "mbsimControl/namespace.h"
30 namespace MBSimControl {
41 Signal(
const std::string &name) : Link(name), upds(
true) { }
43 void init(InitStage stage,
const MBSim::InitConfigSet &config)
override;
45 void updateg()
override { }
46 void updategd()
override { }
47 virtual void updateSignal() { }
49 void updateWRef(
const fmatvec::Mat& ref,
int i=0)
override { }
50 void updateVRef(
const fmatvec::Mat& ref,
int i=0)
override { }
51 void updatehRef(
const fmatvec::Vec &hRef,
int i=0)
override { }
52 virtual void updatedhdqRef(
const fmatvec::Mat& ref,
int i=0) { }
54 virtual void updatedhdtRef(
const fmatvec::Vec& ref,
int i=0) { }
55 void updaterRef(
const fmatvec::Vec &ref,
int i=0)
override { }
56 bool isActive()
const override {
return false; }
57 bool gActiveChanged()
override {
return false; }
58 bool isSingleValued()
const override {
return true; }
62 const fmatvec::VecV& getSignal(
bool check=
true) { assert((not check) or (not upds));
return s; }
63 const fmatvec::VecV& evalSignal() {
if(upds) updateSignal();
return s; }
64 virtual int getSignalSize()
const {
return s.size(); }
66 void resetUpToDate()
override { upds =
true; }
Signal.
Definition: signal_.h:38