Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Building a Model with Compound Components

Nested 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 5.4.

cmpnode1.gif (2348 bytes)

Figure 5.4: A Multi-Level Compound Component with Queue, Server, and Ports


Controlling Subcomponent Exposure

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.