20#ifndef _SIGNALMBSIM_H_
21#define _SIGNALMBSIM_H_
23#include "mbsim/links/link.h"
24#include "mbsimControl/namespace.h"
30namespace MBSimControl {
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(fmatvec::Mat& ref,
int i=0)
override { }
50 void updateVRef(fmatvec::Mat& ref,
int i=0)
override { }
51 void updatehRef(fmatvec::Vec &hRef,
int i=0)
override { }
52 virtual void updatedhdqRef(fmatvec::Mat& ref,
int i=0) { }
53 virtual void updatedhduRef(fmatvec::SqrMat& ref,
int i=0) { }
54 virtual void updatedhdtRef(fmatvec::Vec& ref,
int i=0) { }
55 void updaterRef(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; }
59 void updaterFactors()
override { }
60 void solveConstraintsFixpointSingle()
override { }
61 void checkConstraintsForTermination()
override { }
65 const fmatvec::VecV& getSignal(
bool check=
true) { assert((not check) or (not upds));
return s; }
66 const fmatvec::VecV& evalSignal() {
if(upds) updateSignal();
return s; }
67 virtual int getSignalSize()
const {
return 0; }
69 void resetUpToDate()
override { upds =
true; }
Signal.
Definition: signal_.h:38
Link(const std::string &name)