UML.Semantic.BehavioralElements.StateMachines
Class Transition
java.lang.Object
|
+--UML.Semantic.Foundation.Core.ModelElement
|
+--UML.Semantic.BehavioralElements.StateMachines.Transition
- All Implemented Interfaces:
- Element, ElementAtt, LinkAtt
- public class Transition
- extends ModelElement
A Transition is a relationship between a source state
vertex and a target state vertex. It may be part of a compound
transition, which takes the state machine from one state
configuration to another, representing the complete response of
the state machine to a particular event instance for a given
source state configuration.
In the metamodel Transition is a subclass of
ModelElement that participates in various
relationships with other state machine metaclasses.
| Methods inherited from class UML.Semantic.Foundation.Core.ModelElement |
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getInfo, getIsOwned, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transition
public Transition()
setSource
public void setSource(java.lang.String source)
getSource
public StateVertex getSource()
setTarget
public void setTarget(java.lang.String target)
getTarget
public StateVertex getTarget()
setTrigger
public void setTrigger(java.lang.String trigger)
getTrigger
public Event getTrigger()
setEffect
public void setEffect(java.lang.String effect)
getEffect
public ActionSequence getEffect()
setGuard
public void setGuard(java.lang.String guard)
getGuard
public Guard getGuard()
getLabel
public java.lang.String getLabel()
- Description copied from class:
ModelElement
- Gets the element label.
- Specified by:
getLabel in interface ElementAtt- Overrides:
getLabel in class ModelElement
- Returns:
- The label string.
check
public boolean check()
- Checks if well-formedness rules are respected in this model
element.
- Overrides:
check in class ModelElement
- Returns:
- True if check was successful, false otherwise.