|
|
||||||
|
Public Types |
Public Member Functions |
Protected Types |
Protected Attributes |
List of all members
faudes::TimeConstraint Class Reference Detailed DescriptionA TimeConstraint is a set of elementary clock constraints. Semantically, the elementary constraints are combibed by conjunction, ie the TimeConstraint is satisfied if all ElemConstraint s are satisfied. This implementation also maintains the clock symboltable to may cloc indices to symbolic names.
Definition at line 276 of file tp_timeconstraint.h.
Member Typedef Documentation◆ Iterator
Iterator to access ElemConstraints. Definition at line 281 of file tp_timeconstraint.h. ◆ iterator
nonconst iterator to access ElemConstraints Definition at line 807 of file tp_timeconstraint.h. ◆ OperatorConvenience typedef for operators. Definition at line 287 of file tp_timeconstraint.h. ◆ RIterator
Reverse iterator to access ElemConstraints. Definition at line 284 of file tp_timeconstraint.h. Constructor & Destructor Documentation◆ TimeConstraint() [1/3]
Construct an empty TimeConstraint (allways satisfied) Definition at line 198 of file tp_timeconstraint.cpp. ◆ TimeConstraint() [2/3]
Copy constructor.
Definition at line 212 of file tp_timeconstraint.cpp. ◆ TimeConstraint() [3/3]
Constructor from file. Uses Read() to scan a file for specified label to read the constraint.
Definition at line 205 of file tp_timeconstraint.cpp. ◆ ~TimeConstraint()
Destructor. Definition at line 221 of file tp_timeconstraint.cpp. Member Function Documentation◆ ActiveClocks()
Returns a Clockset containing all clocks used by the TimeConstraint.
Definition at line 452 of file tp_timeconstraint.cpp. ◆ Begin() [1/2]
Iterator to first constraint with specified clock.
Definition at line 442 of file tp_timeconstraint.cpp. ◆ Begin() [2/2]
Iterator to begin of set.
Definition at line 421 of file tp_timeconstraint.cpp. ◆ Clear()
Clear all. Definition at line 413 of file tp_timeconstraint.cpp. ◆ ClockConstraints()
Returns copy of ClockConstraints. Definition at line 337 of file tp_timeconstraint.cpp. ◆ ClockIndex()
Lookup clock index.
Definition at line 262 of file tp_timeconstraint.cpp. ◆ ClockName()
Lookup clock name.
Definition at line 257 of file tp_timeconstraint.cpp. ◆ ClockSymbolTablep() [1/2]
Set Pointer to mpClockSymbolTable. Definition at line 230 of file tp_timeconstraint.cpp. ◆ ClockSymbolTablep() [2/2]
Get Pointer to mpClockSymbolTable.
Definition at line 225 of file tp_timeconstraint.cpp. ◆ DWrite() [1/2]
Write to TokenWriter, debug version.
Definition at line 632 of file tp_timeconstraint.cpp. ◆ DWrite() [2/2]
Write NameSet to console, debug version. Definition at line 626 of file tp_timeconstraint.cpp. ◆ Empty()
Checks if TimeConstraint containts no ElemConstraints.
Definition at line 242 of file tp_timeconstraint.cpp. ◆ End() [1/2]
Iterator to first constraint just behind specified clock.
Definition at line 447 of file tp_timeconstraint.cpp. ◆ End() [2/2]
Iterator to end of set.
Definition at line 427 of file tp_timeconstraint.cpp. ◆ Erase() [1/4]
Removes elementary clock constraint.
Definition at line 372 of file tp_timeconstraint.cpp. ◆ Erase() [2/4]
Removes elementary clock constraint.
Definition at line 393 of file tp_timeconstraint.cpp. ◆ Erase() [3/4]
Removes elementary clock constraint.
Definition at line 384 of file tp_timeconstraint.cpp. ◆ Erase() [4/4]
Calls std::set::erase(iterator). ElemConstraint refered by it is removed from constraint.
Definition at line 361 of file tp_timeconstraint.cpp. ◆ EraseByClock()
Removes all elementary clock constraints refering to a specified clock.
Definition at line 343 of file tp_timeconstraint.cpp. ◆ EStr()
Pretty printable string of elem. constraint
Definition at line 268 of file tp_timeconstraint.cpp. ◆ Exists()
Checks if elementary clock constraint is contained in constraint.
Definition at line 402 of file tp_timeconstraint.cpp. ◆ InsClock()
Advertise clock to ClockSymbolTable and retrive index.
Definition at line 252 of file tp_timeconstraint.cpp. ◆ Insert() [1/5]
Adds an elementary clock constraint to the time constraint.
Definition at line 278 of file tp_timeconstraint.cpp. ◆ Insert() [2/5]
Adds a list of elementary clock constraints to the time constraint.
Definition at line 310 of file tp_timeconstraint.cpp. ◆ Insert() [3/5]
Adds an elementary clock constraint to the time constraint.
Definition at line 298 of file tp_timeconstraint.cpp. ◆ Insert() [4/5]
Adds elementary clock constraints from other TimeConstant to the time constraint.
Definition at line 321 of file tp_timeconstraint.cpp. ◆ Insert() [5/5]
Adds an elementary clock constraint to the time constraint.
Definition at line 289 of file tp_timeconstraint.cpp. ◆ Interval() [1/4]
Given a clock, compute the timeinterval in which the constraint is satisfied.
Definition at line 465 of file tp_timeconstraint.cpp. ◆ Interval() [2/4]
Given a clock and an interval, set up the constraint such that it is valid in the given interval.
Definition at line 503 of file tp_timeconstraint.cpp. ◆ Interval() [3/4]
Given a clock, compute the timeinterval in which the constraint is satisfied.
Definition at line 471 of file tp_timeconstraint.cpp. ◆ Interval() [4/4]
Given a clock and an interval, set up the constraint such that it is valid in the given interval.
Definition at line 509 of file tp_timeconstraint.cpp. ◆ Minimize()
Minimize by eliminating redundant elementary constraints. The current implemantation retrieves the time constraints as intervals per clock and then converts back to a time constraint. Definition at line 536 of file tp_timeconstraint.cpp. ◆ Name() [1/2]
Set name of Constraint.
Definition at line 450 of file tp_timeconstraint.h. ◆ Name() [2/2]
◆ operator!=()
Test for equality.
Definition at line 558 of file tp_timeconstraint.cpp. ◆ operator<<() [1/2]
Convenience operator to combines a TimeConstraint with an elementary TimeConstraint.
Definition at line 541 of file tp_timeconstraint.h. ◆ operator<<() [2/2]
Convenience operator to combine a TimeConstraint with another TimeConstraint.
Definition at line 530 of file tp_timeconstraint.h. ◆ operator==()
Test for equality. The implementation converts both constraints to intervals and then performs the comparison.
Definition at line 546 of file tp_timeconstraint.cpp. ◆ RBegin()
Reverse iterator that yields the ElemConstraints in reverse order starting at the last element and ending after the first. See set<...>::rbegin(void). Returns the "End".
Definition at line 432 of file tp_timeconstraint.cpp. ◆ Read() [1/2]
Read from file. Reads specified label by creating a tokenreader and calling read(tr)
Definition at line 643 of file tp_timeconstraint.cpp. ◆ Read() [2/2]
Read from tokenreader. Clears before. It is an error if the file contains an index
Definition at line 649 of file tp_timeconstraint.cpp. ◆ REnd()
Reverse iterator that yields the ElemConstraints in reverse order starting at the last element and ending after the first. See set<...>::rend(void). Returns the "Begin".
Definition at line 437 of file tp_timeconstraint.cpp. ◆ Size()
Returns number of ElemConstraint s.
Definition at line 247 of file tp_timeconstraint.cpp. ◆ ToString()
Write to a std::string.
Definition at line 618 of file tp_timeconstraint.cpp. ◆ Write() [1/4]
Write to file with label (default: "TimeConstraint") and openmode (default: truncate file).
Definition at line 570 of file tp_timeconstraint.cpp. ◆ Write() [2/4]
Write to TokenWriter. The name of the constraint is used as the label in the file.
Definition at line 584 of file tp_timeconstraint.cpp. ◆ Write() [3/4]
Write to TokenWriter with a given label.
Definition at line 590 of file tp_timeconstraint.cpp. ◆ Write() [4/4]
Write to console. Definition at line 564 of file tp_timeconstraint.cpp. Member Data Documentation◆ mClockConstraints
Set of elementary clock constraints. Definition at line 801 of file tp_timeconstraint.h. ◆ mName
My name. Definition at line 798 of file tp_timeconstraint.h. ◆ mpClockSymbolTable
SymbolTable for clock names. Definition at line 804 of file tp_timeconstraint.h. The documentation for this class was generated from the following files: libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |