|
|
||||||
|
tp_timeconstraint.cpp
Go to the documentation of this file.
289 TimeConstraint::Iterator TimeConstraint::Insert(Idx clockindex, Operator op, const Time::Type timeconst) {
393 bool TimeConstraint::Erase(const std::string& clockname, Operator op, const Time::Type timeconst)
510 FD_DC("TimeConstraint(" << this << ")::Interval(" << clockindex <<", " << rInterval.Str() << ") ");
#define FD_DC(message) Debug: optional report on container operations. Definition: cfl_definitions.h:153 #define FD_ERR(message) Debug: report more errors with file/line info. Definition: cfl_definitions.h:91 #define FAUDES_TYPE_IMPLEMENTATION_EQUAL(ftype, ctype, cbase) Definition: cfl_types.h:904 #define FAUDES_TYPE_IMPLEMENTATION_COPY(ftype, ctype, cbase) Definition: cfl_types.h:891 #define FAUDES_TYPE_IMPLEMENTATION_CAST(ftype, ctype, cbase) Definition: cfl_types.h:893 #define FAUDES_TYPE_IMPLEMENTATION_ASSIGN(ftype, ctype, cbase) Definition: cfl_types.h:896 virtual void DoAssign(const ClockSet &rSourceSet) Assign from other clock set. Definition: tp_timeconstraint.cpp:62 virtual bool DoEqual(const ClockSet &rOtherSet) const Test equality with other clock set. Definition: tp_timeconstraint.cpp:68 static SymbolTable * GlobalClockSymbolTablep(void) Get pointer to static clock SymbolTable (init on first use pattern) Definition: tp_timeconstraint.cpp:77 Model of an elementary clock constraint formula. Definition: tp_timeconstraint.h:125 bool operator<(const ElemConstraint &otherElemConstraint) const Less operator for ordering in container classes. Definition: tp_timeconstraint.cpp:179 bool operator==(const ElemConstraint &otherElemConstraint) const Test for equality. Definition: tp_timeconstraint.cpp:167 Operator Typedef for comparison operators in elementary clock constraints. Definition: tp_timeconstraint.h:133 Time::Type mTimeConstant Time constant to compare with clock value. Definition: tp_timeconstraint.h:258 bool operator!=(const ElemConstraint &otherElemConstraint) const Test for equality. Definition: tp_timeconstraint.cpp:174 void Set(Idx clockindex, Operator op, Time::Type timeconst) Set all values. Definition: tp_timeconstraint.cpp:118 std::string Str(void) const Writes ElemConstraint to std::string. Definition: tp_timeconstraint.cpp:158 static std::string OperatorName(Operator op) Conversion from symbolic operator to string. Definition: tp_timeconstraint.cpp:95 ElemConstraint(void) Construct an (invalid) elementary clock constraint (clockindex 0) Definition: tp_timeconstraint.cpp:107 virtual void InsertSet(const NameSet &rOtherSet) Inserts all elements of rOtherSet. Definition: cfl_nameset.cpp:295 bool DoEqual(const NameSet &rOtherSet) const Test equality of configuration data. Definition: cfl_nameset.cpp:92 A SymbolTable associates sybolic names with indices. Definition: cfl_symboltable.h:61 Idx InsEntry(Idx index, const std::string &rName) Add new entry (aka symbolic name and index) to symboltable,. Definition: cfl_symboltable.cpp:138 A TimeConstraint is a set of elementary clock constraints. Definition: tp_timeconstraint.h:276 std::set< ElemConstraint > ClockConstraints(void) const Returns copy of ClockConstraints. Definition: tp_timeconstraint.cpp:337 Idx InsClock(const std::string &rClockName) const Advertise clock to ClockSymbolTable and retrive index. Definition: tp_timeconstraint.cpp:252 std::set< ElemConstraint >::const_iterator Iterator Iterator to access ElemConstraints. Definition: tp_timeconstraint.h:281 bool Exists(const ElemConstraint &rElemConstr) const Checks if elementary clock constraint is contained in constraint. Definition: tp_timeconstraint.cpp:402 std::string EStr(const ElemConstraint &rElemConstr) const Pretty printable string of elem. Definition: tp_timeconstraint.cpp:268 bool Empty(void) const Checks if TimeConstraint containts no ElemConstraints. Definition: tp_timeconstraint.cpp:242 std::set< ElemConstraint > mClockConstraints Set of elementary clock constraints. Definition: tp_timeconstraint.h:801 void DWrite(void) const Write NameSet to console, debug version. Definition: tp_timeconstraint.cpp:626 void Read(const std::string &rFileName, const std::string &rLabel="TimeConstraint") Read from file. Definition: tp_timeconstraint.cpp:643 TimeConstraint(void) Construct an empty TimeConstraint (allways satisfied) Definition: tp_timeconstraint.cpp:198 RIterator RBegin(void) const Reverse iterator that yields the ElemConstraints in reverse order starting at the last element and en... Definition: tp_timeconstraint.cpp:432 TimeInterval Interval(Idx clockindex) const Given a clock, compute the timeinterval in which the constraint is satisfied. Definition: tp_timeconstraint.cpp:471 bool operator==(const TimeConstraint &rOther) const Test for equality. Definition: tp_timeconstraint.cpp:546 void Minimize(void) Minimize by eliminating redundant elementary constraints. Definition: tp_timeconstraint.cpp:536 bool operator!=(const TimeConstraint &rOther) const Test for equality. Definition: tp_timeconstraint.cpp:558 std::set< ElemConstraint >::const_reverse_iterator RIterator Reverse iterator to access ElemConstraints. Definition: tp_timeconstraint.h:284 Idx ClockIndex(const std::string &rClockName) const Lookup clock index. Definition: tp_timeconstraint.cpp:262 RIterator REnd(void) const Reverse iterator that yields the ElemConstraints in reverse order starting at the last element and en... Definition: tp_timeconstraint.cpp:437 bool EraseByClock(Idx clock) Removes all elementary clock constraints refering to a specified clock. Definition: tp_timeconstraint.cpp:343 std::set< ElemConstraint >::iterator iterator nonconst iterator to access ElemConstraints Definition: tp_timeconstraint.h:807 Iterator Insert(const ElemConstraint &rElemConstr) Adds an elementary clock constraint to the time constraint. Definition: tp_timeconstraint.cpp:278 ClockSet ActiveClocks(void) const Returns a Clockset containing all clocks used by the TimeConstraint. Definition: tp_timeconstraint.cpp:452 SymbolTable * ClockSymbolTablep(void) const Get Pointer to mpClockSymbolTable. Definition: tp_timeconstraint.cpp:225 void Intersect(const TimeInterval &rOtherInterval) Intersect this interval with other interval. Definition: tp_timeinterval.cpp:87 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 void ReadEnd(const std::string &rLabel) Close the current section by matching the previous ReadBegin(). Definition: cfl_tokenreader.cpp:364 void ReadBegin(const std::string &rLabel) Open a section by specified label. Definition: cfl_tokenreader.cpp:249 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:51 std::string Str(void) Retrieve output as string (if in String mode) Definition: cfl_tokenwriter.cpp:160 void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) Read configuration data from file with label specified. Definition: cfl_types.cpp:261 Classes ClockSet, ElemConstraint and TimeConstraint. libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |