A parameter is a variable that can be passed. In the UML
metamodel it is a sub-class of
A parameter is represented within the operation declaration in the operation compartment of a class as follows.
name is the name of the parameter.
type is the type (UML datatype, class or interface) of the parameter.
The exception is any parameter representing a return value, whose type only is shown at the end of the operation declaration.
The details tabs that are active for parameters are as follows.
Standard tab. See Section 13.4, “Documentation Tab”.
Standard tab. This contains a declaration for the parameter.
Standard tab. In the UML metamodel,
Parameter has the following standard tagged
derived (from the
true, meaning the
parameter is redundant—it can be formally derived
from other elements, or
meaning it cannot.
A derived parameter is a meaningless concept.
Navigate up through the package structure.
This creates a new parameter for the for the same operation as the current parameter, navigating immediately to the properties tab for that parameter.
This is a convenient way to add a series of parameters for the same operation.
This creates a new Datatype (see Section 16.3, “Datatype”) in the namespace of the owner of the operation of the parameter, navigating immediately to the properties tab for that datatype.
This creates a new Stereotype (see Section 16.6, “Stereotype”) for the selected parameter, navigating immediately to the properties tab for that stereotype.
This deletes the parameter from the model
This is a deletion from the model not just the diagram. If desired the whole operation compartment can be hidden on the diagram using the presentation tab or the button 2 pop up menu for the class on the diagram.
Text box. The name of the parameter. By convention, the name of a parameter has a leading lower case letter, with words separated by “bumpy caps”.
The ArgoUML critics do not complain about parameter names that do not have an initial lower case letter.
Drop down selector. There are no UML standard
icon. If a stereotype has been selected, this will navigate to the stereotype property panel (see Section 16.6, “Stereotype”).
Text box. Records the operation which contains this parameter.
Button 1 double click on the entry will navigate to the operation.
Drop down selector. The type of this parameter.
This can be any UML
although in practice only
Interface make any sense.
A type must be declared (it can be
Text box with drop down. This allows you to set
an initial value for the parameter if desired (this is
optional). The drop down menu provides access to the
This only makes sense for
Radio box, with entries
out. The parameter is used
only to pass values back from the operation.
in/out. The parameter is
used both to pass values in and to pass results
back out of the operation.
This is the default for any new parameter.
return. The parameter is a
return result from the call.
There is nothing to stop you declaring more than one return parameter (some programming languages support this concept).
The name of the return parameter does not
appear on the diagram, but it is convenient to
give it an appropriate name (such as the default
in. The parameter is used
only to pass values in to the operation.