|
Go to the documentation of this file.
25 TaEventSet<AttributePriority> prios1;
26 Idx alpha= prios1.Insert( "alpha");
27 Idx beta= prios1.Insert( "beta");
28 Idx gamma= prios1.Insert( "gamma");
31 prios1.Attribute(alpha,prio);
33 prios1.Attribute(beta,prio);
35 prios1.Attribute(gamma,prio);
37 std::cout << "alphabet of priorisied events (using vanilla attributed event set)" << std::endl;
47 alpha= prios2.Insert( "alpha");
48 beta= prios2.Insert( "beta");
49 gamma= prios2.Insert( "gamma");
54 std::cout << "alphabet of priorisied events (using convenience class)" << std::endl;
59 std::cout << "normalised priosities" << std::endl;
64 bool ok= events == prios2;
66 std::cout << "copy to plain alphabet: events match (PASS)" << std::endl;
68 std::cout << "copy to plain alphabet: events mismatch (FAIL)" << std::endl;
72 std::cout << "copy to prio alphabet: events match (PASS)" << std::endl;
74 std::cout << "copy to prio alphabet: events mismatch (FAIL)" << std::endl;
75 ok= prios2.EqualAttributes(prios3);
77 std::cout << "copy to prio alphabet: priorities match (PASS)" << std::endl;
79 std::cout << "copy to prio alphabet: priorities mismatch (FAIL)" << std::endl;
82 ok=prios2.EqualAttributes(prios3);
84 std::cout << "manipulate priorities: still match (FAIL)" << std::endl;
86 std::cout << "manipulate priorities: mismatch (PASS)" << std::endl;
95 falph1. FromString( "<EventSet> alpha beta </EventSet>");
96 falph2. FromString( "<EventSet> beta gamma </EventSet>");
102 std::cout << "found alph2 at " << pos << " (PASS)" << std::endl;
104 std::cout << "found alph2 at " << pos << " (FAIL)" << std::endl;
std::vector< int >::size_type Position
Idx Priority(const std::string &rName) const
void NormalisePriorities(void)
FairnessConstraints Fairness(void) const
void Priorities(const TpEventSet< EventAttr > &rOtherSet)
void FromString(const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
virtual void XWrite(const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
void Write(const Type *pContext=0) const
virtual Position Find(const Type &rElem)
virtual void Append(const Type &rElem)
libFAUDES 2.33b
--- 2025.05.07
--- c++ api documentaion by doxygen
|