Book a Demo
Prev Next

Active Classes

An active UML Class element.

Description

An Active Class indicates that, when instantiated, the Class controls its own execution. Rather than being invoked or activated by other objects, it can operate standalone and define its own thread of behavior.

Define an Active Class in Enterprise Architect

Step

Action

1

Highlight a Class, and display its 'Properties' dialog (right-click on the Class and select the 'Properties | Properties option).

2

Select the 'Details' tab on the lower right of the dialog.

3

Select the 'Is Active' checkbox.

4

Click on the OK button to save the changes.

OMG UML Specification

The OMG Unified Modeling Language specification, (v2.5.1, p.438) states:

An active object is an object that, as a direct consequence of its creation, commences to execute its classifier behavior, and does not cease until either the complete behavior is executed or the object is terminated by some external object. (This is sometimes referred to as "the object having its own thread of control.") The points at which an active object responds to communications from other objects is determined solely by the behavior of the active object and not by the invoking object. If the classifier behavior of an active object completes, the object is terminated.