July 2004
Intermediate to advanced
752 pages
35h 59m
English
An action that returns the current time.
The action returns the current time.
The following syntax may be used in a sequence diagram:
name = now
Figure 14-281 shows an example.
Unlike the duration observation action, the time observation action makes sense as an action that might be implemented and used in programs. In the UML specification, however, it is formulated in a manner inconsistent with other actions, in that it includes both an time observation and an assignment action. It is probably best for implementors to regard this as a mistake and have it merely output a value that can be assigned using the normal write actions.
In a simple system, all clocks can be regarded as identical. ...
Read now
Unlock full access