Next: 2.3 Components
Up: 2 Position
Previous: 2.1 Interfaces
functor Connector () :The indexes, e.g. 1 and 2, are used to distinguish the interfaces of the different components, in this case C1 and C2 corresponding to Figure 1. A connector can have an arbitrary collection of input and output functions corresponding to the interfaces, i.e. outward stubs, which it implements.
sig
val output1 : ;
val input2 : ;
val output2 : ;
end
=
struct
( implementation of the input and the output functions )
end;
A specific connector, in Figure 1, is then given by:
structure = Connector();