Manager Design Pattern


Provide a solution to the problem of managing a functionality that requires the same actions to be repeatedly performed on a class of components providing different implementations of the functionality itself.

Based On

This pattern is essentially equivalent to the manager meta-pattern of the AOCS Framework (see also: A. Pasetti, Embedded Control Systems and Software Frameworks, Springer-Verlag, 2002). .


This design pattern is best seen as a meta-pattern that captures the commonalities design patterns like the telecommand management design pattern, the manoeuvre management design pattern, and the telemetry management design pattern. These design patterns are similar in that they all address the problem of organizing the repetive execution of certain actions. In all cases, these actions are encapsulated by components that are characterized by a certain abstract interface and there is a need to decouple the management of the actions from their implementation.

The purpose of capturing the commonality of the solutions offered by the management design patterns mentioned above is that this makes it easier to apply the same type of solution to other problems.

Dictionary Entries

The following abstractions or domain-wide concepts are defined to support the implementation of this design pattern:


The design pattern assumes that the actions to be repetitively performed are defined by an abstract interface FunctionalityImplementer. Components that implement this interface are the functionality implementers that encapsulate the execution of the actions. The introduction of FunctionalityImplementer makes it possible to define an application-independent component, the FunctionalityManager, that is responsible for managing the execution of the actions. The functionality manager component will normally hold a list components of type FunctionalityImplementer and will expose an activation operation. When it is activated, the functionality manager processes the list of functionality implementers and decide whether or not to execute the actions they encapsulate. The decision is taken exclusively in terms of the information that is accessible through the FunctionalityImplementer abstract interface. The logic for processing the functionality implementers is functionality- and domain-specific. The functionality manager is therefore reusable for all applications within a certain domain.

In the case of the manoeuvre management design pattern, for instance, the functionality manager is the ManoeuvreManager and the functionality interface is the Manoevre interface.



A typical operational scenario for this design pattern is:



There is a need to control the repetitive execution of actions that are sufficiently similar to allow their characteristics to be captured by an abstract interface.

Implementation Issues

Implementations will often combine the manager pattern with the mode management pattern. This will be necessary when the list of functionality implementers must be changed on a periodic basis or in response to changes in operational conditions. The implementation section of the telemetry management design pattern gives a concrete example of how the two design patterns can be combined.

The logic implemented in the functionality manager can be very complex. The functionality manager can query the implementers for information about their internal state and can process this information in order to decide whih actions to perform upon the functionality implementers. The important point of the design pattern is that everything the functionality manager does must be done exclusively through the FunctionalityImplementer abstract interface.

OBS Framework Mapping

The implementation of this design pattern in the OBS Framework is supported by the following classes:

Sample Code

As already noted, this design pattern is a generalization of design patterns like the telecommand management design pattern, the manoeuvre management design pattern, and the telemetry management design pattern. Readers should refer to the descriptions of these design patterns for examples of how the manager design pattern can be implemented.




A. Pasetti (P&P Software)

Last Modified


Contact Us | The OBS Framework Project