|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Protocol Transition'. A protocol transition specifies a legal transition for an operation. Transitions of protocol state machines have the following information: a pre condition (guard), on trigger, and a post condition. Every protocol transition is associated to zero or one operation (referred BehavioralFeature) that belongs to the context classifier of the protocol state machine.
The following features are supported:
UMLPackage.getProtocolTransition()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
Constraint |
createPostCondition(String name)
Creates a new Constraint ,with the specified 'Name', and sets the 'Post Condition' reference |
Constraint |
createPostCondition(String name,
EClass eClass)
Creates a new Constraint , with the specified 'Name', and sets the 'Post Condition' reference |
Constraint |
getPostCondition()
Returns the value of the 'Post Condition' reference |
Constraint |
getPreCondition()
Returns the value of the 'Pre Condition' reference |
Operation |
getReferred(String name,
EList ownedParameterNames,
EList ownedParameterTypes)
Retrieves the first Operation with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Referred' reference list |
Operation |
getReferred(String name,
EList ownedParameterNames,
EList ownedParameterTypes,
boolean ignoreCase)
Retrieves the first Operation with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Referred' reference list |
EList |
getReferreds()
Returns the value of the 'Referred' reference list. |
void |
setPostCondition(Constraint value)
Sets the value of the ' Post Condition ' reference |
void |
setPreCondition(Constraint value)
Sets the value of the ' Pre Condition ' reference |
boolean |
validateAssociatedActions(DiagnosticChain diagnostics,
Map context)
A protocol transition never has associated actions. |
boolean |
validateBelongsToPsm(DiagnosticChain diagnostics,
Map context)
A protocol transition always belongs to a protocol state machine. |
boolean |
validateRefersToOperation(DiagnosticChain diagnostics,
Map context)
If a protocol transition refers to an operation (i. e. has a call trigger corresponding to an operation), then that operation should apply to the context classifier of the state machine of the protocol transition. |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Method Detail |
public Constraint getPostCondition()
ProtocolTransition.setPostCondition(Constraint)
,
UMLPackage.getProtocolTransition_PostCondition()
public void setPostCondition(Constraint value)
Post Condition
' reference.
value
- the new value of the 'Post Condition' reference.ProtocolTransition.getPostCondition()
public Constraint createPostCondition(String name, EClass eClass)
Constraint
, with the specified 'Name', and sets the 'Post Condition' reference.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.
Constraint
.ProtocolTransition.getPostCondition()
public Constraint createPostCondition(String name)
Constraint
,with the specified 'Name', and sets the 'Post Condition' reference.
name
- The 'Name' for the new Constraint
, or null
.
Constraint
.ProtocolTransition.getPostCondition()
public EList getReferreds()
Operation
.
This association refers to the associated operation. It is derived from the operation of the call trigger when applicable.
UMLPackage.getProtocolTransition_Referred()
public Operation getReferred(String name, EList ownedParameterNames, EList ownedParameterTypes)
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Referred' reference list.
name
- The 'Name' of the Operation
to retrieve, or null
.ownedParameterNames
- The 'Owned Parameter Names' of the Operation
to retrieve, or null
.ownedParameterTypes
- The 'Owned Parameter Types' of the Operation
to retrieve, or null
.
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', or null
.ProtocolTransition.getReferreds()
public Operation getReferred(String name, EList ownedParameterNames, EList ownedParameterTypes, boolean ignoreCase)
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Referred' reference list.
name
- The 'Name' of the Operation
to retrieve, or null
.ownedParameterNames
- The 'Owned Parameter Names' of the Operation
to retrieve, or null
.ownedParameterTypes
- The 'Owned Parameter Types' of the Operation
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', or null
.ProtocolTransition.getReferreds()
public Constraint getPreCondition()
ProtocolTransition.setPreCondition(Constraint)
,
UMLPackage.getProtocolTransition_PreCondition()
public void setPreCondition(Constraint value)
Pre Condition
' reference.
value
- the new value of the 'Pre Condition' reference.ProtocolTransition.getPreCondition()
public boolean validateBelongsToPsm(DiagnosticChain diagnostics, Map context)
public boolean validateAssociatedActions(DiagnosticChain diagnostics, Map context)
public boolean validateRefersToOperation(DiagnosticChain diagnostics, Map context)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |