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=88946%3A59E5A86384BFBB587952D7C3809F5B29)
activityScope :
Activity (0 1); -- source
Variable![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
scope :
StructuredActivityNode (0 1); -- source
Variable![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
end :
ConnectorEnd (0 *); -- source
ConnectableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
templateParameter :
ConnectableElementTemplateParameter (0 1); -- source
ConnectableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
type :
Type (0 1); -- source
TypedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
name : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
nameExpression :
StringExpression (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
qualifiedName : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
visibility :
VisibilityKind (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
isOrdered : Boolean (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
isUnique : Boolean (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
lower : Integer (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
lowerValue :
ValueSpecification (0 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
upper : UnlimitedNatural (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
upperValue :
ValueSpecification (0 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=88946%3A59E5A86384BFBB587952D7C3809F5B29)
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].