public interface Transition extends Namespace, RedefinableElement
The following features are supported:
UMLPackage.getTransition()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
StateMachine |
containingStateMachine()
The query containingStateMachine() returns the state machine that contains the transition either directly or transitively.
|
Behavior |
createEffect(String name,
EClass eClass)
Creates a new
Behavior , with the specified 'Name', and sets the 'Effect'
containment reference |
Constraint |
createGuard(String name)
Creates a new
Constraint ,with the specified 'Name', and sets the 'Guard'
reference |
Constraint |
createGuard(String name,
EClass eClass)
Creates a new
Constraint , with the specified 'Name', and sets the 'Guard
' reference |
Trigger |
createTrigger(String name)
Creates a new
Trigger , with the specified 'Name', and appends it to the '
Trigger' containment reference list |
Region |
getContainer()
Returns the value of the 'Container' container reference.
|
Behavior |
getEffect()
Returns the value of the 'Effect' containment reference
|
Constraint |
getGuard()
Returns the value of the 'Guard' reference
|
TransitionKind |
getKind()
Returns the value of the 'Kind' attribute.
|
Transition |
getRedefinedTransition()
Returns the value of the 'Redefined Transition' reference
|
Vertex |
getSource()
Returns the value of the 'Source' reference.
|
Vertex |
getTarget()
Returns the value of the 'Target' reference.
|
Trigger |
getTrigger(String name)
Retrieves the first
Trigger with the specified 'Name' from the 'Trigger'
containment reference list |
Trigger |
getTrigger(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
Trigger with the specified 'Name' from the 'Trigger'
containment reference list |
MDWEList<Trigger> |
getTriggers()
Returns the value of the 'Trigger' containment reference list.
|
Classifier |
redefinitionContext()
The redefinition context of a transition is the nearest containing statemachine.
|
void |
setContainer(Region value)
Sets the value of the '
Container ' container reference |
void |
setEffect(Behavior value)
Sets the value of the '
Effect ' containment reference |
void |
setGuard(Constraint value)
Sets the value of the '
Guard ' reference |
void |
setKind(TransitionKind value)
Sets the value of the '
Kind ' attribute |
void |
setRedefinedTransition(Transition value)
Sets the value of the '
Redefined Transition ' reference |
void |
setSource(Vertex value)
Sets the value of the '
Source ' reference |
void |
setTarget(Vertex value)
Sets the value of the '
Target ' reference |
boolean |
validateForkSegmentGuards(DiagnosticChain diagnostics,
Map context)
A fork segment must not have guards or triggers.
|
boolean |
validateForkSegmentState(DiagnosticChain diagnostics,
Map context)
A fork segment must always target a state.
|
boolean |
validateInitialTransition(DiagnosticChain diagnostics,
Map context)
An initial transition at the topmost level (region of a statemachine) either has no trigger or it has a trigger with the stereotype <
|
boolean |
validateJoinSegmentGuards(DiagnosticChain diagnostics,
Map context)
A join segment must not have guards or triggers.
|
boolean |
validateJoinSegmentState(DiagnosticChain diagnostics,
Map context)
A join segment must always originate from a state.
|
boolean |
validateOutgoingPseudostates(DiagnosticChain diagnostics,
Map context)
Transitions outgoing pseudostates may not have a trigger.
|
boolean |
validateSignaturesCompatible(DiagnosticChain diagnostics,
Map context)
In case of more than one trigger, the signatures of these must be compatible in case the parameters of the signal are assigned to local
variables/attributes.
|
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
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
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
TransitionKind getKind()
"external"
.
The literals are from the enumeration TransitionKind
.
Indicates the precise type of the transition.
TransitionKind
,
setKind(TransitionKind)
,
UMLPackage.getTransition_Kind()
void setKind(TransitionKind value)
Kind
' attribute.
value
- the new value of the 'Kind' attribute.TransitionKind
,
getKind()
Region getContainer()
Transition
'.
Designates the region that owns this transition.
setContainer(Region)
,
UMLPackage.getTransition_Container()
,
Region.getTransitions()
void setContainer(Region value)
Container
' container reference.
value
- the new value of the 'Container' container reference.getContainer()
Vertex getTarget()
Incoming
'.
Designates the target vertex that is reached when the transition is taken.
setTarget(Vertex)
,
UMLPackage.getTransition_Target()
,
Vertex.getIncomings()
void setTarget(Vertex value)
Target
' reference.
value
- the new value of the 'Target' reference.getTarget()
Transition getRedefinedTransition()
setRedefinedTransition(Transition)
,
UMLPackage.getTransition_RedefinedTransition()
void setRedefinedTransition(Transition value)
Redefined Transition
' reference.
value
- the new value of the 'Redefined Transition' reference.getRedefinedTransition()
Constraint getGuard()
setGuard(Constraint)
,
UMLPackage.getTransition_Guard()
void setGuard(Constraint value)
Guard
' reference.
value
- the new value of the 'Guard' reference.getGuard()
Constraint createGuard(String name, EClass eClass)
Constraint
, with the specified 'Name', and sets the 'Guard
' reference.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.Constraint
.getGuard()
Constraint createGuard(String name)
Constraint
,with the specified 'Name', and sets the 'Guard'
reference.
name
- The 'Name' for the new Constraint
, or null
.Constraint
.getGuard()
Behavior getEffect()
setEffect(Behavior)
,
UMLPackage.getTransition_Effect()
void setEffect(Behavior value)
Effect
' containment reference.
value
- the new value of the 'Effect' containment reference.getEffect()
Behavior createEffect(String name, EClass eClass)
Behavior
, with the specified 'Name', and sets the 'Effect'
containment reference.
name
- The 'Name' for the new Behavior
, or null
.eClass
- The Ecore class of the Behavior
to create.Behavior
.getEffect()
MDWEList<Trigger> getTriggers()
Trigger
.
Specifies the triggers that may fire the transition.
UMLPackage.getTransition_Trigger()
Trigger createTrigger(String name)
Trigger
, with the specified 'Name', and appends it to the '
Trigger' containment reference list.
name
- The 'Name' for the new Trigger
, or null
.Trigger
.getTriggers()
Trigger getTrigger(String name)
Trigger
with the specified 'Name' from the 'Trigger'
containment reference list.
name
- The 'Name' of the Trigger
to retrieve, or null
.Trigger
with the specified 'Name', or null
.getTriggers()
Trigger getTrigger(String name, boolean ignoreCase, boolean createOnDemand)
Trigger
with the specified 'Name' from the 'Trigger'
containment reference list.
name
- The 'Name' of the Trigger
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Trigger
on demand if not found.Trigger
with the specified 'Name', or null
.getTriggers()
Vertex getSource()
Outgoing
'.
Designates the originating vertex (state or pseudostate) of the transition.
setSource(Vertex)
,
UMLPackage.getTransition_Source()
,
Vertex.getOutgoings()
void setSource(Vertex value)
Source
' reference.
value
- the new value of the 'Source' reference.getSource()
boolean validateForkSegmentGuards(DiagnosticChain diagnostics, Map context)
boolean validateJoinSegmentGuards(DiagnosticChain diagnostics, Map context)
boolean validateForkSegmentState(DiagnosticChain diagnostics, Map context)
boolean validateJoinSegmentState(DiagnosticChain diagnostics, Map context)
boolean validateOutgoingPseudostates(DiagnosticChain diagnostics, Map context)
boolean validateInitialTransition(DiagnosticChain diagnostics, Map context)
boolean validateSignaturesCompatible(DiagnosticChain diagnostics, Map context)
Classifier redefinitionContext()
StateMachine containingStateMachine()