Route <expression>
Route 2
Route Attr1
Route Dist1()
Immediately executes a routing block for the processing entity before finishing any remaining processing logic. The process does not continue until all entities being routed for the particular block have begun executing their move logic and pass control back to the process. The processing logic may contain several Route statements. These statements may be selected individually using If...Then statements, or they may be processed sequentially, with or without other process statements in between. If any Route statement appears in a process logic, then
The Route Statement is most often the last statement in the process logic and is used with If...Then statements to make routing decisions based on complex logic that is not available through other
This statement can be used to route one or more entities and leave behind a “ghost” entity that will process the remaining logic after the route statement. The “ghost” entity is also referred to as the parent entity. The child entity takes the route specified by the Route statement. If the child entity cannot go to the next location and is blocked, the parent entity is also blocked and will not continue logic execution until the child entity is no longer blocked.
The operation column of process edit tables only.
<expression>
The integer result of this expression determines the routing block that the entity will take. The expression is evaluated every time it is encountered, allowing the chosen block to vary during the simulation.
Process Table
Entity... |
Location... |
Operation (min)... |
ENTAB |
Loc1 |
Route Dist1() |
Routing Table
Blk |
Output... |
Destination... |
Rule... |
Move Logic... |
1 |
EntA |
Loc2 |
.600 1 |
Move For 2 |
|
EntB |
Loc2 |
.400 |
Move For 2 |
2 |
EntA |
Loc3 |
.200 1 |
Move For 2 |
|
EntB | Loc3 |
.800 |
Move For 2 |
3 |
EntA |
Loc4 |
.300 1 |
Move For 2 |
|
EntB | Loc4 |
.700 |
Move For 2 |
See Also
© 2019 ProModel Corporation • 705 E Timpanogos Parkway • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |