Class AggregatedContextUsageModelVisitor
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
- org.palladiosimulator.solver.visitors.UsageModelVisitor
-
- org.palladiosimulator.solver.visitors.AggregatedContextUsageModelVisitor
-
public class AggregatedContextUsageModelVisitor extends UsageModelVisitor
Visitor that builds up the context model including the aggregated usage context. Extends the UsageModelVisitor and adds the calculation of execution frequencies. Uses theAggregatedContextSEFFVisitor
instead of theSeffVisitor
.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.solver.visitors.UsageModelVisitor
logger, myContextWrapper, pcmInstance
-
-
Constructor Summary
Constructors Constructor Description AggregatedContextUsageModelVisitor(PCMInstance inst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
caseEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall elsc)
OverwritesUsageModelVisitor.caseEntryLevelSystemCall(EntryLevelSystemCall)
: Created anAggregatedContextSEFFVisitor
for visiting the next SEFF.Object
caseScenarioBehaviour(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour object)
Object
caseUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel object)
-
Methods inherited from class org.palladiosimulator.solver.visitors.UsageModelVisitor
caseBranch, caseDelay, caseLoop, caseStart, caseStop
-
-
-
-
Constructor Detail
-
AggregatedContextUsageModelVisitor
public AggregatedContextUsageModelVisitor(PCMInstance inst)
-
-
Method Detail
-
caseUsageModel
public Object caseUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel object)
- Overrides:
caseUsageModel
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseScenarioBehaviour
public Object caseScenarioBehaviour(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour object)
ExtendsUsageModelVisitor.caseScenarioBehaviour(ScenarioBehaviour)
. Gets the frequency of the container of the object, then stores that frequency while callingUsageModelVisitor.caseScenarioBehaviour(ScenarioBehaviour)
. Finally resets the frequency for handling the next action.- Overrides:
caseScenarioBehaviour
in classUsageModelVisitor
-
caseEntryLevelSystemCall
public Object caseEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall elsc)
OverwritesUsageModelVisitor.caseEntryLevelSystemCall(EntryLevelSystemCall)
: Created anAggregatedContextSEFFVisitor
for visiting the next SEFF.- Overrides:
caseEntryLevelSystemCall
in classUsageModelVisitor
-
-