Building a Model with Compound Components |
It is often useful to nest compound components within one another
when making reusable components.
One issue that arises when doing this is how to expose externally connections
to internal component logic.
The Port
component is particularly helpful
to accomplish this when nested compound
components are built for subsequent reuse.
Consider an example of a queue-server combination.
By adding two Ports, one for transactions to enter
the queue and the one for transactions to leave after service,
and then assembling the ports and the compound component into
a larger unit, you can further encapsulate the queue-server
combination as shown in Figure 6.4.
Figure 6.4: A Multi-Level Compound Component with Queue, Server, and Ports
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.