Class ActionChecksumSwitch
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
org.palladiosimulator.analyzer.quality.util.ActionChecksumSwitch
Builds the checksum for the content of an action. Structure and
performance-relevant behavior differences lead to a different checksum,
entity name and identifier changes don't.
-
Field Summary
Fields inherited from class org.palladiosimulator.pcm.seff.util.SeffSwitch
copyright, modelPackage -
Constructor Summary
ConstructorsConstructorDescriptionActionChecksumSwitch(Checksum checksum) Initializes the checksum calculator switch. -
Method Summary
Modifier and TypeMethodDescriptioncaseAcquireAction(org.palladiosimulator.pcm.seff.AcquireAction object) caseBranchAction(org.palladiosimulator.pcm.seff.BranchAction object) caseCollectionIteratorAction(org.palladiosimulator.pcm.seff.CollectionIteratorAction object) caseExternalCallAction(org.palladiosimulator.pcm.seff.ExternalCallAction object) caseForkAction(org.palladiosimulator.pcm.seff.ForkAction object) caseInternalAction(org.palladiosimulator.pcm.seff.InternalAction object) caseInternalCallAction(org.palladiosimulator.pcm.seff.InternalCallAction object) caseLoopAction(org.palladiosimulator.pcm.seff.LoopAction object) caseReleaseAction(org.palladiosimulator.pcm.seff.ReleaseAction object) caseResourceDemandingBehaviour(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour object) caseSetVariableAction(org.palladiosimulator.pcm.seff.SetVariableAction object) caseStartAction(org.palladiosimulator.pcm.seff.StartAction object) caseStopAction(org.palladiosimulator.pcm.seff.StopAction object) protected StringtoUnformattedSpecification(org.palladiosimulator.pcm.core.PCMRandomVariable specification) Returns a textual representation stripped of whitespace and formatting characters.protected voidupdateChecksumWithAICFACalls(org.palladiosimulator.pcm.seff.AbstractInternalControlFlowAction action) Updates the checksum with the information on internal resource demand forAbstractInternalControlFlowActions.protected voidupdateChecksumWithOrder(org.palladiosimulator.pcm.seff.AbstractAction action) Updates the checksum with the information that the provided action is next in the order.protected voidupdateChecksumWithVariableUsage(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage) Updates the checksum with the specifications for the provided variable usage.Methods inherited from class org.palladiosimulator.pcm.seff.util.SeffSwitch
caseAbstractAction, caseAbstractBranchTransition, caseAbstractInternalControlFlowAction, caseAbstractLoopAction, caseCallAction, caseCallReturnAction, caseEmitEventAction, caseEntity, caseFailureHandlingEntity, caseForkedBehaviour, caseGuardedBranchTransition, caseIdentifier, caseNamedElement, casePCMBaseClass, casePCMClass, caseProbabilisticBranchTransition, caseResourceDemandingInternalBehaviour, caseResourceDemandingSEFF, caseServiceEffectSpecification, caseSynchronisationPoint, defaultCase, doSwitch, isSwitchFor
-
Constructor Details
-
ActionChecksumSwitch
Initializes the checksum calculator switch.- Parameters:
checksum- Instance of the checksum generator.
-
-
Method Details
-
updateChecksumWithOrder
protected void updateChecksumWithOrder(org.palladiosimulator.pcm.seff.AbstractAction action) Updates the checksum with the information that the provided action is next in the order.- Parameters:
action-
-
updateChecksumWithVariableUsage
protected void updateChecksumWithVariableUsage(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage) Updates the checksum with the specifications for the provided variable usage.- Parameters:
variableUsage- The usage.
-
updateChecksumWithAICFACalls
protected void updateChecksumWithAICFACalls(org.palladiosimulator.pcm.seff.AbstractInternalControlFlowAction action) Updates the checksum with the information on internal resource demand forAbstractInternalControlFlowActions.- Parameters:
action- The action.
-
toUnformattedSpecification
protected String toUnformattedSpecification(org.palladiosimulator.pcm.core.PCMRandomVariable specification) Returns a textual representation stripped of whitespace and formatting characters.- Parameters:
specification- The specification.- Returns:
- Stripped text.
-
caseResourceDemandingBehaviour
public Boolean caseResourceDemandingBehaviour(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour object) - Overrides:
caseResourceDemandingBehaviourin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseStartAction
- Overrides:
caseStartActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseStopAction
- Overrides:
caseStopActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseInternalAction
- Overrides:
caseInternalActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseInternalCallAction
- Overrides:
caseInternalCallActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseExternalCallAction
- Overrides:
caseExternalCallActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseSetVariableAction
- Overrides:
caseSetVariableActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseAcquireAction
- Overrides:
caseAcquireActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseReleaseAction
- Overrides:
caseReleaseActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseLoopAction
- Overrides:
caseLoopActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseCollectionIteratorAction
public Boolean caseCollectionIteratorAction(org.palladiosimulator.pcm.seff.CollectionIteratorAction object) - Overrides:
caseCollectionIteratorActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseBranchAction
- Overrides:
caseBranchActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseForkAction
- Overrides:
caseForkActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-