The 'Gang of Four' Companion:

Flyweight Design Pattern

Formal specification of design patterns in LePUS3 and Class-Z

Print this document

This page is part of the The 'Gang of Four' Companion dedicated to the formal specification in LePUS3 and Class-Z of patterns from the 'Gang of Four' catalogue [Gamma et al 1995].

Links

Download:

The Flyweight design motif

The informal description: Excerpts from [Gamma et al. 1995] (adapted for this purpose):

Intent: Use sharing to support large numbers of fine-grained objects efficiently.

Structure: Original OMT diagram converted to UML (Why and How?):

Flyweight in UML

Participants:

Collaborations:

Formal specification

See also:

Flyweight in LePUS3
Flyweight in LePUS3 (legend)
Flyweight in Class-Z (legend)