next up previous contents index
Next: 4.3 Extended Syntax Up: 4.2 Textual Syntax Previous: 4.2.10 Ports   Contents   Index

4.2.11 Connections

Before connections can be established, servers that passively wait for incoming connection requests must be located. The name patterns or types of those servers are specified under the COMPONENT descriptor. Like the PORT descriptor, each COMPONENT descriptor is followed by the properties of a component or a group of components that matches a certain criteria:

The name property or the type property or both must be specified for each group.

Connections are established between ports and the ports of the servers under the CONNECTIONS descriptor. One or more links can be defined. The left-hand side of a link is connected with the right-hand side with double hyphens (``--''). Suppose the ID of a component group is C and the model wants to connect to port p of the group with its port q, the link should be written as either ``q -- C.p'' or ``C.p -- q''.


Table 4.12: An example of the textual representation of connections
\begin{table}\begin{center}
\begin{minipage}{5.5cm}
\begin{verbatim}
STATECHAR...
...
O: [EVENT(''r.f'', i)]\end{verbatim}
\end{minipage} \end{center}
\end{table}


As an example, suppose a server is given ID ``Server0'' and it has inout-port p, in-port q and out-port r, the model in Figure 4.14 is written as Table 4.12.


next up previous contents index
Next: 4.3 Extended Syntax Up: 4.2 Textual Syntax Previous: 4.2.10 Ports   Contents   Index
Thomas Huining Feng 2004-04-28