A guard is associated with a transition. At the time an
event is dispatched, the guard is evaluated, and if false, its
transition is disabled. In the UML metamodel,
Guard is a child of
ModelElement.
A guard is shown on the diagram by the text of its
expression in square brackets ([]).
The details tabs that are active for guards are as follows.
ToDoItemStandard tab.
PropertiesSee Section 20.10.2, “ Guard Property Toolbar ” and Section 20.10.3, “ Property Fields For Guard ” below.
DocumentationStandard tab.
StereotypeStandard tab, containing the stereotypes for the
guard. In the UML metamodel,
Guard has no standard stereotypes
defined.
Tagged ValuesStandard tab. In the UML metamodel,
Guard has no standard tagged
values defined.
Go upNavigate up through the package structure.
New StereotypeThis creates a new Stereotype (see Section 16.6, “ Stereotype ”) for the selected guard, navigating immediately to the properties tab for that stereotype.
Delete from ModelThis deletes the guard from the model
![]() | Warning |
|---|---|
This is a deletion from the model, not just the diagram. |
NameText box. The name of the guard. By convention guard names start with a lower case letter and use bumpy caps to divide words within the name.
![]() | Note |
|---|---|
ArgoUML does not enforce this naming convention. |
TransitionText box, showing the transition that owns this guard.
Button 1 double-click on the transition navigates to that transition.
ExpressionText box. The expression that defines the guard.
LanguageText box. This indicates that the expression is written in a particular interpretation language with which to evaluate the text.