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=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
activityScope :
Activity (0 1); -- source
Variable![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
scope :
StructuredActivityNode (0 1); -- source
Variable![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
end :
ConnectorEnd (0 *); -- source
ConnectableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
templateParameter :
ConnectableElementTemplateParameter (0 1); -- source
ConnectableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
type :
Type (0 1); -- source
TypedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
name : String (0 1); -- source
NamedElement![](/se-interop/image/right-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
nameExpression :
StringExpression (0 1); -- source
NamedElementThe StringExpression used to define the name of this NamedElement.
{
composite}
Subsets: Element.ownedElement
![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/right-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
qualifiedName : String (0 1); -- source
NamedElementA name that allows the NamedElement to be identified within a hierarchy
of nested Namespaces. It is constructed from the names of the containing
Namespaces starting at the root of the hierarchy and ending with the name
of the NamedElement itself.
{
readonly,
derived}
![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
visibility :
VisibilityKind (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
isOrdered : Boolean (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
isUnique : Boolean (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
lower : Integer (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
lowerValue :
ValueSpecification (0 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
upper : UnlimitedNatural (1 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
upperValue :
ValueSpecification (0 1); -- source
MultiplicityElement![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=40267%3AFA3606A4AD1AF1F1597D4830F2FF9B9B)
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].