52 std::cout <<
"######################################\n";
53 std::cout <<
"# a timeconstraint \n";
55 std::cout <<
"######################################\n";
58 tc1.
Write(
"tmp_timeconstraint.txt");
65 std::cout <<
"######################################\n";
66 std::cout <<
"# inspection ... \n";
67 ClockSet::Iterator cit;
68 for(cit = clocks1.
Begin(); cit != clocks1.
End(); cit++) {
69 std::cout <<
"clock: " << clocks1.
SymbolicName(*cit) <<
"\n";
71 for(tit = tc1.
Begin(*cit); tit != tc1.
End(*cit); tit++) {
72 std::cout <<
"elem constraint: " << tc1.
EStr(*tit) <<
"\n";
75 std::cout <<
"time interval: " << tint.
Str() <<
"\n";
77 std::cout <<
"######################################\n";
95 std::cout <<
"######################################\n";
96 std::cout <<
"# after various insertions \n";
98 std::cout <<
"######################################\n";
104 std::cout <<
"######################################\n";
105 std::cout <<
"# after erase \n";
107 std::cout <<
"######################################\n";
118 std::cout <<
"######################################\n";
119 std::cout <<
"# another constraint \n";
121 std::cout <<
"######################################\n";
131 std::cout <<
"######################################\n";
132 std::cout <<
"# minimal version \n";
134 std::cout <<
"######################################\n";
#define FAUDES_TEST_DUMP(mes, dat)
Test protocol record macro ("mangle" filename for platform independance)
Container class to model a set of clocks.
void SymbolicName(Idx index, const std::string &rName)
Set new name for existing index.
A TimeConstraint is a set of elementary clock constraints.
std::set< ElemConstraint >::const_iterator Iterator
Iterator to access ElemConstraints.
Iterator Erase(Iterator it)
Calls std::set::erase(iterator).
std::string ToString(void) const
Write to a std::string.
Iterator End(void) const
Iterator to end of set.
std::string EStr(const ElemConstraint &rElemConstr) const
Pretty printable string of elem.
void DWrite(void) const
Write NameSet to console, debug version.
TimeInterval Interval(Idx clockindex) const
Given a clock, compute the timeinterval in which the constraint is satisfied.
void Minimize(void)
Minimize by eliminating redundant elementary constraints.
Iterator Begin(void) const
Iterator to begin of set.
Iterator Insert(const ElemConstraint &rElemConstr)
Adds an elementary clock constraint to the time constraint.
ClockSet ActiveClocks(void) const
Returns a Clockset containing all clocks used by the TimeConstraint.
void Write(void) const
Write to console.
Model of a time interval.
void LB(Time::Type time)
Set the lower bound to a given value.
std::string Str(void) const
Pretty printable string.
void UBincl(bool incl)
Configures the upper bound to be inclusive.
void UB(Time::Type time)
Set the upper bound to a given value.
Iterator End(void) const
Iterator to the end of set.
Iterator Begin(void) const
Iterator to the begin of set.
Includes all libFAUDES headers, incl plugings
libFAUDES resides within the namespace faudes.