Building a Model with Elementary Components |
The Router and Switch components are for controlling the flow of transactions as a function of the state of the simulation. The Router can have a formula associated with each arc directed away from it. When a transaction arrives at the Router, each formula is evaluated and the transaction flows down all arcs with formulas that evaluate to TRUE. The Switch is similar to the Router, but it has only one formula associated with it. The formula evaluation is interpreted as a case, which identifies an arc or set of arcs down which the transaction should flow. If the evaluation does not identify a valid case, the transaction flows out the Balk node.
The following documents the logic of the Router component.
evaluates the formula for each arc leaving the router. If an evaluation returns TRUE, then the transaction flows down the associated arc.
The request is sent up each arc directed into the component.
If any of the components on arcs directed out of the Router is busy, then return TRUE; else, return FALSE.
Keyword | Meaning |
---|---|
id | returns the component's unique identifier |
Keyword | Meaning |
---|---|
reset | resets the Router |
start | starts the Router |
stop | stops the Router |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.