50 #ifndef _RULEADAPTER_H_
51 #define _RULEADAPTER_H_
53 #include "../../model/CascadingDescriptor.h"
54 #include "../../model/CompositeExecutionObject.h"
55 #include "../../model/ExecutionObject.h"
56 using namespace ::br::pucrio::telemidia::ginga::ncl::model::components;
58 #include "../../model/ExecutionObjectSwitch.h"
59 using namespace ::br::pucrio::telemidia::ginga::ncl::model::switches;
61 #include "ncl/descriptor/GenericDescriptor.h"
62 using namespace ::br::pucrio::telemidia::ncl::descriptor;
64 #include "ncl/switches/DescriptorSwitch.h"
65 #include "ncl/switches/CompositeRule.h"
66 #include "ncl/switches/Rule.h"
67 #include "ncl/switches/SimpleRule.h"
68 #include "ncl/switches/SwitchNode.h"
69 using namespace ::br::pucrio::telemidia::ncl::switches;
71 #include "ncl/util/Comparator.h"
72 using namespace ::br::pucrio::telemidia::ncl::util;
75 #include "ncl/components/Node.h"
76 using namespace ::br::pucrio::telemidia::ncl::components;
78 #include "util/Observer.h"
82 #include "PresentationContext.h"
94 namespace adaptation {
99 map<string, vector<Rule*>*>* ruleListenMap;
100 map<Rule*, vector<ExecutionObjectSwitch*>*>* entityListenMap;
101 map<Rule*, vector<DescriptorSwitch*>*>* descListenMap;
111 void adapt(CompositeExecutionObject* compositeObject,
bool force);
112 void initializeAttributeRuleRelation(
116 void initializeRuleObjectRelation(
117 ExecutionObjectSwitch*
object);
120 ExecutionObjectSwitch* objectAlternatives,
123 bool adaptDescriptor(ExecutionObject* executionObject);
124 Node* adaptSwitch(SwitchNode* switchNode);
125 bool evaluateRule(Rule* rule);
128 bool evaluateCompositeRule(CompositeRule* rule);
129 bool evaluateSimpleRule(SimpleRule* rule);
132 virtual void update(
void* arg0,
void* arg1);
142 #endif //_RULEADAPTER_H_
Definition: RuleAdapter.h:96
Definition: PresentationContext.h:91
Definition: Observer.h:53