Interface ScenarioBehaviour
- All Superinterfaces:
org.eclipse.emf.cdo.CDOObject
,org.eclipse.emf.cdo.common.id.CDOWithID
,Entity
,EObject
,de.uka.ipd.sdq.identifier.Identifier
,NamedElement
,Notifier
,PCMBaseClass
,PCMClass
- All Known Implementing Classes:
ScenarioBehaviourImpl
,ScenarioBehaviourImplGen
A representation of the model object 'Scenario Behaviour'.
A ScenarioBehaviour specifies possible sequences of executing services provided by the system.
It contains a set of AbstractUserActions, each referencing a predecessor and successor (except the
first and last action), thereby forming a sequence of actions.
See the AbstractAction documentation for why it is advantageous
to model control flow in this way, as the same principle is used in the RDSEFF language.
Concrete user actions of the usage model are:
- Branch
- Loop
- EntryLevelSystemCall
- Delay
- Start
- Stop
So far, ScenarioBehaviours do not include forks in the user flow (i.e., splitting the flow with an
AND semantic), as it is assumed that users always act sequentially.
As there are no random variables depending on other variables in the
usage model, there are no equivalent actions to GuardedBranchTransitions or CollectionIteratorActions.
The following features are supported:
- See Also:
- Generated class or method.
- EMF model class or method.
- annotation="http://www.eclipse.org/emf/2002/Ecore constraints='eachuseractionexceptStartandStopmusthaveapredecessorandsuccessor exactlyonestart exactlyonestop'" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/LPG eachuseractionexceptStartandStopmusthaveapredecessorandsuccessor='not self.actions_ScenarioBehaviour->select(s|not s.oclIsTypeOf(Start) and not s.oclIsTypeOf(Stop))->exists(a|a.oclAsType(AbstractUserAction).predecessor.oclIsUndefined()) and not self.actions_ScenarioBehaviour->select(s|not s.oclIsTypeOf(Start) and not s.oclIsTypeOf(Stop))->exists(a|a.oclAsType(AbstractUserAction).successor.oclIsUndefined())' exactlyonestart='self.actions_ScenarioBehaviour->select(s|s.oclIsTypeOf(Start))->size() = 1' exactlyonestop='self.actions_ScenarioBehaviour->select(s|s.oclIsTypeOf(Stop))->size() = 1'"
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Actions Scenario Behaviour' containment reference list.Returns the value of the 'Branch Transition Scenario Behaviour' container reference.Returns the value of the 'Loop Scenario Behaviour' container reference.Returns the value of the 'Usage Scenario Senario Behaviour' container reference.boolean
routeFromStartToStopAction
(DiagnosticChain diagnostics, Map<Object, Object> context) void
Sets the value of the 'Branch Transition Scenario Behaviour
' container reference.void
setLoop_ScenarioBehaviour
(Loop value) Sets the value of the 'Loop Scenario Behaviour
' container reference.void
Sets the value of the 'Usage Scenario Senario Behaviour
' container reference.Methods inherited from interface org.eclipse.emf.cdo.CDOObject
cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOption
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface de.uka.ipd.sdq.identifier.Identifier
getId, setId
Methods inherited from interface org.palladiosimulator.pcm.core.entity.NamedElement
getEntityName, setEntityName
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Field Details
-
copyright
- See Also:
- Generated class or method.
-
-
Method Details
-
getUsageScenario_SenarioBehaviour
UsageScenario getUsageScenario_SenarioBehaviour()Returns the value of the 'Usage Scenario Senario Behaviour' container reference. It is bidirectional and its opposite is 'Scenario Behaviour Usage Scenario
'.- Returns:
- the value of the 'Usage Scenario Senario Behaviour' container reference.
- See Also:
- Generated class or method.
- EMF model class or method.
- opposite="scenarioBehaviour_UsageScenario" transient="false" ordered="false"
-
setUsageScenario_SenarioBehaviour
Sets the value of the 'Usage Scenario Senario Behaviour
' container reference.- Parameters:
value
- the new value of the 'Usage Scenario Senario Behaviour' container reference.- See Also:
- Generated class or method.
-
getBranchTransition_ScenarioBehaviour
BranchTransition getBranchTransition_ScenarioBehaviour()Returns the value of the 'Branch Transition Scenario Behaviour' container reference. It is bidirectional and its opposite is 'Branched Behaviour Branch Transition
'.- Returns:
- the value of the 'Branch Transition Scenario Behaviour' container reference.
- See Also:
- Generated class or method.
- EMF model class or method.
- opposite="branchedBehaviour_BranchTransition" transient="false" ordered="false"
-
setBranchTransition_ScenarioBehaviour
Sets the value of the 'Branch Transition Scenario Behaviour
' container reference.- Parameters:
value
- the new value of the 'Branch Transition Scenario Behaviour' container reference.- See Also:
- Generated class or method.
-
getLoop_ScenarioBehaviour
Loop getLoop_ScenarioBehaviour()Returns the value of the 'Loop Scenario Behaviour' container reference. It is bidirectional and its opposite is 'Body Behaviour Loop
'.- Returns:
- the value of the 'Loop Scenario Behaviour' container reference.
- See Also:
- Generated class or method.
- EMF model class or method.
- opposite="bodyBehaviour_Loop" transient="false" ordered="false"
-
setLoop_ScenarioBehaviour
Sets the value of the 'Loop Scenario Behaviour
' container reference.- Parameters:
value
- the new value of the 'Loop Scenario Behaviour' container reference.- See Also:
- Generated class or method.
-
getActions_ScenarioBehaviour
EList<AbstractUserAction> getActions_ScenarioBehaviour()Returns the value of the 'Actions Scenario Behaviour' containment reference list. The list contents are of typeAbstractUserAction
. It is bidirectional and its opposite is 'Scenario Behaviour Abstract User Action
'.- Returns:
- the value of the 'Actions Scenario Behaviour' containment reference list.
- See Also:
- Generated class or method.
- EMF model class or method.
- opposite="scenarioBehaviour_AbstractUserAction" containment="true" ordered="false"
-
routeFromStartToStopAction
- Generated class or method.
- EMF model class or method.
- diagnosticsRequired="true" contextRequired="true" annotation="http://www.eclipse.org/emf/2002/Ecore invariant='true'"
-