6 #ifndef DYNAMIC_GRAPH_TIME_DEPENDENCY_H 7 #define DYNAMIC_GRAPH_TIME_DEPENDENCY_H 19 class TimeDependency {
52 virtual std::ostream &
writeGraph(std::ostream &os)
const;
54 std::string space =
"",
55 std::string next1 =
"",
56 std::string next2 =
"")
const;
63 updateFromAllChildren = b;
TimeDependency(SignalBase< Time > *sig, const DependencyType dep=DEPENDENCY_TYPE_DEFAULT)
virtual std::ostream & writeGraph(std::ostream &os) const
static const DependencyType DEPENDENCY_TYPE_DEFAULT
std::list< const SignalBase< Time > * > Dependencies
bool needUpdate(const Time &t1) const
void setNeedUpdateFromAllChildren(const bool b=true)
void setDependencyType(DependencyType dep)
dynamicgraph::SignalArray_const< double > sig
void addDependency(const SignalBase< Time > &sig)
std::ostream & displayDependencies(std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const
void addDependencies(const SignalArray_const< Time > &arr)
static const Time PERIOD_TIME_DEFAULT
The base class for signals: not to be used as such.
virtual ~TimeDependency()
static const bool ALL_READY_DEFAULT
bool getNeedUpdateFromAllChildren() const
bool updateFromAllChildren
SignalBase< Time > & leader
void setPeriodTime(const Time &p)
DependencyType dependencyType
Dependencies dependencies
void removeDependency(const SignalBase< Time > &sig)
Time getPeriodTime() const