6 #ifndef DYNAMIC_GRAPH_SIGNAL_TIME_DEPENDENT_H 7 #define DYNAMIC_GRAPH_SIGNAL_TIME_DEPENDENT_H 62 template <
class T,
class Time>
63 class SignalTimeDependent :
public virtual Signal<T, Time>,
64 public TimeDependency<Time> {
70 std::string
name =
"");
72 const SignalArray_const<Time> &
sig,
73 std::string
name =
"");
78 const T &
access(
const Time &t1);
84 std::ostream &
writeGraph(std::ostream &os)
const {
return os; }
87 std::string space =
"",
88 std::string next1 =
"",
89 std::string next2 =
"")
const {
101 template <
class T,
class Time>
105 template <
class T,
class Time>
110 template <
class T,
class Time>
115 this->setFunction(t);
118 template <
class T,
class Time>
135 template <
class T,
class Time>
141 template <
class T,
class Time>
147 template <
class T,
class Time>
152 template <
class T,
class Time>
157 template <
class T,
class Time>
161 template <
class T,
class Time>
const T & operator()(const Time &t1)
const T & access(const Time &t1)
std::ostream & writeGraph(std::ostream &os) const
A helper class for setting and specifying dependencies between signals.
A type of signal that enforces a time dependency between other signals, making sure its inputs are up...
virtual ~SignalTimeDependent()
dynamicgraph::SignalArray_const< double > sig
Signals link I/O ports of entities. They can be constant-valued signals, or copy the value of a heap ...
std::ostream & displayDependencies(std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const
The base class for signals: not to be used as such.
virtual void removeDependency(const SignalBase< Time > &signal)
virtual void addDependency(const SignalBase< Time > &signal)
SignalTimeDependent(std::string name="")
virtual void clearDependencies()
virtual bool needUpdate(const Time &t) const
virtual Time getPeriodTime() const
std::ostream & displayDependencies(std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const
virtual void setPeriodTime(const Time &p)