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 calling
SeffVisitor
for each EntryLevelSystemCall
.-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.log4j.Logger
protected ContextWrapper
protected PCMInstance
Fields inherited from class org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
copyright, modelPackage
-
Constructor Summary
ConstructorDescriptionUsageModelVisitor
(PCMInstance inst) Solves dependencies for thisPCMInstance
and adds the results to thePCMInstance
's computed contexts (such asPCMInstance.getComputedUsage()
). -
Method Summary
Modifier and TypeMethodDescriptioncaseBranch
(org.palladiosimulator.pcm.usagemodel.Branch object) caseDelay
(org.palladiosimulator.pcm.usagemodel.Delay object) caseEntryLevelSystemCall
(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall elsc) caseLoop
(org.palladiosimulator.pcm.usagemodel.Loop object) caseScenarioBehaviour
(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour object) caseStart
(org.palladiosimulator.pcm.usagemodel.Start 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, casePCMBaseClass, casePCMClass, caseUsageModel, caseUsageScenario, caseUserData, caseWorkload, defaultCase, doSwitch, isSwitchFor
-
Field Details
-
logger
protected static org.apache.log4j.Logger logger -
pcmInstance
-
myContextWrapper
-
-
Constructor Details
-
UsageModelVisitor
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 Details
-
caseScenarioBehaviour
- Overrides:
caseScenarioBehaviour
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseStart
- Overrides:
caseStart
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseStop
- Overrides:
caseStop
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseBranch
- 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
- Overrides:
caseDelay
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-
caseLoop
- Overrides:
caseLoop
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
-