Class UsageModelVisitor
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
- org.palladiosimulator.solver.visitors.UsageModelVisitor
-
- Direct Known Subclasses:
AggregatedContextUsageModelVisitor
public class UsageModelVisitor extends org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
Visitor that builds the computed usage and computed allocation contexts by callingSeffVisitor
for eachEntryLevelSystemCall
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
logger
protected ContextWrapper
myContextWrapper
protected PCMInstance
pcmInstance
-
Constructor Summary
Constructors Constructor Description UsageModelVisitor(PCMInstance inst)
Solves dependencies for thisPCMInstance
and adds the results to thePCMInstance
's computed contexts (such asPCMInstance.getComputedUsage()
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
caseBranch(org.palladiosimulator.pcm.usagemodel.Branch object)
Object
caseDelay(org.palladiosimulator.pcm.usagemodel.Delay object)
Object
caseEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall elsc)
Object
caseLoop(org.palladiosimulator.pcm.usagemodel.Loop object)
Object
caseScenarioBehaviour(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour object)
Object
caseStart(org.palladiosimulator.pcm.usagemodel.Start object)
Object
caseStop(org.palladiosimulator.pcm.usagemodel.Stop object)
-
Methods inherited from class org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
caseAbstractUserAction, caseBranchTransition, caseClosedWorkload, caseEntity, caseIdentifier, caseNamedElement, caseOpenWorkload, caseUsageModel, caseUsageScenario, caseUserData, caseWorkload, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Field Detail
-
logger
protected static org.apache.log4j.Logger logger
-
pcmInstance
protected PCMInstance pcmInstance
-
myContextWrapper
protected ContextWrapper myContextWrapper
-
-
Constructor Detail
-
UsageModelVisitor
public UsageModelVisitor(PCMInstance inst)
Solves dependencies for thisPCMInstance
and adds the results to thePCMInstance
's computed contexts (such asPCMInstance.getComputedUsage()
).- Parameters:
inst
- an instance of the Palladio Component Metamodel
-
-
Method Detail
-
caseScenarioBehaviour
public Object caseScenarioBehaviour(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour object)
- Overrides:
caseScenarioBehaviour
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseStart
public Object caseStart(org.palladiosimulator.pcm.usagemodel.Start object)
- Overrides:
caseStart
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseStop
public Object caseStop(org.palladiosimulator.pcm.usagemodel.Stop object)
- Overrides:
caseStop
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseBranch
public Object caseBranch(org.palladiosimulator.pcm.usagemodel.Branch object)
- Overrides:
caseBranch
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseEntryLevelSystemCall
public Object caseEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall elsc)
- Overrides:
caseEntryLevelSystemCall
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseDelay
public Object caseDelay(org.palladiosimulator.pcm.usagemodel.Delay object)
- Overrides:
caseDelay
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseLoop
public Object caseLoop(org.palladiosimulator.pcm.usagemodel.Loop object)
- Overrides:
caseLoop
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
-