next up previous
Next: 4 Action semantics at Up: 3 Action semantics at Previous: 3.8.2 Timing

3.9 Action description

This section gives the look and feel of the action description.


Table 3: Action description
\begin{center}
\begin{minipage}{10cm}
{\tt\sl\textbf{Associations}}\\
\hspace*{...
...nglish
descriptions for better understandability.}\\
\end{minipage}\end{center}


An action description describes the semantics of an action. It reuses the OCL language, but is not limited to specifying constraints. Its basic components are shown in Table 3, some of which are optional, while the others must be provided, even if their body is just none.


Table 4: Action description for CreateObjectAction
\begin{center}
\begin{minipage}{12cm}
{\tt\sl\textbf{Associations}}\\
\begin{sm...
...ntity.attributeValue $\to$\ size() =
0}\\
\end{small}\end{minipage}\end{center}


An example of action description is given in Table 4[AILKC+00]. It describes the CreateObjectAction, which is statically associated with a class and creates an object at run-time. No input is required. The only output is the new object on the output pin. No assertion section is needed. The well-formedness rules assure the well-formedness of the execution.



Thomas Feng 2003-04-18