20 #ifndef _SIGNALMBSIM_H_
21 #define _SIGNALMBSIM_H_
23 #include "mbsim/link.h"
29 namespace MBSimControl {
31 const MBXMLUtils::NamespaceURI MBSIMCONTROL(
"http://www.mbsim-env.de/MBSimControl");
40 Signal(
const std::string &name) : Link(name) {}
42 void init(InitStage stage);
45 virtual void updateg(
double t) {getSignal(); };
46 virtual void updategd(
double t) {};
50 virtual void updateWRef(
const fmatvec::Mat& ref,
int i=0) {}
51 virtual void updateVRef(
const fmatvec::Mat& ref,
int i=0) {}
52 virtual void updatehRef(
const fmatvec::Vec &hRef,
int i=0) {}
53 virtual void updatedhdqRef(
const fmatvec::Mat& ref,
int i=0) {}
55 virtual void updatedhdtRef(
const fmatvec::Vec& ref,
int i=0) {}
56 virtual void updaterRef(
const fmatvec::Vec &ref,
int i=0) {}
57 virtual bool isActive()
const {
return false; }
58 virtual bool gActiveChanged() {
return false; }
59 virtual bool isSingleValued()
const {
return true; }
63 std::string getType()
const {
return "Signal"; }
64 virtual void plot(
double t,
double dt = 1);
67 virtual fmatvec::VecV getSignal() = 0;
Signal.
Definition: signal_.h:37