Previous UML Classes Table of Contents UML Packages Next


7.3.41 Parameter

Kernel , AssociationClasses


   A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature.

*Generalizations

   

    MultiplicityElement (from Kernel ) on page 96.

   

    TypedElement (from Kernel ) on page 138.

*Description

   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.

*Attributes

*Associations

   • /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

*Constraints

   No additional constraints

*Semantics

   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.

*Notation

   No general notation. Specific subclasses of BehavioralFeature will define the notation for their parameters.

*Style Guidelines

   A parameter name typically starts with a lowercase letter.