The Graph Interface (GIF)

Motivation

Mechanics

An adapter has to implement the following classes:

Class diagram

Figure 7-1. UML Class Diagram: Hierarchy of Graph Interface (GIF)

Hierarchy of Graph Interface (GIF)

The classes forming the Graph Interface (GIF) are mostly abstract classes which have to be implemented by the concrete Adapter. The Graph_Factory is the only concrete class which handles the administration of implementations of Specific_Model_Factory and Display_Factory.

Figure 7-2. UML Sequence Diagram: Example of using the Graph Interface (GIF)

Example of using the Graph Interface (GIF)

The XML_Model_Factory is only a example for another model factory to illustrate how it is supposed to work.

The behaviour of the method Create_Display of the concrete Display_Factory is implemented specific.

For the implementation of this interface with the RFG see Overview (the Section called Overview in Chapter 4).