Class UML 2.5::Variable
Description:
A Variable is a ConnectableElement that may store values during the execution
of an Activity. Reading and writing the values of a Variable provides an
alternative means for passing data than the use of ObjectFlows. A Variable
may be owned directly by an Activity, in which case it is accessible from
anywhere within that activity, or it may be owned by a StructuredActivityNode,
in which case it is only accessible within that node.
Direct Superclasses: ConnectableElement,
MultiplicityElementDirect Subclasses: Class Precedence List: Variable,
ConnectableElement,
TypedElement,
NamedElement,
ParameterableElement,
MultiplicityElement,
ElementProperties:
![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
activityScope :
Activity (0 1); -- source
Variable![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
scope :
StructuredActivityNode (0 1); -- source
Variable![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
end :
ConnectorEnd (0 *); -- source
ConnectableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
templateParameter :
ConnectableElementTemplateParameter (0 1); -- source
ConnectableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
type :
Type (0 1); -- source
TypedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
name : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
nameExpression :
StringExpression (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
qualifiedName : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
visibility :
VisibilityKind (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
isOrdered : Boolean (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
isUnique : Boolean (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
lower : Integer (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
lowerValue :
ValueSpecification (0 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
upper : UnlimitedNatural (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
upperValue :
ValueSpecification (0 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=139624%3AA92AB972D08AFF58A347B38DF57F289C)
owner :
Element (0 1); -- source
ElementConstraints:
No additional constraints.
Operations:
Signature: isAccessibleBy(a : Action; ) : Boolean;
Description: A Variable is accessible by Actions within its scope (the Activity or StructuredActivityNode
that owns it).
Expression: result = (if scope<>null then scope.allOwnedNodes()->includes(a) else a.containingActivity()=activityScope endif)
Send questions or comments to
[email protected].