Tags:
view all tags
---+ Editing Decide Modules _Decide_ modules can be added to the flowchart view via dragging and dropping (see [[EditingCreateModules][Editing Create Modules]] for a demonstration) and edited by double clicking on the module. There are 4 types of _Decide_ modules. ---++ 2-way by Chance This type of _decide_ module will route entities one of two ways according to a given percentage. The percentage is specifed by the user and relates to the proprotion of entities that are routed to the _True_ exit point. ---++ 2-way by Condition This type of _decide_ module will route entities one of two ways depending on the condition. There are multiple types of conditions. ---+++ Variable Arena evaluates a variable-based expression and routes to the _True_ exit point if the expression is true or the _False_ exit point otherwise. <h3> Attribute </h3> Arena evaluates an attribute-based expression and routes to the _True_ exit point if the expression is true or the _False_ exit point otherwise. Consider the example of simulating queuing at a supermarket. If the entity attribute _QueueNumber_ is equal to 2 then that entity will be routed to the _True_ exit point which leads to processing at _Counter 2_. <img width="539" alt="decide_module_model.JPG" src="%ATTACHURL%/decide_module_model.JPG" height="189" /> <img width="448" alt="Decide_module_by_Attribute.png" src="%ATTACHURL%/Decide_module_by_Attribute.png" height="257" /> ---+++ Entity Type Arena will route all of entites of the specifed entity type to the _True_ exit point and all other entity types to the _False_ exit point. Consider the example of simluating an egg sorting factory. Suppose an egg can be a _size 6_ egg or a _size 7_ egg depending on its weight. If an egg has the _Entity Type_ 'size 6 egg' then that entity will be routed to the _True_ exit point which leads to the C _ollection of Size 6 Eggs_ while all other eggs are routed to the _False_ exit point which leads to the _Collection of Size 7 Eggs_. <img width="586" alt="Decide_module_by_entity_type_example.PNG" src="%ATTACHURL%/Decide_module_by_entity_type_example.PNG" height="195" /> <img width="450" alt="Decide_Module_by_Entity_Type.PNG" src="%ATTACHURL%/Decide_Module_by_Entity_Type.PNG" height="257" /> ---+++ Expression Arena evaluates the expression and routes to the _True_ exit point if the expression is true or the _False_ exit point otherwise. Consider the example of simulating the operations within an egg sorting factory over several weeks. Employees are rostered to work Monday to Friday however employees do not work on the weekend. The simluation must determine that it is not the weekend in order to simluate employees arriving for work. If Sunday is Day 1, Monday Day 2, Wednesday Day 3....etc (up to Saturday Day 7) the following _Decide_ module could be used to determine if the factory should open for business. <img width="589" alt="Decide_module_by_expression_example.PNG" src="%ATTACHURL%/Decide_module_by_expression_example.PNG" height="198" /> <img width="458" alt="Decide_module_by_expression.PNG" src="%ATTACHURL%/Decide_module_by_expression.PNG" height="258" /> _NB:_ _TNOW_ is an inbulit Arena variable that determines the current time of the simulation while _DayOfWeek(TNOW)_ is a user-defined variable that uses _TNOW_ to determine the current day of the week in the simulation NB: In plain english the above expression says: If the current day of the week is less than 1 (which means it is a Sunday) or is greater than 7 (which means it is a Saturday) route to the _True_ exit point. ---++ N-way by Chance %RED%Coming soon!%ENDCOLOR% ---++ N-way by Condition %RED%Coming soon!%ENDCOLOR% -- Main.MichaelOSullivan - 25 Aug 2009
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r18
|
r16
<
r15
<
r14
<
r13
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r14 - 2010-02-03
-
KatTrevor
Home
Site map
Forum web
Main web
NDSG web
ORUA web
OpsRes web
Sandbox web
TWiki web
OpsRes Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback