Next: Benchmark Up: MySQL occam- API Previous: Implementation Contents

# Applications

This section will describe ways of using MoA in design of CSP applications. The first one is a simple model, shown on figure 1, with only 3 processes. An input, the MoA and an output. An input process reads commands from an interface and then communicates a command to a MoA process. The results from MoA are displayed on an output device.

Figure 1: CSP-model for a very simple application.

The applications as such cannot interact with the MoA process i.e. respond intelligent if an error occurs etc. This lead to a another but still simple model. A database process or process network is responsible for intelligent interaction with MoA an then outputs some data. The `mysqlclient` program (see section 7) can be described with this model, as it consists of an input process, an output process and a MoA process. The input and output processes communicate with the MoA process and with each other.

Figure 2: A process called data will now control MoA, receive input and send output.
These two models can be a part of a larger CSP network, and of course many MoA processes can run simultaneously.

Next: Benchmark Up: MySQL occam- API Previous: Implementation Contents