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

public class ActionChecksumSwitch extends org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
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

    Constructors
    Constructor
    Description
    Initializes the checksum calculator switch.
  • Method Summary

    Modifier and Type
    Method
    Description
    caseAcquireAction(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 String
    toUnformattedSpecification(org.palladiosimulator.pcm.core.PCMRandomVariable specification)
    Returns a textual representation stripped of whitespace and formatting characters.
    protected void
    updateChecksumWithAICFACalls(org.palladiosimulator.pcm.seff.AbstractInternalControlFlowAction action)
    Updates the checksum with the information on internal resource demand for AbstractInternalControlFlowActions.
    protected void
    updateChecksumWithOrder(org.palladiosimulator.pcm.seff.AbstractAction action)
    Updates the checksum with the information that the provided action is next in the order.
    protected void
    updateChecksumWithVariableUsage(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

    Methods inherited from class org.eclipse.emf.ecore.util.Switch

    doSwitch, doSwitch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ActionChecksumSwitch

      public ActionChecksumSwitch(Checksum checksum)
      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 for AbstractInternalControlFlowActions.
      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:
      caseResourceDemandingBehaviour in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseStartAction

      public Boolean caseStartAction(org.palladiosimulator.pcm.seff.StartAction object)
      Overrides:
      caseStartAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseStopAction

      public Boolean caseStopAction(org.palladiosimulator.pcm.seff.StopAction object)
      Overrides:
      caseStopAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseInternalAction

      public Boolean caseInternalAction(org.palladiosimulator.pcm.seff.InternalAction object)
      Overrides:
      caseInternalAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseInternalCallAction

      public Boolean caseInternalCallAction(org.palladiosimulator.pcm.seff.InternalCallAction object)
      Overrides:
      caseInternalCallAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseExternalCallAction

      public Boolean caseExternalCallAction(org.palladiosimulator.pcm.seff.ExternalCallAction object)
      Overrides:
      caseExternalCallAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseSetVariableAction

      public Boolean caseSetVariableAction(org.palladiosimulator.pcm.seff.SetVariableAction object)
      Overrides:
      caseSetVariableAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseAcquireAction

      public Boolean caseAcquireAction(org.palladiosimulator.pcm.seff.AcquireAction object)
      Overrides:
      caseAcquireAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseReleaseAction

      public Boolean caseReleaseAction(org.palladiosimulator.pcm.seff.ReleaseAction object)
      Overrides:
      caseReleaseAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseLoopAction

      public Boolean caseLoopAction(org.palladiosimulator.pcm.seff.LoopAction object)
      Overrides:
      caseLoopAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseCollectionIteratorAction

      public Boolean caseCollectionIteratorAction(org.palladiosimulator.pcm.seff.CollectionIteratorAction object)
      Overrides:
      caseCollectionIteratorAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseBranchAction

      public Boolean caseBranchAction(org.palladiosimulator.pcm.seff.BranchAction object)
      Overrides:
      caseBranchAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
    • caseForkAction

      public Boolean caseForkAction(org.palladiosimulator.pcm.seff.ForkAction object)
      Overrides:
      caseForkAction in class org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>