Chapter Contents |
Previous |
Next |
Building a Model with Elementary Components |
Figure 2.10 shows the control panel for a switch connected to two queues as in Figure 2.11. Selecting the Formula button displays a Formula Manager Window (see Chapter 4, "Formulas,"). There you build, verify, and save the formula associated with the switch. When a transaction arrives at the switch, the formula associated with the switch is evaluated. This value is compared to each of the cases listed in the Switch control panel. The transaction flows down the arcs associated with each of the cases that match. You can associate arcs with a case by selecting a case and pressing the Edit button. This displays the Switch Control Panel, as shown in Figure 2.10. In this window you select one or more of the listed components. For example, a Switch can be used to direct transactions to the smaller of two queues.
The following documents the logic of the Switch component:
evaluates the formula for the switch. The transaction flows down the arcs leaving the switch that have case values matching the formula evaluation. If there is no match, the transaction flows out the balk node.
the request is sent up each arc directed into the component.
if any of the components on arcs directed out of the Switch is busy, then return TRUE; else, return FALSE.
Keyword | Meaning |
---|---|
id | returns the component's unique identifier. |
Keyword | Meaning |
---|---|
reset | resets the Switch. |
start | starts the Switch. |
stop | stops the Switch. |
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.