Previous | UML Classes | Table of Contents | UML Packages | Next |
A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature.
•
MultiplicityElement (from Kernel ) on page 96.
•
TypedElement (from Kernel ) on page 138.
A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature.
It has a type, and may have a multiplicity and an optional default value.
• / default: String [0..1] Specifies a String that represents a value to be used when no argument is supplied for the Parameter. This is a derived value.
• direction: ParameterDirectionKind [1] Indicates whether a parameter is being sent into or out of a behavioral element. The default value is in.
• /operation: Operation[0..1] References the Operation owning this parameter. Subsets
NamedElement ::namespace
• defaultValue: ValueSpecification [0..1] Specifies a ValueSpecification that represents a value to be used when no argument
is supplied for the Parameter. Subsets Element::ownedElement
No additional constraints
A parameter specifies how arguments are passed into or out of an invocation of a behavioral feature like an operation. The
type and multiplicity of a parameter restrict what values can be passed, how many, and whether the values are ordered.
If a default is specified for a parameter, then it is evaluated at invocation time and used as the argument for this parameter
if and only if no argument is supplied at invocation of the behavioral feature.
A parameter may be given a name, which then identifies the parameter uniquely within the parameters of the same behavioral
feature. If it is unnamed, it is distinguished only by its position in the ordered list of parameters.
The parameter direction specifies whether its value is passed into, out of, or both into and out of the owning behavioral
feature. A single parameter may be distinguished as a return parameter. If the behavioral feature is an operation, then the
type and multiplicity of this parameter is the same as the type and multiplicity of the operation itself.
No general notation. Specific subclasses of BehavioralFeature will define the notation for their parameters.
A parameter name typically starts with a lowercase letter.