Template Developer's Guide PDF
Template Developer's Guide PDF
Template Developer's Guide PDF
Contact
Copyright Notice
Trademark Notices
Other Trademarks
Warranty
ii
Contents
1 Welcome
What is Arena simulation software? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Intended audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Where can I go for help? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Refer to the users guides . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Explore our examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Get help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Use the Smarts library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Get phone support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Get Web support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Refer to the Arena Web site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Get training . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Get consulting services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contact us . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1
2
2
3
3
3
3
3
4
4
5
5
5
5
iii
3 Module-building Tutorial
Module overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Getting startedA new template. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Dialog Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The dialog box design window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Adding the modules dialog box operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Adding the module's entry/exit point operands . . . . . . . . . . . . . . . . . . . . . . . . . .
Arranging the Dialog form layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Logic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The logic window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Overview of the Printer module logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Receiving entities and seizing the printerThe Queue and Seize modules . . . .
Deciding whether to changeover the printerThe Decide module . . . . . . . . . . .
Changeover logicAssign, Process, and Assign modules . . . . . . . . . . . . . . . . .
The print logicDelay and Release modules . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining the Printer module elementsQueues and Variables elements . . . . . .
User View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Panel Icon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A sample model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Preparing the template for use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Single printer simulation model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
29
32
33
33
35
37
39
40
40
41
42
44
45
48
50
53
56
57
57
58
64
65
65
65
66
66
66
66
66
67
67
67
68
68
71
71
71
71
73
74
CONTENTS
74
75
75
75
77
vi
111
111
112
113
113
114
114
114
115
115
115
116
116
116
123
124
125
129
131
136
139
141
143
145
147
148
148
148
149
152
153
154
156
160
161
CONTENTS
163
164
164
165
165
166
167
170
170
173
175
176
177
177
179
181
10 Elements
Defining elements in modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Element lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Use of elements and properties in module definitions . . . . . . . . . . . . . . . . . . . . . . . .
Access to properties in a model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying element lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining elements from hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Element operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining element operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sublists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining and referencing elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Property operands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining Property operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining repeating properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining an element or property using a hidden operand. . . . . . . . . . . . . . . . . .
Switches and elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
183
185
185
186
187
187
188
188
190
190
190
192
193
194
194
195
199
202
vii
B Tables
Elements and properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Standard elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Inverted elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fixed-length elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data type definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connection point data types and SIMAN blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entry or exit point types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
203
204
204
206
211
211
211
211
212
212
213
213
214
214
214
215
215
217
217
217
237
239
264
264
275
275
277
281
Welcome
What is Arena simulation software?
Arena is an advanced simulation system that provides an interactive environment
for building, animating, verifying, and analyzing simulation models. With Arena, you
can design a unique Arena template that is specific to your particular project,
company, or industry. The template development features build on Arenas natural
hierarchical structure enabling you to create new simulation tools in a graphical,
easy-to-use environment.
In Arenas template-building area, you create complete simulation building blocks,
called modules. These modules can be very simple, such as one that counts customers
as they leave a bank. Or you might build a highly complex module that captures all of
the activities at a shipyard dock. In fact, Arenas hierarchy encourages you to take
apart the systems you study into their critical, basic elements, then combine these
basic elements into the more complex components and subsystems to be simulated.
The modules that you build are collected into libraries, referred to as templates. You
can use these templates in support of your own simulation activities, or you can share
these simulation tools with other modelers.
By encouraging this sharing of technology, Arena offers the opportunity for you, as a
simulation modeler, to create completely customized environments, without writing
any programming code. Novice modelers can access the power of simulation as a
decision support tool by working with terminology, modeling logic, and graphical
animation that are specially developed for their needs. Experienced simulation
modelers can improve their productivity and share the knowledge they gain by
capturing essential simulation logic and quickly packaging it into a verified, reusable
building block for future models.
As already mentioned, in Arena you have the ability to define new modeling
constructs, called modules, and to store them in libraries, referred to as Application
Solution Templates (ASTs), or templates.
If you are familiar with Arenas model-building and analysis environment, you will
find that the template development features build on the concepts and interface you
already have learned. To work with templates, when you run Arena, you will open a
Template Window instead of a Model Window. Select the File > New menu option or
press the New File toolbar button. In the dialog box that is displayed, select Template
Window and click OK, as shown in Figure 1.1.
This template window serves as a home base for the activities involved in building
a template. The windows that you work with to define modules are displayed on the
same desktop as Arena model, input, and output windows. You interact with these
windows using the standard Arena user interface.
Intended audience
Before you begin to build templates, you should already have a good understanding
of the basic Arena modeling interface and either the SIMAN template or Arenas
Basic Process, Advanced Process, and Advanced Transfer templates. This guide
assumes that you are familiar with Arena modeling concepts and terminology, which
are presented in the Arena Users Guide and Help.
1 WELCOME
CONVENTIONS
Throughout the guides, a number of style conventions are used to help identify material. New terms and concepts may be emphasized by use of italics or bold; file menu
paths are in bold with a (>) separating the entries (for example, go to Help > Arena
Help); text you are asked to type is shown in Courier Bold (for example, in this field,
type Work Week), and dialog box and window button names are shown in bold (for
example, click OK).
Get help
Help is always at your fingertips! Arena incorporates the latest in help features,
including Whats This? help that displays a brief description of fields in dialog boxes,
context-sensitive help on menu and toolbar buttons, and a help button on each of
Arenas modules. See the Arena Help table of contents and index for a list of all help
topics.
(for users on active maintenance) a technical support hotline and e-mail address
staffed by full-time, experienced professionals
help with installation problems or questions related to the softwares requirements
troubleshooting
limited support regarding the interaction of Arena with other programs
support of the Arena Object Model, which is used in Microsoft Visual Basic for
Applications.
If you call the support line (1.440.646.3434, option 3 & 7), you should be at your
computer and be prepared to give the following information:
1 WELCOME
Once you have signed up for online support you can elect to receive regular e-mail
messages with links to the latest technical notes, software updates, and firmware
updates for the products that are of interest to you. You can also submit online
support requests.
If you cant find the answer you need, contact your local representative or Arena
technical support.
Get training
Do you need training? Rockwell Automation offers a standard training course consisting of lectures and hands-on workshops designed to introduce you to the fundamental concepts of modeling with Arena.
We also offer customized training courses designed to meet your specific needs.
These courses can be held in our offices or yours, and we can accommodate one
person or twenty. You design the course thats right for you! Contact our consulting
services group to discuss how we can help you achieve success in your simulation
efforts.
Contact us
We strive to help all of our customers become successful in their manufacturing
improvement efforts. Toward this objective, we invite you to contact your local
representative or Rockwell Automation at any time that we can be of service to you.
Be sure to connect with us on Facebook and join the Arena Users Group on
LinkedIn.
Support E-mail: [email protected]
Support Phone: 1.440.646.3434, options 3 & 7
General E-mail: [email protected]
U.S. Sales Phone: 1.724.741.4000
URL: www.ArenaSimulation.com
URL: www.RockwellAutomation.com
5
After a module has been placed in the model window, its associated data can be
edited by double-clicking the module. This action opens the modules main dialog
box, which typically contains one or more changeable values, referred to as operands
of the module. These operands provide the mechanisms for changing the behavior of
the module in different uses in simulation models. For example, using the Process
module from the Basic Process panel, you might seize, delay, and release with a
resource named Line D Labeler. In the same model, you might place another Process
module that requires a resource named Line D Packer for processing. Entities sent to
the first module wait for the Line D Labeler resource. While entities arriving at the
second Process module undergo similar logic (that is, the logic captured in the
Process module), they are waiting for a different resource (Line D Packer).
To define the flow of entities among modules, either direct connections or station
transfers can be used. A direct connection is formed by placing a connection from a
module exit point to a module entry point. Entities that leave a module through an
exit point are transferred through the connection to the entry point with no time delay.
A station transfer takes place when an entity leaves a module by means of a route,
transport, or convey, as seen in the Leave or Route modules of the Advanced Transfer
panel; in these cases, a station destination is specified and the entity is sent to the
module that defines the station, such as an Enter or Station module (Advanced
Transfer panel). These station transfers often involve time delays and can require a
material transfer device (for example, person, shuttle car, conveyor) to move the
entity to its destination station.
After modules are placed in a model and values are provided for their operands, a
simulation run can be performed. To initiate a run, Arena generates a SIMAN model
file (representing the model logic) and an experiment file (containing data to support
the model) based on the modules that have been placed in the Arena model. Values of
module operands can cause particular sections of the model to be generated or
ignored, can cause the creation of elements in the experiment, and can turn on or turn
off display of animation components. For example, collecting a count in the Record
module causes a Count block to be included in the SIMAN model file and a Counters
element listing the counter name to be written to the SIMAN experiment file. In this
case, no animation component is included automatically. After the model and
experiment have been generated and the animation graphics (if any) initialized, the
simulation commences, acting on the simulation program (.p) file that results from
the model generation phase.
After you have defined the modules that will be contained in the template panel
library, you can save the module definitions in a .tpl file. To prepare the template
panel for use in a simulation model, a template panel object (.tpo) file is generated,
using the Check > Generate TPO menu item. This step verifies that the module
definitions are complete, then creates a .tpo file that is ready to be attached for use in
a model.
10
The module definition also specifies the characteristics of the Create modules dialog
box, including the position of the operands, the prompts associated with them, their
default values, and so on. When a Create module is placed in a model window, an
instance is created. Many instances of a given type of module can be placed in the
model window. For example, the simulation model can represent a grocery store
where different types of customers arrive at varying times or rates. First, a Create
module is placed in the model window. The modeler can change the values of the
Create module instances operands. For example, the first customer type can use the
default arrival stream, which is random (exponential). A second type of customer can
arrive at a Constant rate. In that case, a modeler might change the value in one
instance of the Create modules to Constant. By changing the value in an instance, the
modeler does not modify the definition. In the case of the Create module, the next
instance (and all instances, until edited) will have a default arrival stream type of
Random (from the module definition).
Module instances can be placed in Arena model windows (and later saved in model
.doe files) or in the logic windows of newmodule definitions (to be saved in .tpl files).
For simplicitys sake, we usually discuss the use of module instances by the modeler
(suggesting placement in model windows) in this guide. As you are reading, however,
keep in mind that instances of the modules you are defining can be used either in a
simulation model or in the definition of a module in another template panel.
Defining a module
A module definition is created by working with five windows: dialog box design,
logic, switch, user view, and panel icon. A template window (see Figure 2.2)
provides a base from which the module definition windows are opened. The items in
11
the Window menu open each of the windows for the selected Module Definitions list.
The corresponding buttons on the Template Development toolbar may also be used.
As is the case throughout Arena, you can have as many windows open as you need
for one module definition or more). Figure 2.4 shows a template window with five
module definition windows opened for a single example module (Shipping).
Figure 2.4 Relationship among Arena template and module definition windows
The five buttons used to open module definition windows (from the toolbar shown in
Figure 2.5) are arranged in the order we most often work when initially building a
new module; that is, first defining the dialog box design and logic, then defining
switches to control turning on and off module options, and finally adding the user
view and panel icon graphics. However, the five components of a module can be
defined in any order. As you work with a module definition, you often will modify
the contents of several of these windows.
In this chapter, we present an overview of each one of the five module definition
windows in the order that someone who places an instance of a module will interact
with the module. We start with the icon for the module button that is displayed in a
template panel; then we describe the user view and the modules dialog box design
and operands, which are the components of a module instance that a modeler can
modify directly. We finish with the underlying module logic and switches, which are
not directly accessible to the user of a module.
Panel icon
Three of the aspects of a module definition are visible to the user of the module: the
panel icon, the user view, and the modules dialog box and operands. First, when the
template panel object (.tpo) file is attached to the Project Bar, the panel icons are
displayed. This is a table of small graphics icons representing the modules contained
in the template panel. Figure 2.6 shows the Arena templates Basic Process panel
attached to the Project Bar.
13
While a modules panel icon is visible to the modeler, it is not changeable; the icon
that is drawn in the module definition will be the same whenever the .tpo file is
attached to the Project Bar. The Panel Icon window that is used to draw the icon in
the module definition is similar to the picture edit window used to draw Arena
pictures of resource, entity, and so on. The panel icon for the definition of the Basic
Process panels Create module is shown in Figure 2.7.
User view
After a module has been selected and placed in a window, an instance is formed and
the modules user view is displayed. This user view contains the module handle (the
name of the module, displayed as a text object in a box that opens the modules main
dialog box when the modeler double-clicks on it), and can contain entry points, exit
points, operand values, static drawing graphics, and animation objects. The objects in
the user view are visible to the modeler; most are changeable by the modeler
individually in each module instance. For example, you might place a Process
module (from the Basic Process panel) in a model window. Initially, the user view (in
the model window) will appear as shown in Figure 2.8, containing the module handle
(Process #), an entry point, an exit point, and an animated variable representing the
work in process (WIP) or number of entities currently in that model.
You might place another instance of the Process module in the same model, then add
a resource animation picture for that Process module instance to represent the
resource used in the module. Figure 2.9 shows the modified user views of two
Process module instances using pictures from Arenas people.plb picture library in
place of the default resource pictures.
14
The user view for a module definition is created in the User View window. In Figure
2.10, you can see that the user view window for the Process module contains more
objects than are displayed by default when an instance of the Process module is first
placed in a window. These additional user view objects are not displayed because the
values of operands in the default Process module dialog box cause them to be
switched out. (We discuss switches later in the chapter.)
Figure 2.10 User view window of the definition of Arenas Process module
15
operands, and their organization into one or more dialog boxes for the module. A
module designer might decide to provide only a few operands; modelers using this
module have few choices, but are able to work with a very simple module. Complex
modules might present dozens of operands, allowing a single module to capture a
very complicated process that might vary significantly from system to system or in
different cases in a system. Furthermore, through use of switches, the dialog box can
be reconfigured to display only the appropriate operands, based on the values of other
operands as supplied by the modeler.
In the Record module from the Basic Process panel, for example, the default dialog
box that is opened when an instance is first formed appears as shown in Figure 2.11.
If the modeler changes the Type field from Count to Time Interval in an instance of
the Record module, a different operand is displayed with the prompt Attribute
Name in place of the Value operand and the operand Tally Name is requested
instead of Counter Name. In this case, the modeler will be collecting information
on the time difference between the specified attribute names value and the current
simulation time, instead of increasing or decreasing a specified count.
In a template panel library (.tpl) file, the Dialog Box Design window is the interface
for defining the dialog box form layout(s) and operands of a module definition. In
this window, a module designer defines dialog box sizes, data displayed to and
entered by the user, default and permissible values, and the layout of interface
controls.
The dialog box design window includes an Operand Explorer section to browse the
module definition's hierarchy of dialog boxes (many modules contain multiple dialog
boxes), operands, and repeat groups (for defining repeatable operands or sets of
operands, such as the resources to be used in a process). It also includes a Toolbox
16
section to add user interface controls to the modules dialog box forms and a Design
Properties grid to edit the properties of one or more selected objects.
Figure 2.12 shows the dialog box design window for the definition of the Basic
Process panels Batch module, which contains a main dialog box and a number of
operands that are members of the dialog box.
Figure 2.12 Dialog box design window for the Batch modules definition
A modeler working with a module instance can modify the values of operands, but
cannot change the configuration of dialog boxes, the default values supplied when a
new instance of a module is placed in a window, or the associations among operands.
These characteristics of a modules data are part of the module definition; each
instance supplies values to the operands provided by the definition.
Logic
The final two aspects of a module are hidden from the modeler: the module logic and
the definition of module switches. The logic underlying an Arena module definition
17
18
In each instance of the Admissions Clerk module, different values might be given for
the two module operands (Clerk Name and Time to Admit). To use these values, we
will pass the value of the Clerk Name operand to the Resource name field in the
Process module, and the Time to Admit operand to the Expression field.
To reference an operand of the module from an instance (such as the Process
module), you edit the instance in the logic window; wherever you plan to use the
value of a module operand, you enclose the name of the operand in back quotes (`).
Assuming that the operands have the same name as the prompts (that is, Clerk Name
and Time to Admit), the references would be established in the Process module as
`Clerk Name` and `Time to Admit` as shown in Figure 2.14.
Figure 2.14 Operand references in Process module for Admissions Clerk module
If one instance of the admissions clerk module has values Mary and
UNIFORM(10,30) for the module operands, a Process module is placed in the
underlying model logic with values of Mary for the resource to be used and
UNIFORM(10,30) for the process time.
19
Unlike a module instances user view and operands, the modules logic cannot be
directly modified by a modeler. Instead, the modules operands can be used to
specialize an instance of a module to meet a particular need by passing data to the
logic (that is, the module instances in the logic window) and by switching sections of
the logic in or out.
There can be one or more operands in a logic module instance (in the logic window)
that are not available for the end user. For example, in the Process module description
above, the Type remains the default Standard, Action is Seize Delay Release, Priority is
default of Medium(2), and Delay Type is Expression. These operand values cannot be
changed by a modeler, because they are not accessible from operands in their module.
Switches
In an Arena module definition, individual objects in the user view, dialog box design,
and logic windows can be selected to be included in an instance only if a particular
condition is true. For example, an instance of the Record module in the Basic Process
panel only displays the Value operand if the Type is Count or Expression. If the Type
is Entity Statistics, Time Interval, or Time Between, the Value operand is not
displayed. Instead, other operands relating to those types of statistics are displayed.
We refer to this as being switched out. In the underlying module logic, a Count
block is included in the logic, with the appropriate values referenced from the
modules operands, if Type is Count. A Tally block is used, with varying information,
if Type is Entity Statistics, Time Interval, Time Between, or Expression. And finally,
while not used in the Record module, user view animation can display pertinent
information, based on a users input values.
To define this behavior, objects called switches are created in the module definition.
These switches are placed in a switch window, as shown in Figure 2.15.
Using switches in module definitions can aid users of the module focusattention only
on the fields that are relevant, given other information theyve provided (for example,
if a modeler has indicated that a count type of statistic be collected, there is no reason
to display the Tally Name field). Also, switches used in the logic window can ensure
that efficient models are generated for performing simulation runs. In the case of the
Record module, rather than requiring each entity to query whether or not a count
should be collected, the logic either is written out for all entities to perform, or is
omitted from the model entirely if no count is to be collected. Of course, in some
cases, different entities might undergo different logic, in which case a module such as
the Decide module (from the Basic Process panel) can be placed in the logic window
to make the decision. But if a particular selection is to apply to all entities that are
processed through the module, switches are an effective way to ensure efficient
simulation logic.
21
23
Figure 2.17 Single level of module hierarchy (SIMAN modules in logic window)
A modeler (or template designer) who uses ModuleA does not need to understand
about the underlying structure of the module (that is, the contents of the logic
window). Instead, you have created a new interface to a DELAY module followed by
a SIGNALmodule by defining ModuleAs operands and by establishing the
references to those operands in the DELAY and SIGNAL modules contained in the
logic window. As the template designer, you have complete control over which
characteristics of the underlying logic are changeable by users of the module and
which characteristics are fixed at values you have chosen.
To extend the hierarchy concept to another level, you might use an instance of
ModuleA in the logic window of a module (ModuleB) in another template panel file.
Here you have the option of using the underlying components of ModuleA (DELAY
and SIGNAL) directly; or instead you can leverage the effort you already have placed
in designing and verifying ModuleA. Figure 2.18 illustrates the hierarchy of a sample
ModuleBs definition, including an instance of ModuleA (built hierarchically with
Blocks panel modules at the base) and an instance (COUNT) directly taken from the
Blocks panel.
24
While the concept of hierarchy is extremely powerful, it is not necessary for modelers
to understand either that the tool they are using is built hierarchically or what the
underlying hierarchical structure is. For template developers, hierarchy is an
opportunity to be exploited for leveraging effort, reusing verified modeling
approaches, and encouraging consistency of design.
Use of templates
Introduction
Templates can be developed using Arena to address a wide range of needs. Some
templates will be conceived for use by a large targeted market; others will be intended
for use by the template designer to increase productivity in building simulation
models. In this section, we outline some of the possible uses of Arena template
development features. We are confident that this list represents only the tip of the
iceberg.
25
graphical interface to the SIMAN language for modelers and form the base of all
Arena modules. The three panels that make up the Arena templateBasic Process,
Advanced Process, and Advanced Transferprovide modules that capture
commonly encountered processes and system elements using generic terminology
(for example, process, decide, record).
In the manufacturing area, modelers have exploited the powerful capabilities built
into SIMAN and Arena for capturing essential system characteristics, including
operational schedules, process plans, automated material-handling systems, and so
on. Modelers also have applied the Arena template to represent systems such as
airline operations, health care, logistics, distribution, and business process
reengineering (BPR). And, even in some organizations, Arena has been used for a
wide spectrum of simulation studies, from long-range planning to analysis of nearterm system changes.
The strength of a general modeling tool, used in a single, cohesive environment, is
that modelers are provided with a core set of terms and concepts that can be applied
to many different problems. Knowledge gained in studying one system can readily be
applied in performing the next simulation project.
Industry-oriented environments
Templates also have been developed for use in a particular industry, such as wafer
fabrication in the semiconductor industry. Such templates might be developed for
commercial use, or in the case of an organization that provides support to an industry,
templates might be developed and made available to companies in the industry.
There are two main advantages of industry-focused templates. First, the template can
use the terminology that is appropriate for the industry to minimize the abstraction
needed for a modeler to translate a system into the simulation software tool. More
importantly, through the power afforded by Arenas hierarchical templates, a template
can be built that is fully customized to represent accurately the elements of systems in
the industry, rather than mapping existing modeling functionality provided by a
general modeling tool. The designer of the template has the capabilities at hand to
mimic exactly the behavior of equipment, people, parts, components, and so on,
providing whatever spectrum of options is appropriate for the variations of these
system elements.
Application-focused tools
Many of the templates that are developed using Arena will aid modelers in
representing a particular system, facility, or process. In building these templates, the
template designer will have a more narrow focus than the developer of a general
26
27
Module-building Tutorial
In this chapter, we will build a small module to illustrate the fundamental concepts of
creating templates in Arena. We present this material with the goal of providing a
step-by-step tutorial that you can follow using the Arena software. If you follow the
instructions in this chapter, at the end of the tutorial you will have built a complete
module representing a high-speed computer printing station, and you will have
created a simulation model using it. While the module you will create is quite simple,
it does include the key elements of module definitions: a dialog box with a few
operands, simulation logic, a user view with animation, and a panel icon.
As you build the module outlined in this chapter, it can be helpful to review Chapter
2, Arena Template Development Overview, which provides definitions of
important terms and explains critical concepts related to building templates.
We begin by describing the module that is to be built. Following this, we present
sections that document the procedure used in four module definition windows (dialog
box design, logic, user view, and panel icon) to create the module. Finally, we use the
module to build a small simulation model.
Module overview
To illustrate the process of building a module in Arena, we will create a module
representing a high-speed printing station in a computer network. Models that use
this Printer module will contain entities representing print jobs.
Our Printer module will be analogous to a server; that is, it will accept entities to be
processed and will send the entities, after processing, to another module. It does not
create or dispose of entities.
The logic captured by the Printer module includes the concept of a changeover. If the
type of job being printed (represented by an entity attribute) changes from one job to
another, a technician is signaled to perform a changeover activity, such as changing
the type of paper used by the printer.
In designing a module such as the Printer example, one of the important decisions to
be made is what operands will be presented to the modeler. If you present only a few
important operands, modelers will be provided with a simple interface that focuses
attention on the most important characteristics of the process represented by the
module. However, by limiting the number of operands presented, you also place a
29
the Printer Name, which will provide the name of the printer resource as well as
the queue name for those entities waiting for the printer resource,
the Technician who performs the changeover, which will define a resource,
the Changeover Time, used only during changeovers between job types, and
the Print Time, that is, the time required to print the entire job.
The logic window associated with the completed Printer module is shown in Figure
3.2. So that you have an understanding of the logic we plan to represent by the Printer
module, we provide a brief description in this section. A combination of modules from
the SIMAN Blocks and Elements panels and Arenas Basic Process panel is used. Stepby-step instructions for creating this logic are presented later in the chapter.
30
3 MODULE-BUILDING TUTORIAL
A print job entity arriving at the Printer module begins processing at the Queue
module instance. The print job waits to seize the printer resource, then tests in the
Decide module to determine whether a changeover should occur.
If there is a changeover, the entity follows the changeover logic path (shown from the
True exit to the Assign module). In this case, it changes a variable, `Printer
Name`_Change, to the value of 1 to indicate that a changeover is taking place and
performs the changeover in the Process module. Following the changeover, the print
job entity restores the changeover variable to 0 and changes a variable that records
the last job type processed on the printer (to the entitys job type).
If no changeover is required, the entity is sent from the Else (or false) condition of the
Decide module directly to the Delay module to process the print job. If a changeover
is required, the entity enters the Delay module after completing the changeover
process. After the print time delay, the print job entity releases the printer resource.
To create the Printer module logic, you can either build the submodel directly in the
logic window of the module definition or you can prepare an Arena model with the
same logic. If you build the logic first as an Arena model, you can use Arenas Run
Controller and to view the detailed animation of the module logic by running a
simulation of the logic directly, rather than through an instance of the Printer module.
Using this approach, after you are confident that the logic has been specified as you
want, you can copy the verified logic from the model window to the Printer modules
logic window using Arenas clipboard.
31
For the purposes of this tutorial, however, we present the Printer module by defining
the logic directly in the module definitions logic window. In this way, we can discuss
both the sample problem to be addressed (that is, the high-speed printer station
module) and the particular aspects that relate to creating modules. You might want to
create the logic shown in Figure 3.2 in a model window first in order to develop an
understanding of the module we will be creating in this tutorial.
We will present the Printer module definition windows in the following order: Dialog
Design, Logic, User View, and Panel Icon. We do so because we find that it is
important to consider together the module logic and the operands when designing a
module. In this tutorial, we present the dialog box design window first because it can
be completely defined and tested without the underlying module logic. The logic, on
the other hand, is difficult to test without operands to provide an interface for defining
the data that can change from instance to instance of the module. When you are
developing your own modules, you probably will find that you move back and forth
between defining the module logic and adding operands in the dialog box design
window, which we find to be a natural way of creating a complete module definition.
32
3 MODULE-BUILDING TUTORIAL
The first step in defining a module is to name it. Click the Add button, type the name
of the module, Printer, and choose OK. As you will see in the completed module,
its name is used for the following:
the default text label displayed in the panel icon (only the first four letters are
displayed, but can be edited),
the name displayed in a template panel if the display type is text (rather than
icon),
the default name of the modules main dialog box object (defined in the dialog
box design window),
the default title of the modules main dialog box, and
the default name of the module handle (defined in the user view window).
To open each of the module definition windows, be sure that the Printer module is
selected in the Module Definitions list. To select it, click the module name.
We will return to the template window in A Sample Model on page 57 to prepare
the template panel file for use in an Arena model.
Note: To save the template panel to a template panel library (.tpl) file, select the File >
Save menu item from the main menu bar.
Dialog Design
The dialog box design window
We begin designing the Printer module by defining its dialog box design and its
operands. Open the dialog box design window by selecting the Printer module (in the
template window's Module Definitions list), and then select the Window > Dialog
Design menu item or click the Dialog Design Window toolbar button on the
Template Development toolbar. This opens the dialog box design interface for the
Printer module, as shown in Figure 3.4.
33
Dialog Formthe dialog box form layout is displayed in the center of the
window.
When a module definitions dialog box design window is opened, by default the main
dialog box form of the module is displayed in the center of the window. Thus, for our
Printer module definition, we see a dialog box form named Printer. This is the
dialog box that will be displayed when the modeler double-clicks on an instance of a
Printer module in a model window.
To specify the dimensions of the dialog box form, go to the Design Properties
window. This window should display the properties of the Printer DialogForm object.
34
3 MODULE-BUILDING TUTORIAL
Edit the Height and Width property rows and enter a height of 110 and a width of
170.
You can also resize a dialog box form. First click anywhere on the form to make sure
that it is selected. Then, click and drag one of the sizing handles that appear on the
border of the form. The sizing handles resemble small black boxes, and the pointer
turns into a double-headed arrow when you point at the handle.
OPERAND
To add the Printer Name operand to the dialog box form layout and module
definition:
1. Click the ComboBox control in the Toolbox section. Then, move the pointer to
the location in the dialog box form where the Printer Name operand is to be
placed. Left-click again to place the combo box on the dialog box form layout.
Note: At this point, your dialog box form layout cannot resemble the form in Figure 3.1.
You will learn how to arrange the operands in Arranging the Dialog form layout on
page 39.
2. In the Design Properties window, specify the properties of the selected combo box
as follows:
Specify the Name property as Printer Name. This is the name of the
operand. It will be used in the logic window for operand references (to provide
the value entered by a modeler in an instance of the Printer module to the
35
underlying logic). The Name property is the automatic default for the Text
property, which is the prompt text that is shown to the user on the dialog box
form.
Specify the Required property as True. This will require that any use of an
instance of the Printer module will have a non-blank value for the Printer
Name operand.
Specify the InUserView property as True. Because the Printer Name is the
primary piece of information related to the Printer module, displaying it in the
user view will help a modeler identify the particular printers represented in a
model if more than one Printer module is used.
36
3 MODULE-BUILDING TUTORIAL
The items that will be displayed and available for selection in a ComboBox operands
drop-down list are specified by the List property of the Design Properties grid. By
default, because the Printer Name operand has been specified as an Element operand,
the list is the resource element list.
TECHNICIAN, CHANGEOVER TIME,
AND
PRINT TIME
OPERANDS
37
HiddenOperand object
After adding two hidden operands to the dialog box design and module definition,
specify the Name properties of the two operands as Label and Next Label. In the
LogicProperties property of the operands, specify the operands as entry and exit
points per Figure 3.8 and Figure 3.9.
38
3 MODULE-BUILDING TUTORIAL
39
dialog box form such that the layout looks like Figure 3.1. The completed dialog box
design window for the Printer module should look similar to Figure 3.10 below.
You can close the dialog box design window by clicking the Window Close button,
or you can leave the dialog box design window open for reference while you define
the module logic.
Logic
The logic window
The next step in creating the Printer module is to define the modeling logic that
entities will undergo during a simulation run. This logic is created by designing an
Arena submodel (consisting of instances of modules from other template panels) in
the logic window of the Printer module definition. To open this window, select the
Window > Logic menu item or click the Logic Window toolbar button in the
Template Development toolbar.
The activities related to building the module logic are fundamentally the same as
those involved in creating an Arena model. For the instructions presented in this
40
3 MODULE-BUILDING TUTORIAL
tutorial, we assume that you already are familiar with the basic interactions for
building models in Arena.
41
module logic. As you create the module, it can be helpful to refer to this figure to
ensure that you are correctly connecting the modules in the logic window.
42
3 MODULE-BUILDING TUTORIAL
name. The label field for the queue, which represents the graphical entry into the
Queue module, contains a reference to the hidden operand `Label`.
Alternatively, you could use either the Station or Enter modules from the Advanced
Transfer panel to receive entities into the Printer module. Using stations allows for
the movement (with an optional delay time) between areas, instead of graphical
connections for logic flow.
The print job entities will remain in the queue until the printer resource is available, at
which time they will Seize the printer resource using a SIMAN Seize module. The
printer is seized before a decision is made regarding a changeover. The module is
designed this way so that the printer resource is unavailable to process other print
jobs during a changeover.
43
In the Seize module instance, you identify the resource to be seized by inserting a
single resource into the Resources list. Specify the Resource ID field to be `Printer
Name`. Figure 3.13 shows the dialog box for the Seize module instance.
44
3 MODULE-BUILDING TUTORIAL
the entity attribute Entity.Type, as shown in Figure 3.14. The Else (or false) condition
is generated automatically with a 2-way by Condition type of decision.
In the logic window, the connection from the True condition sends entities to the
changeover logic, (described next). The False condition connects directly to the
printer logic (described after the changeover section).
Note: Because different entities in the same model might access either path of logic,
the decision regarding changeover is built into the simulation model logic, rather than
controlled by attaching switches to the modules. Switches determine logic to be
included for all entities. In cases where different types of entities perform different
actions, a module such as Decide (N-way by Condition) or SIMAN Branch block
should be used. (Switches are described in the Arena Template Development
Overview and Switch Window chapters.)
45
The first Assign module dialog box is shown in Figure 3.15. To define this Assign
module, you insert an assignment, keep the default Type as Variable, specify the
variable name as `Printer Name`_Change, and type the new value of 1.
To define the actual changeover process, you supply the resource name and process
time information to the Process module by referencing the Technician and Changeover
Time operands of the Printer module, as shown in Figure 3.16. You will change the
Action field to Seize Delay Release to specify the logic for seizing and releasing the
specified technician during the changeover. Also, because the changeover time is
defined as an expression, the Delay Type field is changed to Expression so that the
`Changeover Time` operand can be used in the Expression field.
46
3 MODULE-BUILDING TUTORIAL
Change the units for the Delay from the default hours to minutes. It is important to
remember to be consistent with time units between various modules, especially if the
end user does not supply the units information.
The final module in the changeover logic is another Assign module with two
assignments: the printer changeover variable and the last job type printed. To supply
this information to the Assign module, insert two assignments. In the first
assignment, select the Variable (as was done in the first Assign module) for the
assignment type; then enter `Printer Name`_Change for the variable name and 0
for the new value. In the second assignment, select Variable for the assignment type
47
and enter `Printer Name`_LAST for the variable name and Entity.Type for the
new value, as shown in Figure 3.17.
48
3 MODULE-BUILDING TUTORIAL
block does not specify a time unit, such as hours or minutes. The default time units
for modules is set later in this example using the Run > Setup menu.
The Release module needs to release the printer resource. To define this, insert a
single resource in the Release module and define its name to be `Printer Name`, as
was done in the Seize module. Because this is the last module in the logic, the exit
point operand, Next Label, will be referenced in the Next Label field of the Release
49
module. This allows entities to flow from the Printer module to the next module to
which it is connected. Figure 3.19 shows the dialog box for the Release module.
As we mentioned previously, the Enter or Station module can be used to enter into the
module, instead of connecting into the Queue module. We can use a Route module or
Leave module to send entities to another station in the model. In this case, a Next
Activity operand would be required to specify where to send the entity instead of
connecting from the Release module. Additionally, the Stations element would need
to be generated.
50
3 MODULE-BUILDING TUTORIAL
To create the `Printer Name`_Q queue, place a Queues module instance from the
Elements panel of the SIMAN template. In the Queues module, insert a single queue
and name it `Printer Name`_Q, as shown in Figure 3.20.
51
52
3 MODULE-BUILDING TUTORIAL
User View
The next step is to design the user view for the Printer module. When a modeler
places an instance of the Printer module in a window (for example, a model window),
the objects that are added to the window are created in the module definitions user
view window.
The user view for the Printer module will contain six objects:
a module handle,
a displayed operand (the Printer Name),
an entry point to connect logic into the module,
an exit point to connect logic out of the module,
an animation resource, and
an animation global picture.
Arena automatically places the first four objects in the user view window. Every
module is given a module handle that displays the name of the module (by default).
In an instance of the Printer module, a modeler double-clicks on the handle to open
the main dialog box. Arena places the displayed operand in the user view window
after the Printer Name operand was defined with the InUserview property specified
53
as True (in the dialog box design window). The entry and exit points are
automatically placed when an operand is of type Entry Point or Exit Point.
To complete the user view, you will add an animation resource to display the state of
the printer during a simulation run and an animation global picture to display a
symbol during the changeover process.
To open the user view window, select the Window > User View menu item or click
the User View toolbar button on the Template Development toolbar. The user view
for the Printer module should appear as shown in Figure 3.22.
To add an animation resource, place the resource picture (from the Animate toolbar)
above the Printer module handle name and double-click it to open the Animation
Resource dialog box. In this dialog box, specify the resource identifier to be `Printer
Name`, so that the name of the animation resource matches the resource defined
when a modeler uses the Printer module.
The Printer module needs two pictures for the resource to represent the Idle and Busy
states. You specify the resource states and draw the pictures just as is done in Arena
models.
54
3 MODULE-BUILDING TUTORIAL
Figure 3.23 shows the completed resource picture dialog box for the Printer module.
Finally, add an animated global picture to the left of the resource by using the Global
button on the Animate toolbar. Specify the expression to be `Printer Name`_Change
(the variable that is assigned to 1 during a changeover). The trigger value for the
global should be 1, so that the picture you place will show up only when the
changeover is occurring. When the value of `Printer Name`_Change variable is set to
0 (after the changeover is complete), the global symbol will then disappear, since no
55
picture is specified for a trigger value of 0. Figure 3.24 shows the completed global
picture.
The global picture is used instead of animating the `Technician` resource who
performs the changeover. This is done because the technician can be required to
perform changeovers at many different printer modules in the model. The global
symbol will show the picture of a technician only when the changeover is occurring
at that particular printer module.
Panel Icon
The panel icon for a module is the picture that appears in the panel when a template
panel file is attached to a model window (or to the logic window of another modules
definition). It is drawn in a window that is similar to the picture edit window used to
create animation resources, entities, and so on.
56
3 MODULE-BUILDING TUTORIAL
For the Printer module, you can copy the objects from the animation resource
Printing picture (in the user view) to the panel icon window using the clipboard. To
do so, edit the picture associated with the Busy state of the animation resource, select
all of the objects, and copy them to the clipboard. Then, open the panel icon window
by selecting the Window > Panel Icon menu item or clicking the Panel Icon toolbar
button in the Template Development toolbar. The panel icon window contains a
single text object, by default, that displays the module name. To add the graphics
from the animation resource picture, paste them from the clipboard into the panel
icon window. The name of the module, Printer, is initially shown as just the first four
letters, Prin. Double-click the name so you can change this to the whole word
Printer. This results in a panel icon shown in Figure 3.25.
A sample model
Preparing the template for use
You now have completed the definition of a module representing a high-speed printer
station. Its operands allow a modeler to customize certain characteristics of the
printer, the underlying module logic captures the critical aspects of printer operations,
the user view provides an animation to aid modelers in understanding the behavior of
systems that include a printer, and the panel icon completes the package.
57
The Printer module is part of a template panel library. If you have not yet saved your
template panel to a library file, do so now by selecting the File > Save menu item
from the main menu bar or by clicking the Save button from the Standard toolbar.
You might select a name such as HSPrint.tpl for the file.
The next step is to generate a template panel object (.tpo) file that can be attached to
the Project Bar. Select the Check > Generate TPO menu item from the main menu
bar or click the Generate toolbar button. This initiates a check of the template panel
files modules (in this case, just the Printer module) to verify that the operands that
are referenced by objects in the module definition windows are defined in the dialog
box design window, the operands referenced in the user view window are defined,
and so on
If you correctly followed the instructions for building the Printer module, you will
receive a message that the .tpo file was generated successfully. However, if your
module definition contains an error, an Arena error window will be displayed
containing a description of the error. For example, if you mistyped the operand
reference (`Print Time`) in the logic windows Delay module as `Printing Time`, the
error message Referenced operand not defined: `Printing Time` is displayed in the
error window. You can use the Edit button to correct the error; it opens the
appropriate window (in this case, the logic window) and displays the dialog box for
the object containing the error (that is, the Delay module instance). You can type the
correction in the dialog box and select OK, then generate the .tpo file.
Warnings, on the other hand, do not have to be resolved. The .tpo file will be
generated successfully regardless of whether you choose to address the warnings.
This, of course, has nothing to do with the correctness of your module definition; the
.tpo file will still be generated successfully.
After you have successfully generated a template panel object file, you can use the
Printer module in a simulation model to test its logic, animation, and so on. In the
following section, we present a simple model containing a single printer.
58
3 MODULE-BUILDING TUTORIAL
calculate the expected values for statistics such as the percent of time each resource
should be in each of its states (busy and idle), then perform a pilot simulation run and
compare the results to the expected values.
Figure 3.26 shows the completed model; step-by-step instructions for building the
model follow.
GENERATING
CREATE
MODULE
To build the model, begin by opening a new model window. The first two modules to
be placed are Create modules from Arenas Basic Process panel, which is automatically attached. Place two Create module instances in the model; the first will generate
Entity 1 jobs and the second, Entity 2 jobs.
To define the characteristics of the Entity 1 job arrivals, edit the first Create module.
Name the module Entity 1 Jobs and specify that the time between arrivals is
constant with a value of 1 minute. The second Create module instance requires
similar information. Enter a name, Entity 2 Jobs, the time between arrivals is
constant, arriving every 10 minutes. Change the Entity Type field to Entity 2 and
59
change the default first entity creation time from 0.0 to 10 minutes. Figures 3.27
and Figure 3.28 show the Create modules for each entity type.
PROCESSING
PRINTER
MODULE
To use the Printer module you have defined, you need to attach a second panelthe
template panel object file you generatedto the Project Bar. Attach the panel and
select the .tpo file you named earlier (for example, HSPrint.tpo).
Note: If the file you created does not appear in the list, you might have forgotten to
generate the .tpo file after correcting errors. Open the template window and click the
Generate toolbar button to create a template panel object file.
60
3 MODULE-BUILDING TUTORIAL
The template panel should contain a single icon, the panel icon you drew to represent
the Printer module, as shown in Figure 3.29.
Place an instance of the Printer module in the model window and edit it by doubleclicking the Printer module handle. Figure 3.30 shows the completed Printer module
dialog box.
In the Printer module, enter the Printer Name as HSPrinter 1. This will
automatically create a resource named HSPrinter 1 and will place it on the list of
resources. It will also provide the information to the Seize and Release modules in the
underlying logic. This name will provide names for the queue (HSPrinter 1_Q) and
variables HSPrinter1_LAST and HSPrinter_Change.
Enter a name for the Technician field, Changeover Tech. This will also create a
resource and place it on the resource list. The Changeover Tech will be the resource
used in the Process module in the underlying logic for performing the changeover.
Finally, specify that the time to conduct a changeover is .2 minutes and the print
time is .5 minutes.
61
FINISHED
PRINT JOBSTHE
DISPOSE
MODULE
The last part of the model logic is a Dispose module from the Basic Process panel.
Place a Dispose module, which will dispose of the print job entities (both Entity 1 and
Entity 2 jobs).
SIMULATION PROJECT
SETUP MENU
RUN >
Before initiating a simulation run, select the Run > Setup option. The Project
Parameters and Replication Parameters tabs allow you to identify the project
information and to establish a run length. For the pilot run, the length of the
simulation run is arbitrary, since constant times were used for interarrival and delay
times; enter a value of 8 for the Replication Length to simulate an eight-hour
workday. Change the Base Time Units field to minutes, since the entity arrival,
changeover and print times are specified in minutes.
Also, because the start of the simulation will include an extra changeover (to
initialize the printer for printing Type 1 jobs), specify a Warm-up Period of 10
minutes. By starting the collection of statistics at time 10, the simulation run will
include predictable cycles of processing 11 entities in 10-minute cycles (that is, 10
Entity 1 jobs and one Entity 2 job). With a changeover time of .2 minutes, we can
predict that the changeover technician will be used 4% of the time. This is calculated
by two changeovers (at .2 minutes per changeover) every 10 minutes (one
changeover to Entity 1, another to Entity 2) with a total time of .4 every 10 minutes.
With a printing time of .5 minutes, we can predict that the percent of time that the
printer is actually printing should be 55% (that is, there should be 5.5 minutes
11*0.5of printing for every 10 simulation minutes). Remember that the printer
resource is also busy during the changeover (or 4%), so the total Busy time (including
printing and changeover) should be 59%.
VERIFYING
To test the logic for the Printer module, it is useful to step through the simulation
model for the first few events (using the Step button on the Run toolbar), just as you
might do to verify a model built using modules from other template panels.
The first event in the simulation run will be an arrival of an Entity 1 job entity. The
initial value for the variable that stores the last job type processed on the printer is 0,
the default initial value for any general-purpose variable. As you step through the
first entitys processing, you should see a changeover event take place (the animation
picture for the global picture should show the Changeover Tech during the
changeover) to set up the printer to process Entity 1 jobs. After the changeover is
complete, the job type variable changes to a value of 1. The resource picture shows
busy during both the changeover and printing time, as it is not available during the
62
3 MODULE-BUILDING TUTORIAL
changeover time. Figure 3.31 shows the animation of the Printer module during the
first changeover.
Through the rest of the simulation, you should see a cycle of changeovers to Entity 1,
processing of Entity 1 jobs, changeovers to Entity 2, processing of Entity 2 jobs, and
so on. At the end of the simulation, you are asked if you want to view the simulation
results. The Category Overview report is generated to show overview information on
entities, queues, and resources. These reports can be viewed by using the arrows on
the top of the window. Additional reports can be selected in the Reports panel,
including Entities, Queues and Resources reports.
As expected, the printer resource was busy 59% of the time, which included 4% of the
time for changeovers (that is, two changeovers of duration .2 minutes for every 10
simulation minutes); and was idle the remaining 41% of the run. Figure 3.32 shows the
first Resource report showing the Resource Detail Summary from the simulation run.
63
Summary
You have defined a complete simulation module, the Printer module, that captures the
logic associated with a high-speed printing area and permits a modeler to provide
values that define critical characteristics of a printing process. This module can be
used in building simulation models. You can also attach its template panel object file
to the Project Bar and use it in the logic window of another modules definition to
create new template panels.
64
Inside the template window are two entries: the template version and the list of
modules contained in the template panel file. The Module Definitions list is used to
name new module definitions and to identify the existing module whose module
definition windows are to be opened.
Closing a template
If you have finished working with a template panel file, activate the template window
and select the File > Close menu option. If you have made changes to any module
definitions in the template panel since you last saved it, you will be warned in case
you first want to save the changes. When the template window is closed, any module
definition windows that were left open also will be closed.
66
Figure 4.2 Template Development toolbar with Dialog Design, Logic, Switch, User
View, and Panel Icon buttons
For example, to open the logic window of a specific module, highlight the module
name and choose the Window > Logic menu option or press on the Logic Window
toolbar button from the Template Development toolbar.
Whenever possible, Arena will help you locate and correct the error when you click
the Find or Edit button in the Error window. If you click the Find button, the module
definition window containing the object that caused the warning or error will be
activated, and the construct will be highlighted. For example, if you have referenced
an operand Order Size in a modules logic window but did not define the operand,
Arena will give an error message to that effect, as illustrated in Figure 4.3. In this
67
case, you can use the Find button to open the logic window and to locate the module
that referenced Order Size. The Edit button performs the same function as Find, but
in addition to locating the object, it also opens the dialog box of the object that caused
the error or warning so that you can directly correct the error.
Reviewing errors
If you wish to review errors that have already been reported in an Error window,
choose the Check > Review Errors menu option from the main menu bar. This
function only retrieves previously generated error messages; it will not recheck the
template panel. If you have made changes to the template panel since the last time it
was checked, you should recheck the template panel before reviewing errors.
68
modules. To view these reports, choose the Check > Report menu option from the
main menu bar. The report dialog box is opened, as shown in Figure 4.4.
You can elect to view the operand or switch report; you also can show a report for all
modules in the template panel file or for a single module. The requested report(s) is
displayed in a scrollable text window. You can save the contents of the report to a text
file by selecting the File > Save menu item (that appears in the text window), or you
can print the report using the File > Print item.
OPERAND POSITIONS
REPORT
The Operand Positions report contains a listing of all operands, repeat groups, and
dialog boxes in a table providing their display locations in the module dialog box.
Hidden operands are designated with (HD) following their names, repeat groups with
(RG), and dialog boxes with (DB). Figure 4.5 shows a sample Operand Positions report.
69
OPERAND PROMPTS
REPORT
The Operand Prompts report lists the operand names and their associated prompts.
This report should be provided to users of the template for use with the Module Data
Import > Export function.
70
SWITCH
REPORT
The Switch report lists the switch names and definitions, as illustrated in Figure 4.6.
Template options
A number of additional characteristics of template panels can be changed using the
Template Options dialog box. To open it, select the Edit > Template Options menu
71
item from the main menu bar. The Template Options dialog box is opened, as shown
in Figure 4.7.
CHANGING
By default, panels attached to the Project Bar display a label in the panel title bar
corresponding to the file name given to the template panel object (.tpo) file. You can
change the name that is displayed on the panel by typing the new label in the
Template Display Name field and choosing OK.
Note: Changing the display name does not modify the name of the .tpl/.tpo files; it
provides a new text string to be displayed on the top of the panel.
CREATING PRIVATE
TEMPLATE PANELS
You might want to create a template panel that is only to be used in the creation of other
templates, not in the creation of simulation models. We refer to this type of template
panel as a private panel. To make a template panel private, select the Private option
in the Template Options dialog box and choose OK. If you distribute a template panel
containing a module definition that has a private panel attached, you must provide the
private template panels .tpo file as well. The utlarena.tpo file that is distributed with
Arena is a private panel. It is described in The Logic Window chapter.
72
CHANGING
The default display of the modules in the template panel can be changed for each
template you create. You can set the default display to be Large Icons, Small Icons, or
Text only. After attaching the template panel to the Project Bar, you can change this
setting by right-clicking while hovering inside the Project Bar and then selecting the
desired option from the shortcut menu. By default, small and large icons are
displayed in two columns and text-only is displayed in a single column. The display
can be altered by dragging the splitter bar between the Project Bar and the model
window to a different width.
CHANGING
This option determines which help topic will be displayed when the user chooses the
Help button and then clicks on the module in the template panel versus editing the
module and clicking the Help button in the module dialog box. If Separate Help
Items is selected, the two actions described above will display two different help
topics. This might be desirable if you wish to give a brief description in one topic and
more detailed information in the other. If, however, Common Help Item is selected,
performing either action described above will display the same single help topic.
EXPORT SORT
OPTION
The Export Sort dialog box is used to define the order in which modules are written
when a Module Data Export is performed. All modules in the template are contained
in the two lists: unsorted modules and sorted modules. Initially, all modules are in the
unsorted list.
To create a sorted list of modules, highlight each module in the unsorted list that you
wish to be sorted and click the Add button to move the module(s) to the sorted list.
The Remove button moves the highlighted module(s) in the sorted list back to the
unsorted list.
In the sorted list, use the Up and Down buttons to move the highlighted module up or
down.
See the Help topics on the Module Data Transfer feature for more information.
73
module will be required in any model that uses it. If the Required check box is
selected, the module is defined as required.
If a template panel contains a required module and if any module from the template is
placed in a model, at least one instance of the required module must also be placed in
the model. You might use this option to create a module definition that asks the user
for run parameters or that contains special logic that entities can be sent to perform by
other modules in the template.
74
Operand, Arena will enforce uniqueness for the value of that operand. For example, if
a module called Process defines an operand called Process Name as its Name
Operand, a user building a model with multiple Process modules must give unique
Process Names or an error will result.)
Although it is available for both logic and data modules, the Name Operand field is
particularly useful for data modules, mainly in conjunction with the Auto-Create
option of another module. If an operand from another module auto-creates a data
module, the value of the operand is passed to the data modules Name Operand. For
example, if a data module called Resource has a Name Operand called MyName, and
another module called Process has a ResName operand that auto-creates the Resource
data module, the value of the Process modules ResName will be passed to the
Resource modules MyName operand.
The operand specified in the Name Operand field must first be defined in the dialog
box design window. Also, it must be visible (generally, it is displayed in the
spreadsheet) and is non-repeatable. Dialog boxes and Repeat groups cannot be
specified in this field.
.doe/.tpl files even if you make changes to the dialog box design or switch windows
of module definitions. For example, if you have a template panel file, bank1.tpl,
containing modules named Customers, Tellers, ATM, and Manager and a model file,
cityhq.doe, containing instances of the Customers and Tellers modules, you will still
be able to load the model file even if you change the definition of either the
Customers or Tellers module (by changing the dialog box design, logic, switch, user
view, or panel icon windows).
Examples of changes you can make to existing modules include: adding new
operands, removing obsolete operands, changing operand types from Element to
Basic (or from any type to any other type), and changing repeatable data into nonrepeatable data (by removing the repeat group object). We make every attempt to use
the data in existing operands with the new module structure. However, data in
obsolete operands will be discarded.
When you are creating a module and cycling back and forth between editing the
definition and placing the module in a simulation model (to test it), we recommend
that you work with a new model window whenever you modify the template panel
file. Or, if you have established a model window and want to retain the other modules
you have placed, delete the module instances that are from your template panel and
detach the template panel from the Project Bar using the File > Template Panel >
Detach menu item or by right-clicking the panel tab and choosing Template Panel
>Detach from the shortcut menu that appears. Then re-attach the .tpo file after you
have completed your edits to the template panel file.
76
77
The root node of the explorer tree is the modules main dialog box form. This is the
dialog box that is first displayed when the modeler double-clicks an instance of the
module in a model or logic window.
The dialog box form, operand, and repeat group objects that define the structure of the
modules interface are displayed in the explorer tree according to the specified
hierarchical relationships. The objects are displayed using the string format TabIndex:
ObjectName [SwitchName]. The dialog box or repeat group object that is highlighted in
bold indicates which dialog box form layout is currently open in the window.
In the explorer tree, you can select, delete, cut, copy, and paste objects. Objects can
also be dragged and dropped in the tree to change the hierarchical relationships.
Double-clicking an object in the tree automatically opens the dialog box form
associated with the object and selects the object. You can also click the View Dialog
Form button ( ) to perform this action.
78
The functions of dialog box form, operand, and repeat group objects are described
further below.
DIALOG FORM
OBJECTS
A module definition contains one or more dialog box forms to display choices and
accept input from modelers into instances of the module.
By default, every module has a main dialog box form. This is the dialog box that is
first displayed when the modeler double-clicks on an instance of the module in a
model or logic window.
In some cases, there can be too much information to place in a single dialog box. You
can add a new secondary dialog box form object to nest information by placing a
DialogButton control from the Toolbox onto a dialog box forms layout.
OPERAND
OBJECTS
An operand object is an object in the module definition that contains a single value
and (if not disabled or hidden) can be edited with a user interface control by the
template user. For example, in the Stop module of Arenas Advanced Transfer panel,
there is an operand for the modules Name field, and an operand for the modules
Conveyor Name field.
You can add operand objects to a module definition by placing user interface controls
such as a TextBox control or CheckBox control from the Toolbox onto a dialog box
forms layout.
Hidden operands. In some cases, it is not desirable for a particular operand to be
visible to the modules user. The operand exists solely to store a piece of data for
internal logic purposes and thus is always hidden from the user. The HiddenOperand
control from the Toolbox is used to add a hidden operand object to a module
definition.
REPEAT GROUP
OBJECTS
A module can provide the capability for defining a list of multiple (or repeatable)
fields. For example, the Assign module from Arenas Basic Process panel allows you
to assign values to a list of variables, attributes, and so on. The Assignments list box
in the Assign module is known as a repeat group.
You add repeat group objects to a module definition by placing a RepeatGroupDialog
or RepeatGroupTable control from the Toolbox onto a dialog box forms layout. Use
the RepeatGroupDialog control if the repeating data is to be entered using a
secondary dialog box form. Use the RepeatGroupTable control if values for a single
repeatable field are to be entered into a table.
79
The Toolbox
The dialog box design windows Toolbox (located on the left side of the window)
provides an interface for adding user interface controls (for example, text boxes,
combo boxes, or dialog box buttons) and static graphics (for example, text, lines, or
group boxes) to a dialog box form layout.
To add a control from the Toolbox, first click the desired control in the Toolbox
section. Then, hover the pointer over the location in the dialog box form where the
control is to be placed. The pointer will change to a cross hair with the selected
controls icon displayed at the top and right of the cross hair.
Controls are placed in the dialog box form by one of three methods. Once your
control has been selected, you can click the form to place the control wherever you
wish. Alternatively, you can click and drag to size the control as you place it (the
control is placed when the button is released). The third placement method is to dragand-drop directly from the Toolbox to the dialog box form.
80
Control Name
Description
Text
GroupBox
Line
TextBox
ComboBox
RadioButtonGroup
CheckBox
DialogButton
RepeatGroupDialog
RepeatGroupTable
DateTimePicker
DatePicker
TimePicker
FilePicker
HiddenOperand
81
OPENING
A module definitions dialog box design can contain more than one dialog box form.
For example, in addition to the main dialog box, the interface can include one or more
secondary dialog boxes accessed using DialogButton or RepeatGroupDialog
controls.
To open the dialog box form associated with or containing a particular object in the
module definition, double-click that object in the Operand Explorer. Or, alternatively,
82
you can select an object in the Operand Explorer and use the View > Dialog Form
menu item or click the View Dialog Form button ( ).
Double-clicking a DialogButton or RepeatGroupDialog control in a dialog box form
layout will also automatically open the dialog box form associated with that control.
RESIZING
To resize a dialog box form, first click anywhere on the form to select it. Then, click
and drag one of the sizing handles that appear on the border of the form. The sizing
handles look like small black boxes, and the pointer turns into a double-headed arrow
when you point at the handle.
You can also enter specific dimension values for a dialog box form by selecting the
form and then editing the Height and Width properties in the Design Properties grid.
ARRANGING
Controls that have been placed onto a dialog box forms surface can be selected,
moved, and resized.
Multiple controls can be layered, aligned, equally sized, or spaced using menu
commands available from the Format menu.
You can also use the View > Grid, View > Snap to Grid, and View > Snap to
Objects menu commands to enable/disable grid and snapping features that help
manage control locations on a form.
LOCKING
When designing the user interface on a dialog box form, you can lock the controls once
they are positioned correctly so that you do not inadvertently move or resize them.
Use the Format > Lock Controls menu item to lock a dialog box forms controls.
Locking controls prevents them from being dragged to a new size or location on the
forms surface. However, you can still change the size or location of controls by
means of the Design Properties grid.
83
At the top of the Design Properties grid is a combo box. This combo box displays a
list of all objects contained in the dialog box form that is currently open in the
window. The combo box can be used to change the object selection.
The lower portion of the Design Properties section displays a textual description of
the currently selected grid property.
84
85
an edit box with a down arrow at the right side of the box. Clicking the arrow reveals
a drop-down list from which the user can select an item.
A ComboBox control has two parts: a prompt label and a combo box. You can select,
move, and resize the prompt label and combo box separately on the dialog box form
using the mouse.
In the Design Properties grid, the Text property defines the prompt label of the combo
box. The default string value for the combo box is specified in the Value property.
The data type that can be entered as a value is specified by the DataType property.
The list of items displayed and available for selection in the combo boxs drop-down
list are defined by the List property. Set the PickFromListOnly property to True if you
want to limit a users input to what is on the list. Otherwise, a user will be able to type
choices not on the list into the combo boxs edit field.
In the module definition, operand object values can be referenced (by enclosing the
operand objects name in back quotes, for example, `Operand1`) in the Value
property of another operand, in an animation object in the user view window, in a
field of a module instance in the logic window, or in a switch definition string.
86
87
alternatively, you can select the object in the Operand Explorer and use the View >
Dialog Form menu item or click the View Dialog Form button ( ).
Double-clicking a RepeatGroupDialog control in a dialog box form layout will also
automatically open the dialog box form associated with that control.
88
selecting either a different day in the current month or by using the calendar arrow
keys to specify a different month.
To edit the time portion of the control, click the hour, minute, second, or AM/PM text
in the edit box. Then type or use the arrow keys to change a value.
In the Design Properties grid, the Text property defines the prompt label for the
DateTimePicker control. The default date and time value for the control is specified
in the Value property. If the Value property is not specified, then the controls default
value will be the current date/time.
In the module definition, operand object values can be referenced (by enclosing the
operand objects name in back quotes, for example, `Operand1`) in the Value
property of another operand, in an animation object in the user view window, in a
field of a module instance in the logic window, or in a switch definition string.
89
90
Using operands
Many of the user interface controls described in the previous section, such as the
TextBox, ComboBox, and CheckBox controls, represent operands in the modules
dialog box design. An operand is a single value that is important for module display
or logic purposes.
This section describes in more detail some operand-related properties and issues.
91
An operands name can be used (by enclosing the name in back quotes, for example,
`Operand1`) to reference the operands value in the Value property of another
operand, in an animation object in the user view window, in a field of a module
instance in the logic window, or in a switch definition string.
The maximum length of a name is 31 characters, and it must be specified using
alphanumeric characters.
Figure 5.5 The Logic Properties dialog box for an operand object
In the Logic Properties dialog box, the operands Type is specified as Basic (the
default), Element, Property, Entry Point, or Exit Point.
BASIC
OPERAND
A basic operand does not serve a special purpose and is stored with each module
instance. Basic operands are often used to pass values to the logic window or the user
view window or to control the display of other operands by being used in switch
definitions.
92
ELEMENT
OPERAND
OPERAND
An operand can be used to represent the value of a SIMAN elements property, such
as the capacity type of a resource.
If the Type is specified as Property, then the following fields are displayed in the
Logic Properties dialog box:
Element OperandName of the operand that is defining the SIMAN element in this
module of which this property operand is associated.
Element TypeType of SIMAN element defined/referenced by the Element
Operand. This field cannot be edited; it is provided for information only.
Property NameName of the element property that this operand defines, selected
from a list of valid properties associated with the Element Type.
Read OnlyThis option is available for HiddenOperand controls only. If enabled, the
hidden operand will read into its value the current value of the element property with
which it is associated. The elements property value will NOT be overwritten by the
operands default Value entry. The default value defined for the hidden operand will
93
only be written to the elements property value if that property has yet to be defined
(that is, the current value of the property is null).
For more information on the use of elements and their properties, see Chapter 10.
ENTRY POINT
OPERAND
An entry point operand defines an entry point of entity flow into the module. When
you define an entry point operand, a graphical entry point (box shape) is placed in the
modules user view for the operand so that the exit point of another module can be
connected to it.
In most cases, a module will contain only one entry point operand. A module
designer should use caution when using multiple entry points to avoid logic errors.
Repeatable entry points are not permitted. If an operand is defined as an entry point,
the operands DataType property is automatically restricted to the Label data type.
The specified Entry Type should match the entry type of the module field that
references the operand from the logic window; for example, if a queue entry label is
referencing this operand, then the Queue type should be selected.
EXIT POINT
OPERAND
An exit point operand defines an exit for entity flow out of the module. When you
define an exit point operand, a graphical exit point (triangle shape) is placed in the
user view window for the operand so that it can be connected to the entry point of
another module.
There can be multiple exit point operands in a module definition. For example, you
can design a module that performs an inspection-type process, in which case, two exit
points can be required, one for entities that pass inspection, and one for entities that
do not pass inspection. Exit points also can be repeatable, as can be seen in the
Decide module of the Basic Process panel. A repeatable exit point (that is, the exit
point operand is associated with a repeat group object in the module definition) has a
different graphical representation in the user view than a single exit point, as can be
seen in Figure 5.6.
94
The specified Exit Type should match the exit type of the module field that references
the operand from the logic window; for example, if a queue exit label is referencing
this operand, then the Queue type should be selected.
ENTRY/EXIT POINT
A graphical connection between an entry point operand and an exit point operand can
be made only if the connection is valid. Connection validation is done based on the
Entry Type and Exit Type of the operands. The most common entry and exit type used
is Standard. See the Tables appendix topic Entry or exit point types on page 275 for
more information on entry and exit types and connection validation. The Tables
appendix also provides information on where various entry and exit types are used.
When a graphical connection is made between modules, Arena automatically creates
and stores unique entry and exit label information. An entry label value, usually an
integer with a dollar sign (for example, 123$), is created for the module to which the
entity is to be sent. The module from which the entity is sent is given that same exit
label value.
Entry and exit point operands can have switches attached to them. If an entry or exit
point has a switch and the operand is switched out, the operands field will not appear
in the modules dialog box and the graphical symbol will not appear in the modules
user view.
Entry and exit point operands can also be hidden operands (that is, added to the
module definition using HiddenOperand controls). In this case, a field corresponding
to the operand is not visible to the modeler in the modules dialog box; however, the
graphical representation of the entry or exit point still appears, offering a way to
connect into and out of the module.
Note: If an entry or exit point is defined as hidden, there is no way to reference that
operand if the module is used hierarchically.
95
In some of the examples in this guide, we have made the entry and exit points hidden
for the sake of the example and sample dialog box. These example modules then
cannot be used as the first or last modules in a logic window, as there is no way to
reference the label or next label field.
AUTO-CREATING
MODULES
The Auto-Created Module feature allows a module designer to specify that a new,
separate data module will be added automatically to the model using this operand.
When used, the operands value is passed to the data modules Name Operand. The
auto-creation only takes place for non-blank values of the operand.
For example, if a data module called Resource has a Name operand (specified in the
Module Definition dialog box) called Name, and another module called Process has a
Resource Name operand that auto-creates the Resource data module, the value of the
Process modules Resource Name will be passed to the Resource modules Name
operand, as long as Resource Name is not blank.
In general, operands that use the Auto-Created feature should be defined as Elementtype operands. This ensures that the data module has at least two references in the
model, as data modules with only one reference are normally purged (that is, deleted)
from the model (see below). Also, they should be set to use the Reference option, as
opposed to the Define option, as the data module itself should be set to use the Define
option.
To use the Auto-Created feature, click the available Settings button for module autocreation in the Logic Properties dialog box, then specify the Template Name and
Module Name of the module you wish to create from this operand value. You should
avoid hard-coding path names in the Template Name field.
Note: You must specify the Template Name, even if the module to be auto-created is
in the current template. Also, you should remember to change the Template Name
and/or Module Name fields if you later rename either.
Purging auto-created data modules. Data modules that are auto-created by other
modules are automatically deleted if the following conditions apply: 1) the module
that caused the auto-creation is deleted, 2) the module that caused the auto-creation is
edited to have a blank value for the operand that specified the auto-creation (or the
operand is switched out), or 3) the auto-created module has only one reference in the
model. This automatic deletion occurs only if the data module has not been manually
edited by the user. If any modification has occurred, the module will remain.
96
The value stored in another operand object can be referenced by entering the
operands Name enclosed in back quote characters (`). When a modeler places and
edits an instance of a module containing referenced operands, all operand values are
updated dynamically as editing takes place.
For example, suppose that a module contains operands Server Name and Server
Resource, and the Server Resource operands Value property has been specified in the
dialog box design as `Server Name`_RES. Any changes to the operand Server Name
will be reflected in the Server Resource field. Thus, if the value of Server Name is
specified as Fred, the value of Server Resource will be Fred_RES.
If a referenced operand is switched out, then its value is null.
COMBINING
When designing a module, you can define a repeat group object that contains a set of
repeatable operands and then have those repeating operand values combined into a
single, merged value string. The single value will be returned if you enter the repeat
group dialog box or repeat group table object name in back quote characters (`) in the
Value property of an operand.
This topic is discussed in more detail in the Using repeat groups section on
page 103.
97
SPECIAL
REFERENCEABLE FUNCTIONS
A set of special functions is available that will provide, in an operands default Value,
information such as the unique identifier of a module instance or the number of
repeating sets of data stored in a repeat group.
A special function is referenced by entering the function name enclosed in carat
characters (^). Table 5.2 summarizes the available special functions.
Some of the functions that are available can be used to access information entered
into the Project Parameters and Replication Parameters tabs of a models Run >
Setup dialog box. Typically, this might be done in a module designed to overwrite the
standard simulation parameter defaults and reorganize the options for the end user. If
a module that writes out different values for the Project and Replicate elements is
placed in a model, those values will override any settings made in the Run > Setup
dialog box.
Table 5.2 Special functions
Function
Description
^Module_ID( )^
^Module_Name( )^
^Module_Number( )^
98
Function
Description
^Analyst_Name()^
^Use_Costing()^
^Use_Entities()^
^Use_Resources()^
^Use_Tanks()^
^Use_Queues()^
^Use_Transporters()^
^Use_Conveyors()^
^Use_Processes()^
99
100
Function
Description
^Use_Stations()^
^Use_ActivityAreas()^
^Number_of_Replications()^
^Replication_Length()^
^Initialize_System()^
^Initialize_Statistics()^
^StartDateTime()^
^Warm_up_Period()^
Provides access to the length of time for the warmup period, as taken from the Replication
Parameters page.
^Terminating_Condition()^
^Hours_Per_Day()^
Function
Description
^Base_Time_Units()^
DATA TYPES
101
DATA TYPES
In addition to the standard data types, Arena provides some SIMAN data types. These
are more restrictive than the standard data types, and are generally used when an
operand value can be taken from a fixed set of values.
For example, if you were building a module that defined a conveyor and wanted to
define the conveyor as either accumulating or non-accumulating, you could use the
data type ConvType since it is defined as having two values: Accumulating and
Nonaccumulating.
For more information on available SIMAN data types, see Data Types on page 264.
102
Hidden operands
In some cases, it cannot be desirable for a particular operand to ever be made visible
to the module user. The operand exists solely to store a piece of data for internal logic
purposes and thus is always hidden from the user. The HiddenOperand control
from the Toolbox can be used to add a hidden operand object to a module definition.
Entry and exit point operands can be defined using the HiddenOperand control. In
this case, there will not be a field to specify an entry or exit label in the modules
dialog box. However, a graphical representation of the connection point will still
appear in the modules user view, allowing users to connect into or out of the module.
In the Design Properties grid, the Value property of a hidden operand must be
specified (except entry and exit points); otherwise, there is no way for information to
be stored in the operand.
103
Figure 5.7 The Logic Properties dialog box for a repeat group object
In the Logic Properties dialog box, the repeat groups Type is specified as Basic or
Property.
BASIC
REPEAT GROUP
A basic repeat group does not serve a special purpose and functions merely as an
interface for the modeler to access a set of repeatable operands.
PROPERTY
REPEAT GROUP
A repeat group can also be used to write values to a SIMAN elements property. The
property must be a repeatable property. For example, a repeat group can be used to
104
write values to the Members property of a SETS element (as multiple members can
be defined in a set), but not the Capacity or Schedule property of a RESOURCES
element.
If the Type is specified as Property, then the following fields are displayed in the
Logic Properties dialog box:
Element OperandName of the operand that is defining the SIMAN element in this
module of which this property repeat group is associated.
Element TypeType of SIMAN element defined/referenced by the Element
Operand. This field cannot be edited; it is provided for information only.
Property NameName of the element property that this repeat group defines,
selected from a list of valid repeatable properties associated with the Element Type.
For more information on the use of elements and their properties, see the chapter
Elements on page 183.
105
For example, Figure 5.8 shows two repeat group objects (Nurses and Number
Needed) with a single operand object connected to each. It would not be permitted to
reference both of these operands from the same repeat group tuple in a module
instance in the logic window, as is shown in Figure 5.9.
Figure 5.9 Hospital module illustrating incorrect use of repeat group referencing
106
107
In the module logic in the logic window, suppose the template developer wants to
have the string DISCRETE(0,0, CumulativeProb1, CustomerType1,
CumulativeProb2, CustomerType2, ) written into the field of a module instance,
where CumulativeProb1 is the first cumulative probability value specified in the
repeat group, CustomerType1 is the first customer type specified in the repeat group,
and so on.
In the module field in the logic window, the template developer enters the expression
string: DISCRETE(0,0`Customer Arrivals`).
To place separators (that is, commas) between the probability and value pairs of
operands and between entries of the repeat group, the template developer adds two
hidden operands named PairSeparator and TupleSeparator. Both of these hidden
operands have a , character entered into their Value property.
The RepeatGroupIndex property then defines an index for an objects value with
respect to other object values contained in the same repeat group and is specifically
108
used for determining value order when combining a repeat groups repeating
operands into a single, merged value string.
In this example, the operand values should be merged in the following order:
TupleSeparator
CumulativeProbability
PairSeparator
CustomerType
In the Text property of any object. In the text string, type an ampersand character
(&) immediately in front of the letter you want to be the accelerator key (for
example, Process &Name to set the N to be the accelerator key).
109
It is a good design practice to identify unique accelerator keys in any single dialog
box.
110
111
You interact with a logic window in the same way as you work with an Arena model
window. To define the module logic, you attach template panels to the Project Bar,
select modules, place instances of them in the logic window, connect the module
instances, and provide values to their operands.
As you read this chapter, keep in mind that module instances can be placed in
simulation models (that is, in model windows that will be stored as Arena .doe files)
or in module definitions (that is, in logic windows of modules that will be stored in
.tpl files). For simplicity, in most places we refer to the modelers placing instances of
modules in simulation models. However, you should remember that instances can be
placed in logic windows, as well.
112
The remaining sections of this chapter discuss the use of logic windows to define the
simulation logic associated with a module definition. We do not present a discussion
of the general interface for building Arena models. We assume that you are familiar
with the steps involved in building models using Arena template panels.
The next section of this chapter highlights the major differences between model
windows, which you use to build and run simulation models, and logic windows of
module definitions. Following this, we present three sections that describe the main
features of logic windows that are specifically related to defining modules: referencing module operands, connecting modules in the logic window, and switching
module instances in the logic window. The next two sections of the chapter discuss
topics of particular interest in designing module logic: defining module trace and
using the modules from the Arena utility template (utlarena.tpo). We close this
chapter by summarizing rules and presenting guidelines that relate to defining
module logic.
113
114
115
So, Arenas logic window, by default, does not display the animation objects that are
part of a module instance.
If you place a module instance in the logic window that contains animation objects in
its user view, these animation objects are placed in the logic window; they are not
displayed by default. If you want to view the animation objects, you can use the View
> Layers menu item to turn on the display of the various animation object types (for
example, levels and resources). In the logic window, we retain the animation objects
that are part of module instance user views so that a module that is transferred
between a model window and a logic window (using the clipboard) remains
complete.
116
to use and enclose the name between back quote characters (`). We refer to this as
referencing an operand.
Note: Operand names are not case-sensitive. Embedded spaces are permitted.
Operand references also are allowed in the Value property of an operand definition
and to define certain data for animation objects. The Dialog Design Window and
The User View Window chapters describe the locations in which operand
references can take place for operand default values and animation objects,
respectively.
An operand reference dictates that when an instance of the module is created, the
actual value of the field containing the reference is to be obtained from the modelers
entry in the modules dialog box. Your selection of a modules operands and the
references to these operands in the logic window dictate the flexibility provided to a
modeler for customizing the data and behavior of the module as it is used to represent
different circumstances.
To illustrate a simple module reference, consider an Order Entry module that contains
an instance of a Create module (from the SIMAN Blocks panel). In this module, you
might want to ask the modeler to define the batch size of the order and the interarrival
time for the orders to enter the system. To do so, you could define two operands in the
dialog box design window: Time Between Orders and Order Size. In the Create
module instance that you place in the module definitions logic window, you would
reference the Time Between Orders operand to obtain the interval for the Create
module and the Order Size operand to obtain the batch size, as depicted in Figure 6.2.
Each time a modeler places an instance of the Order Entry module, new values can be
provided for the Time Between Orders and Order Size operands. For example, one
instance of the Order Entry module might specify a Time Between Orders operand
value of UNIF(5,10) and an Order Size of 10. In the underlying logic, these values
would pass to the Create module so that the Interval field in the Create module would
have a value of UNIF(5,10) and the Batch Size field would have a value of 10.
Note: If a module containing operand references is pasted into a model (.doe) window,
the fields containing references are restored to their default values.
117
CONCATENATING
When referencing an operand, you also can type text before or after the reference. For
example, you can have another module in your template called Order Verification,
where a delay occurs to check orders. In this module, you might want to design the
interface so that a modeler enters the percentage of incomplete orders (that is, a value
in the range 0 to 100) into an operand called Percent Incomplete. If this value is to be
used in the condition of a Branch module (from the Blocks panel), which requires a
probability value (that is, in the range 0.0 to 1.0), you would need to divide the entry
118
of the modeler by 100. To do so, you can combine the operand reference (`Percent
Incomplete`) with text (/100), as shown in Figure 6.3.
In this case, the value entered by the modeler for the percentage of incomplete orders
will have the text /100 appended before the information is passed to the logic that
defines the Branch module. For example, if a modeler entered a value of 14 for the
percentage field in an instance of the Order Verification module, the actual
information supplied to the Branch module would be 14/100 (through the Order
Verification module definitions logic window).
COMBINING
Multiple operands can be referenced in the same field of a module instance in the
logic window. In this case, the values of the operands are concatenated to form the
complete value for the logic windows module instance. Also, text can be
interspersed with operand references (as described previously).
For example, in the original module, Order Entry, you might decide to use a uniform
distribution for the interarrival time of orders and ask the modeler for the minimum
119
time and the maximum time. In this case, the Time Between Orders operand would be
removed from the module. In its place, you could define two operands for your
module: Min and Max. To reference these operands, you would change the operand
reference in the Create module (Interval field) to be UNIF(`Min`,`Max`), as shown
in Figure 6.4.
In an instance of this Order Entry module, the modelers entries for the minimum
time and maximum time replace the operand references (`Min` and `Max`,
respectively) in the Create module.
Another case in which it is useful to reference multiple operands in a single field of a
module is when a set of operands is provided to the user, but these operands are
controlled by switches so that only one operand will be switched in for any given set
of user inputs. (See the chapter The Dialog Design Window for a description of
attaching switches to operands. See The Switch Window for a discussion of
switches and their definitions.) To define the logic window field for this type of
reference, type each operand name enclosed in back quotes, one after the other.
120
In the Order Verification example module, perhaps you would like to design the
module to offer the modeler a choice of specifying the time to check the order as
either the name of an attribute that stores the time or as a particular time. This
information will be used in a Delay module (from the Blocks panel). The modules
dialog box might contain a selection for the Time to Check with options of Time or
Attribute. If the modeler selects Time, an operand named Time is displayed; if the
modeler selects Attribute, an Attribute is displayed.
Figure 6.5 shows the dialog box for an instance of the Order Verification module with
the Time to Check selected to be Time. Figure 6.6 shows the same dialog box with
Attribute selected.
In Figure 6.5, the Time operand is displayed so that the modeler can define the time
as a value (for example, 2.5). The dialog box in Figure 6.6 allows the modeler to
define the time to check an order by selecting (from a drop-down list of attributes) an
attribute that stores the value.
121
In the logic window for the Order Verification module definition, the Process Time
field of the Delay module would be defined as `Time``Attribute` (with no
intervening spaces). The switched-in operand would supply its value to the Delay
module; the switched-out operand would have no value (that is, blank). The dialog
box for the Delay module instance in the logic window is shown in Figure 6.7.
MULTIPLE
REFERENCES TO AN OPERAND
When you define a module, you can reference the same operand as many times as is
appropriate. As we mentioned earlier, operand references can be made in three places
in a module definition: in the Value property of an operand object in the dialog box
design window, in the logic window (as described in this chapter), and in animation
objects in the modules user view. The same operand can be referenced from all three
windows and/or from multiple objects in a window.
For example, if a resource is required to perform the order verification process, an
operand Clerk Name would be added to the module. This would provide the name of
the resource in a Process module. (We will discuss adding the Clerk Name to the
Process module in Referencing non-repeating operands from a repeat group on
page 129.) If a count is collected in the Order Verification module to record the
number of incomplete orders each clerk detects, the Clerk Name operand in the
122
module might be referenced in many places. The default value of another module
operand that defines the counter name might reference the Clerk Name to form the
base of the counter name (for example, `Clerk Name`_Cnt). The Process module
instance in the logic window contains the reference to Clerk Name to define the
resource. And in the user view, a resource animation object could reference Clerk
Name for the resource identifier.
123
124
Figure 6.9 Record module instance dialog box with reference in Type field
Note: We recommend that you establish the values of any fields that might be
switched out before providing a value to the field controlling their display.
TRANSFER
If you want to allow entities to be transferred into your module by a station transfer
(that is, route, transport, or convey to a named station), the modules logic window
must contain a module instance that defines a station, such as the Station module
from the Blocks panel. For example, in the Order Verification module discussed
previously, we might want to design the module to allow entities to be routed to an
order verification desk, which is represented in our module as a station. In the logic
window, we could add a Station module prior to the Process module and reference a
new operand, Order Desk, to establish the name of the station, as shown in Figure
6.10.
125
Any entities sent to an instance of the Order Verification module by station transfer
would enter at the Station module instance (in the underlying logic) and then proceed
to the Process module.
To specify that entities should be transferred out of your module by a transfer module,
place a module instance that permits station transfer (for example, a Leave or Route
module from the Advanced Transfer panel or Route from the Blocks panel) and
reference the appropriate operands of your module. When a modeler uses an instance
of your module, entities will proceed through the logic you have defined in the logic
window. When an entity arrives at a module in the logic that has a station transfer, the
entity will be sent to the module instance in the simulation model that defines the
destination station.
DIRECT
TRANSFERS
In the case of direct transfers, special operand types are used to allow graphical
connection of modules to depict the flow of entities through the model. The
mechanism for defining these entry point and exit point operand types is described in
The Dialog Design Window chapter. When an operand is defined to be an entry
point or exit point operand, a symbol is placed in the modules user view to allow
modelers to connect modules together. The operand also can be displayed in the
module dialog box (often with a prompt of Label for entry points or Next Label for
exit points).
126
In the logic window, you identify the module instance that corresponds to an entry
point of your module by placing an operand reference in the appropriate field of the
instance. For example, if you wanted to permit either direct transfer or station transfer
into the Order Verification module, you could define a new entry point type of
operand called Desk Label. In the logic window, this operand would be referenced by
the Label field in the instance of the Station module (from Blocks panel), as shown in
Figure 6.11.
Figure 6.11 Reference to entry point operand in logic window module instance
Iin the dialog box in Figure 6.11, both methods of transfer into the Order Verification
are allowed: station transfer and direct transfer. A modeler using an instance of the
Order Verification module has the choice of transferring entities by routing to the
station defined by the Order Desk operand or connecting other module exit points to
the entry point defined by the Desk Label operand.
Note: We recommend that if you have entry and/or exit point operands in a module,
you always display the operands in the module dialog box (that is, do not make them
hidden). If you define the entry or exit point operand to be hidden, it is not possible for
an instance of the module to reference entry point or exit point operands if it is used in
the logic window of another modules definition.
127
If you use the Arena template in the logic window of a module (Basic Process,
Advanced Process, and Advanced Transfer panels), the direct transfer method of
entering a module is more complicated. The reason is because the label or next label
fields in all of these modules are hidden from the user (not available for operand
values to reference), even though the entry/exit points are visible. (Please see the
chapter The Dialog Design Window on entry or exit points for more information.)
In order for entities to actually enter the module using a label reference, a module
with a label (from the Blocks panel) must be the first module into the model logic.
Typically, the Delay module from Blocks can be used with a duration value of 0.0, as
shown in Figure 6.12.
Figure 6.12 Module logic with delay: 0.0 module to access Desk Label entry point
label
128
129
130
an Attribute Assignments repeat group (with a tuple opened in the figure to show
its operands) containing an Order Attribute operand that defines the attribute to be
assigned and a Value operand that specifies the assignment value, and
a Next Activity operand that determines the activity to which the entity will be
sent.
131
To define the logic for this module, the Create, Assign, and Route modules from the
Blocks panel can be used. In the Create module instance, the Batch Size and Interval
fields reference the Order Size and Time Between Orders operands, respectively, as
seen originally in Figure 6.2. Similarly, the Destination field in the Route module
references the Next Activity operand of the Order Entry module. These two
references are of the type described previously, where a non-repeating field in a
module instance contains a reference to a non-repeating module operand.
So that modelers using the Order Entry module can define as many attribute
assignments as they would like, the Assign module instance in the logic window must
accept all of the values of the Order Attribute and Value operands that are defined in
each instance of the Order Entry module. To establish this tie between the repeat
group in the Assign module instance and the repeating operands in the Order Entry
module, you insert a single repeat group tuple in the Assign module and reference the
Arriving Orders module operands, as shown in Figure 6.16.
132
Each time a modeler inserts a new repeat group tuple in an instance of the Order
Entry module, a corresponding tuple is inserted in the Assign module instance in the
logic window. Similarly, as a modeler edits the data (for example, deleting tuples or
changing values), the edits are reflected in the Assign module instance.
MULTIPLE
133
The new Order Verification module contains a repeat group with operands named
Operator Name and New State. In the logic window, an instance of a Seize module is
used to define the logic for seizing the required resources. The operand reference in
the Seize module instance is shown in Figure 6.17.
To assign new state values to the resources after they are seized, an Assign module
instance is placed in the logic window. In the Assign module, since a pair of repeating
operands is to be referenced, the same technique is used to create the operand
references. A single tuple is inserted, and the two module operands (Operator Name
and New State) are referenced, as shown in Figure 6.18.
134
A modeler using an instance of this Order Verification module might insert one tuple
with values Line A Refill Operator and Filling Incomplete Order for the resource and
state operands; a second tuple might have operand values Line A Supervisor and
Checking Order Problem. The resulting contents of the logic window would contain
two repeat group tuples in the Seize module instance (since the Order Verification
module has two tuples), with the names of the two resources filling the Resource
fields. Similarly, because the Assign module in the logic window contains references
to repeating operands, two assignment tuples would be created with the pairs of
values for the resource and state to be assigned.
One limitation is placed on references to repeating operands. If you are referencing a
repeating operand from a repeating field in a module instance, you cannot reference a
repeating operand that belongs to a different repeat group. This rule applies both to
the particular field containing the reference and to other fields in the same repeat
group of the module instance.
For example, in the Assign module instance shown in Figure 6.18, the operand
references would be invalid if the Resource Name and New State operands belonged
to different repeat groups in the module definition.
135
COMBINING
OPERANDS
It is possible to combine references in a repeat group such that some of the fields
obtain their values from repeating operands and some reference non-repeating
operands. In this case, the repeating operands define how many tuples are to be
created in the logic window module instances repeat group, and the value of the nonrepeating operand is included in each tuple.
For example, if you want to modify the Order Verification module to seize an
arbitrary number of resources, but you want to assign all of the resources the same
new state value, you would use the same logic window as described previously (Seize
and Assign with the same operand references). However, the Order Verification
module would contain a repeat group with just the Operator Name operand. The New
State operand would be non-repeating (that is, in the modules main dialog box).
A modeler using an instance of this Order Verification module might define that two
resources are required (Line A Refill Operator and Line A Supervisor), and might
provide a value of Checking Incomplete Order for the new state field. In the logic
window, two repeat group tuples would be created in each of the Seize and Assign
module instances (because both reference the repeating Operator Name operand). In
the Assign module instance, the state value, Checking Incomplete Order, would be
placed in both assignment tuples.
136
repeating exit point in the dialog box design window causes a repeatable exit point
object to be placed in the user view for your module, as shown in Figure 6.19.
For example, if you were creating a Sort Orders module representing an order-sorting
process, you might want to place a Process module in your logic window to represent
the process of examining the order to determine to which filling line it should be sent,
then a Branch module that dispatches orders based on conditions defined by the
modeler. The operand definitions for your module might include operands for the
Sorter Name and Sort Time, as well as a repeating set of operands defining the
conditions dictating the selection of sortation linesCondition Type (a radio button
group with options of If and Else), Condition, and the Sort Line Label exit point
operand. Figure 6.20 shows a sample dialog box containing these operands.
137
In the logic window, the Process module references the Sorter Name and Sort Time
operands. The Branch modules Branch Types repeat group references the three
repeating operands of the sortation line moduleCondition Type (referenced by
clicking the right mouse button on the If/With/Else/Always radio button group field),
Condition, and Sort Line Label. This Branch module dialog box is shown in Figure
6.21. Each time a modeler defines a new tuple in an instance of the Sort Orders
module, a new tuple is created in the underlying Branch module and a new exit point
is created both in the Sort Orders module instance and in the underlying Branch
module.
138
Figure 6.21 Branch module referencing repeating operands including exit point
operand
Repeatable modules
The repeatable module feature allows you to create a new set of logic for each entry
or tuple in a repeat group. The interface and basic procedure is described as follows.
In the logic window of a module, place a new box-shaped object (the module
repeater) and associate it with a repeat group object in the dialog box design window.
Place any modules that you wish to be repeating inside the module repeater. Connect
the module repeater to other logic as you would any other module.
To place a module repeater, open the modules logic window and choose the Object
> Module Repeater menu option. Move the cross-hair pointer into the logic window
and click once to place a corner of the box. Move the pointer and click again to place
the opposite corner of the box.
Once placed, the module repeater has connection points on both the inside and the
outside of the box. The outside connection points are used to connect the box to nonrepeatable logic external to the box, while the inside connection points are used to
connect the repeatable modules inside the box to the module repeater itself.
139
To use the module repeater, place the modules that you wish to be repeating inside the
box. The box can be resized to allow for adequate space. Connect any modules you
place inside the box just as you would if they were outside the box. Make sure that at
least one of the group of modules inside the box is connected to a connection point
inside the box.
Note: If you have trouble connecting modules either to or from the module repeater, go
to the View > Snap menu and turn off the Snap option.
To associate the module repeater with a repeat group in the dialog box design
window, double-click an edge of the module repeater to open the Module Repeater
Settings dialog box (shown in Figure 6.22.) Type the name of the associated repeat
group or choose it from the list at the Repeat Group Name prompt.
Next choose the type of repeating logic. There are two basic types: logic that repeats
in parallel, or logic that repeats serially.
Parallel repeating logic specifies that each repeat of the logic is independent and
represents a different logical path. If you wish to define the repeating logic in parallel,
you must connect a repeatable exit point of a module (such as Branch or Duplicate) to
the entry point of the module repeater. Example 1 shows how to define parallel
repeating logic.
Serially repeating logic specifies that each repeat of the logic is connected, one after
the other, in the same logical path. Example 2 shows how to define serially repeating
logic.
Finally, choose the Number of Alternate Outputs required. This option is used to
provide additional logic paths out of the module repeater. For example, if a module
inside the module repeater has more than one exit point, you might wish to connect
one exit point to the main logical path that exits the module repeater and another exit
point to an alternate exit point of the module repeater. Example 3 shows how you
might use the Number of Alternate Outputs field.
For the purpose of the next three examples, hidden entry and exit points have been
used in the incoming and outgoing modules so that the module can be connected to
other modules in a model window. Please see The Dialog Design Window chapter
for more information on entry/exit points and hidden operands. It is typically not
recommended that entry/exit points be hidden, as there is no way to reference them in
a hierarchical module.
140
The dialog box design windows Operand Explorer in Figure 6.23 reflects the Repeat
group Route Times with operands Type and Route Time.
Figure 6.23 Operand Explorer in the dialog box design window with repeat group route
times
141
Figure 6.24 shows the Sample dialog box with entry of three different types and route
times.
Figure 6.24 Sample dialog box with types and route times
The resulting model code is shown in Figure 6.25. The Assign module is repeated
once for each tuple in the Route Times repeat group.
142
In Figure 6.27, the dialog box design windows Operand Explorer reflects repeat
group processes with operands Process Time and Associated State.
Figure 6.27 Operand Explorer in dialog box design window with repeat group
processes
143
The sample dialog box in Figure 6.28 shows the entry of three different Process
Times and Associated States.
Figure 6.28 Sample dialog box with different Process Times and Associated States
The resulting model code is shown in Figure 6.29. The Assign and Delay blocks
repeat once for each tuple in the repeat group.
144
The dialog box design windows Operand Explorer in Figure 6.31 shows the repeat
group Types and Quantities with operands Type and Quantity.
Figure 6.31 Operand Explorer in dialog box design window with repeat group Types
and Quantities
145
Figure 6.32 shows the sample dialog box with entry of two different Types and
Quantities.
Figure 6.32 Sample dialog box with entry of two different Types and Quantities
The resulting model code is shown in Figure 6.33. The Duplicate block repeats once
for each tuple in the repeat group.
146
147
Module connections
Using graphical connections
In a modules logic window, you place and connect module instances from other
template panels. The interface for creating module connections is the same as that in
model windowsyou can draw a graphical connection between the exit point of one
module and the entry point of another module (using the Module > Connect menu or
the Connect toolbar button), or you can type the module label in the dialog boxes of
the two modules (if using the Blocks panel).
When working in a logic window, the graphical method of connecting modules is
preferable, since Arena generates unique module labels for graphical connections. If
you were to type a specific label for an entry point to a module in the logic window,
you effectively would limit that module to only a single placement in any model
(since module labels must be unique throughout an entire model).
For example, if you are creating a printing operation module, you might place a
Delay module from the Blocks panel in the modules logic window. If you were to
define the Label field of the Delay module to have a value of BookBinding, the
printing operation module could only be placed once in any model (either directly
from your template or indirectly from any template that has an instance of your
printing operation module in its logic window). If a second instance of the printing
operation module was placed in a model, Arena would generate an error (the label
BookBinding is defined more than once), because the placement of two modules with
the same label creates an ambiguityif an entity is sent to the BookBinding label,
there is no rule to define which of the two modules is intended. Because of this, we
strongly recommend that you do not enter values for labels to establish connections in
the logic window.
148
instance with two connections emanating from its exit point, one to a Record module
and the other to an Assign module. Be sure that the multiple modules that are
connected to a single module have switches attached so that logically only one will be
generated in the underlying model.
149
that require trim, the time to trim parts (assuming it is the same for all part types), the
stamping machine name, and the stamping time. Figure 6.35 shows this examples
module dialog box.
The dialog box design windows Operand Explorer for this module, shown in Figure
6.36, defines a Trimmed Part Types repeat group containing the single operand
defining which part types are to be trimmed (Part Type). The three operands that
complete the dialog box request the time to trim, name of the stamping machine, and
time to stamp.
Figure 6.36 Operand Explorer in dialog box design window of Corrugated Metal
example
150
In the logic window, a Branch module from the Blocks panel can be used to
determine whether entities should be sent to the trim process (represented by a simple
Delay module). Each time the modeler creates a new tuple in the Trimmed Part Types
repeat group, a new exit point will be created in the Branch module; all of these exit
points will be connected automatically to the Delay module. To define this in the
logic window, the first tuple inserted into the Branch modules Branch Types repeat
group is defined as shown in Figure 6.37the condition type is selected to be If, and
the condition compares the Part Type operand (which is repeating in the corrugated
metal module) with the value of an entity attribute PartType (which can have been
initialized at an order entry module).
The connection point for the first Branch module tuple is connected to the Delay
module so that all entities that have a value of the PartType attribute equal to one of
the part types defined by the modeler will delay for the trim time; the Delay module is
connected to the stamping process Process module. To complete this module
definition, a second tuple is inserted in the Branch module with a Branch Type equal
to Else. This exit point is connected directly to the Process module representing the
stamping process. The complete logic window is shown in Figure 6.38.
151
152
To remove a switch that is attached to a module, select the module and select the
Detach option of the Object > Switch menu. If you want to attach the same switch to
a number of modules or detach switches from multiple modules, select the desired set
of modules (either by using SHIFT+Click to select a group of individual modules or
by box-selecting all modules in a region of the window) and click the Attach Switch
toolbar button or select the appropriate option of the Switch menu.
Note: A module in the logic window can have only a single switch attached to it. If you
have complex conditions involving multiple switches, define a new switch in the switch
window with a definition representing the conditions and attach this switch to the logic
window module.
153
154
Figure 6.40 Logic window with switched modules offering two alternatives
Tthe Station module has two connections to its exit point. While this is invalid in a
model window (that is, each exit point in a model window must have exactly one
connection), logic windows permit multiple connections because switches can
effectively delete connections, depending on the values of the modules operands.
As the module designer, you must ensure that the switches you have defined and
attached to module instances in the logic window will permit exactly one connection
to be active (that is, not switched out) from each exit point in any possible use of your
module. In modules with switches, it is very helpful to test carefully each alternative
of model logic (based on the variety of possible values for module operands) to
ensure that the logic window is correct.
There are no restrictions on the complexity of modules that are to be switched in a
logic window. The overnight package collection point example selects one of two
alternatives, where each alternative includes only a single module. Any alternative
might involve many modules with additional switches that provide additional
options. The definition of modules such as the Leave module (Advanced Transfer
panel) might involve dozens of switches controlling the display of operands in the
module dialog box and the module instances in the logic window.
A slight extension of the package collection point example might be to ask the
modeler whether customers arriving at self-serve collection points might balk (that is,
not send the package at that collection box) based on some condition. The logic to
represent this new option appears in Figure 6.41.
155
Figure 6.41 Logic window for Package Collection module with customer balking option
A new logic path has been added emanating from the Station module. In this path, a
Decide module has been placed with two exit points: one connecting to a new Delay
module and one connecting directly to a Route module (for balking customers). Each
of the new modules has a new switch, SwBalk, attached. This switch might be
defined based on a new check box operand, Balk Customers, having a value of Yes.
The Balk Customers operand, in turn, could be switched in only when SwSelf is true,
since the module should ask whether customers are to balk on a condition only for
self-serve collection boxes.
To verify that the module is correctly defined, each exit point containing multiple
connections should be traced to ensure that exactly one of the connections will be
switched in for any value of the SwSelf, SwStaffed, and SwBalk module switches.
The only module containing multiple connections to a single exit point is the Station
module. By tracing the switched-in modules for each of the combinations of switch
values (on and off for each of the three switches), you can ensure that your module
will generate valid module logic in any possible use.
156
windows. The following sections describe the modules contained in this template
panel and illustrate their use.
HIDDEN
MODULE
One module in the utlarena.tpo template panel file, the Hidden module, is designed
specifically to aid in defining logic windows that contain switches on module
instances. This module does not generate any model logic or elements. (See the
chapter Elements for information on elements.) It contains entry points and exit
points to allow other modules to connect in and out of it.
The hidden module is used for cases where one or more of the alternatives to be
switched in/out in the logic window do not generate any model logic. In these cases, a
connection must be formed to show the desired flow of logic (because you cannot
attach a switch to a connection directly), but there is no module instance to which a
switch can be attached to indicate when the alternate path should be taken.
For example, lets return to the overnight package-collecting module illustrated in
Figure 6.40. We might add an option for the self-serve types of package offices to count
the number of customers who dropped off packages. A switch, SwCount, could be
defined to be true if the modeler indicated that this count should be collected. Another
switch, SwNoCount, could be defined to be true when no count is to be taken.
The desired logic for this additional option, shown in Figure 6.42, includes an
instance of a Count module after the Delay only when the modeler indicates that the
count is to be collected (that is, SwCount is True). On the other hand, if no count is to
be taken, the second connection from the Delay module should send entities directly
to the Route module. However, if a connection were added directly from the Delay to
the Route module, the resulting logic would have two valid connections if the
modeler chose to count customers (that is, the connection to the Count module and
the one to the Route module). To prevent this, the hidden module is added between
the Delay and the Route so that any use of this module can have only a single
switched-in connection from the Delay modules exit point.
157
158
MODULE
The Conditional Assignment module can be useful in cases where the system you are
representing has an unknown number of conditions that dictate the values that should
apply for a particular activity.
For example, in the module representing the overnight package office, you might
want to allow modelers to specify different conditions to be tested about self-serve
customers and to define individual delay times based on the condition. To represent
this in the logic window, you could use a Conditional Assignment module that
references the condition operand and assigns an attribute (DelayType) to the delay
time specified by the modeler for each condition. The Conditional Assignment
159
module connects to the Delay module, which uses the DelayType attribute (rather
than an operand of the module) to specify the delay time. This logic is shown in
Figure 6.44.
160
For example, in the package office module described in the previous section, you
could add trace messages indicating when entities leave the module. If the trace
messages are to be different for each type of module (that is, self-serve or staffed),
individual Trace modules are added with the appropriate switches attached, as shown
in Figure 6.45.
Modules cannot contain instances from the same template panel or any template
that has the template being edited attached to it.
Entry and exit points of module instances in the logic window should be
connected or should reference a module operand. (The entry point operand for
modules that create entities and queue balk exit points are exceptions; they can be
unconnected in a logic window.)
If a module instance in the logic window has any required fields, you must supply
values to them. If a required field contains a simple reference to an operand of
your module, the referenced operand should be defined as required in your
modules dialog box design window. If the required fields value is defined using
multiple operand references, you should ensure that under any valid combination
161
of values entered by a modeler (for your module), the field in the module instance
cannot be blank.
162
If you reference an operand in a module instance, you should ensure that the data
type of the operand that is referenced matches or is more restrictive than the data
type of the field in the module. For example, you should not define an operand
with an expression data type for a resource capacity field that accepts only integer
values.
If a particular entry or exit point is referenced more than once in the logic
window, switches should be attached to those modules containing the references
so that it is only possible for one of the modules to be switched in.
The user view windows drawing region is identical to a model windows region; for
example, its home view displays objects in the same size as a model windows home
view. Other information that relates to object sizes, such as text proportions or grid
spacing, is also defined in the same world units used in model windows. (See online
Help for additional information about model windows.)
Note: If you change the zoom level of the user view, remember to return to home view
to ensure that objects you have placed in the user view are sized as you want them to
appear in the default view in a model window.
163
Module instances
When a module instance is placed in a model or logic window, the objects that are in
the module definitions user view window are copied into the destination (that is,
model or logic) window. The location where the modeler clicked to place the module
is used to position the upper-left corner of the module handle. Other user view objects
are arranged around the handle in the relative sizes and positions defined in the user
view window.
After being placed in a model, the objects in the modules user view can be
repositioned individually by the modeler. Also, the characteristics of draw and
animation objects can be changed; these objects can be cut, copied, pasted, deleted, or
duplicated as well. For example, a queue animation object that accompanies the
Process module (from Arenas Basic Process panel when the action includes a seize)
could be changed from its default line type to a point type, or could be repositioned
relative to the module handle location.
Note: When the handle of a module instance is moved, user view objects are
relocated with the handle. In the user view window of the module definition, however,
relocating the handle does not move the user view objects.
Module-related objects
When defining modules, certain objects are added to the module user view window
automatically. These are:
Figure 7.2 shows the user view of an instance of the Process module from the Basic
Process panel. It includes a handle (Process #), entry point, exit point. When the
module handle name, Process #, is changed, the handle of the module takes on that
new name as well. See The Module Text Options dialog box on page 165 for more
information.
164
The module handle font, font style, and font size are set at the default size so that all
Arena modules have a consistent interface for accessing module data. By clearing the
Use Default Font check box, however, you can change the module handles size,
style, and font. Additionally, the line, text, and fill color can be changed using the
Color toolbar.
Figure 7.3 Module Text Options dialog box (with Text String or Operand Name used for
module handle)
166
You cannot attach a switch to an entry or exit point object in the user view window. You
can, however, attach a switch to the operand in the dialog box design window that
defines this object. The switch that is attached to the operand will control whether the
graphical entry or exit point object is displayed in the modules user view.
Displayed operands
Operands that have been defined in the dialog box design window with the
InUserView property set to True will automatically create a text object (referred to as
a displayed operand) in the user view window. (See the chapter The Dialog Design
Window for information about defining displayed operands.) In the user view
window, the text object representing the displayed operand is shown as the name of
the operand. After a modeler places the module in a model or template logic window,
the text changes to show the value of the operand.
You can locate the displayed operand anywhere in the user view window. You cannot
cut or copy displayed operand objects to the clipboard, delete them from the user
view window, or group them with other objects.
For example, Figure 7.5 shows a user view window for a Train Arrivals module
containing two displayed operandsYard and Interarrival Time.
167
As is the case with entry and exit point operands, you cannot attach a switch to this
type of object in the user view window. Instead, whether it appears in a model or
logic window it is controlled by the switch (if any) attached to its associated operand
in the dialog box design window.
168
Also, draw objects (discussed in the next section) can be grouped; however, they
cannot be grouped with the module handle.
You can attach switches to draw objects in the user view. If a switch is attached, the
object will appear only if the attached switch is evaluated to True.
If you display a repeatable operand in the user view, the user view will show the
operand name (as is the case for non-repeatable operands). When a modeler uses the
module, Arena will place the values of the operands in a vertical list. If a third,
repeatable operand, Characteristics, is added to the module in Figure 7.5 and a
module instance is created with values Number of Cars, Schedule, and Number of
Engines, the display of the instance appears as shown in Figure 7.7.
Because the length of an operand value typically is unknown (that is, modelers might
provide short or long values), displayed operands in the user view typically are
placed vertically.
169
Draw objects
Draw objects (boxes, lines, circles, and so on) can be placed in the user view window
from the Draw toolbar. These are added in the same way that you would add draw
objects to a model window. Choose the desired object from the toolbar and place it in
the window. The hidden and visible layers can be used to control whether or not
objects defined in a modules user view will appear during a simulation run. (See
online Help for more information about these layers.)
Draw objects can be cut, copied, pasted, duplicated, and deleted. If objects are cut or
copied to the clipboard, you can paste them into any window that supports draw
objects.
After placing a module in a model or template logic window, a modeler can change
the characteristics of, or delete, draw objects that were provided by the module user
view.
Draw objects placed in the user view window can have attached switches (see User
View switch use on page 173). If so, the object will appear only if the attached
switch is evaluated to True.
Animation objects
Animation objects (for example, queues, stations, or levels) can be placed in the user
view window from the Animate toolbar. These are added in the same way that you
would add animation objects to a model window. Choose the desired object from the
Animate toolbar, type the required information into the objects dialog box, and place
the object in the user view window.
Animation objects can be cut, copied, pasted, duplicated, and deleted. If animation
objects are cut or copied to the clipboard, you can paste them into any window that
supports animation objects.
When editing an animation object, you can specify that it is named by using the value
of one or more module operands. To create this tie between the module dialog box
and an animation object, you create an operand reference by enclosing the operand
name in back quotes (`) . For example, if you are defining a module in which a count
is collected with operand Counter Name defining the name of the counter, you might
place an animation variable in the user view to show the value of the count during the
simulation run. The Expression entry in the variable dialog box could be defined as
NC(`Counter Name`), as shown in Figure 7.8.
170
Operands can be referenced only in the entries in animation object dialog boxes listed
in Table 7.1. Other animation object characteristics can be defined in the user view,
but cannot reference module operands.
Also, if an animation object is part of a module instances user view, the entry listed
in Table 7.1 cannot be changed (that is, is grayed out) by the modeler, with the
exception of repeatable values (that is, plot expressions, entity values, resource states,
or global values).
The operand references in the animation objects follow the guidelines described in
Referencing module data on page 116 of The Logic Window chapter.
References to repeating operands are not permitted in animation objects, including
the cases where the animation object allows a repeating set of values (that is, plot
expressions, entity values, resource states, or global values).
If an animation object containing operand references is copied from the user view
window to the clipboard and is pasted into a model window, the entries containing
references are changed to blank (because, after being pasted, the animation object is
no longer part of a module). If the animation object has a switch attached to it, the
switch is removed if the object is pasted into a model window.
171
Animation objects placed in the user view window can have attached switches (see
the next section). If so, the object will appear only if the attached switch is evaluated
to True.
Table 7.1 Animation object characteristics that permit operand references
172
Animation Object
Queue
Identifier
Storage
Identifier
Parking Area
<none>
Seize Area
<none>
Station
Identifier
Intersection
Identifier
Route
<none>
Segment
Identifier
Distance
Identifier
Network
Identifier
Variables
Expression, Format
Clocks
Date
Levels
Histograms
Expression
Plots
Entity
Value
Transporter
Identifier
Resource
Identifier, State
Global
Expression, Value
For example, if the module illustrated in Figure 7.8 also contained a switch named
SwCount, this switch can be attached to the variable in the user view window so that
the animation variable is displayed only if a count is being collected (that is, the value
of SwCount is True). In this case, after the switch is attached, the variables name (as
displayed in the user view window) changes to show the switch name enclosed in
square brackets, as shown in Figure 7.9.
173
To detach a switch from an object, highlight the desired object and choose the Object
> Switch > Detach menu option.
To attach a different switch to an object that already has a switch attached, attach the
new switch using the procedure described above. The former switch will
automatically be detached and the new switch attached.
If multiple objects are selected (that is, through a box selection or by using
CTRL+Click to select individual objects), the attach and detach switch actions apply
to all of the selected objects.
174
To control the appearance of the module or its underlying simulation logic, you
define switches (using the switch window) and attach them to the objects in the
module definitions other windows (dialog box design, logic, user view).
As its name implies, a switch can have a True (on) or False (off) value. If an
object has a switch attached, the object is displayed or included in simulation logic
only if the switch condition evaluates to True.
The use of switches permits you to capture a wide range of variations of some process
or system element in a single module, rather than needing to define separate, similar
modules for each variation. Switches also can be used to control the information
presented to modelers so that only the relevant fields are displayed.
For example, if a module representing an automated teller machine (ATM) has an
option for the modeler to indicate whether deposits are accepted at the ATM and a
modeler selects No, there might be no reason to ask the modeler to define the
processing time for deposits. In this case, a switch can be defined to turn off the
deposit process time operand (that is, remove it from the dialog box) for any ATM
that doesnt accept deposits. The corresponding logic for processing deposits also
could be removed by attaching the switch to the appropriate module instances in the
modules logic window.
In this chapter, we present the mechanisms for defining switches and for interacting
in the switch window. The Dialog Design Window, Logic Window, User View
Window, and Elements chapters describe the effects of switches on each type of
module construct and the mechanism for attaching switches to objects in a module
definition.
175
Defining switches
A switch consists of a name and a definition. The switch definition is a conditional
expression that evaluates to True or False. It can contain operand names, operand
values, or other switch names.
A switch can be attached to any of the following objects in a module definition:
operand, repeat group, and dialog box objects in the dialog box design window
using the SwitchName property;
module instances in the logic window; and
animation and draw objects in the user view window.
A switch can be attached to numerous objects of the same or different types. For
example, a switch named SwCount might be attached both to an operand in the dialog
box design window and to an animation variable in the user view window. When the
switchs conditional expression is evaluated, these logic, operand, or animation
objects will either become part of the model (if the switch is True) or will be ignored
(if the switch is False).
Switches are defined by opening the modules switch window and specifying the
switch name and definition. A modules switch window is opened by clicking the
module in the template windows Module Definitions list, then selecting the Window
> Switch menu item or pressing the Switch Window button on the Template
Development toolbar.
To create a new switch definition, click the Add button in the switch window. In this
dialog box, you specify the switch name and the definition (that is, the condition
under which the switch is True) and click OK. Figure 8.1 shows the switch window
with a single switch definition (SwDeposits).
It is sometimes useful when duplicating, copying, pasting, or deleting switch
definitions to perform the operation on multiple switches. You can select multiple
switches by using SHIFT+click to select a range of switches or by using
CTRL+click to add individual switches to the selection set.
176
Switch names
A switch name can consist of an unlimited number of alphanumeric characters. When
switches are referenced or are attached to module objects, the switch name is not
treated as case-sensitive.
Note: In a module, the operand, repeat group, dialog box, and switch names must be
unique.
Switch definitions
Switch definitions are conditional expressions that rely on the values of other
operands or switches.
When referencing an operand, the operand name must be enclosed in back quotes (`);
to compare the operand to a value, the value must be enclosed in double quotes ().
For example, to define a switch that is true if the operand Accept Deposits (which
might be displayed as a check box in the module dialog box) has a value of Yes, the
condition would be `Accept Deposits`==Yes (as shown in Figure 8.1).
To use the value of another switch in a definition, type the name of the switch (that is,
no special characters are necessary to identify the switch name).
Table 8.1 summarizes the valid references for operands, values, and switch names.
Table 8.1 Switch reference types
Referenced Item
Enclose In
Example Definition
Operand
Back quotes (` `)
`ResName`==Machine
Value of operand
Double quotes ( )
`State`< >Busy
Switch
177
To define the conditional expression for a switch definition, you can use one or more
standard logical or mathematical comparison operators, summarized in Table 8.2.
The operators are listed in the order of evaluation of a switch condition.
Table 8.2 Switch definition logic operators
Logical
Operator
Meaning
Use
Example
==
is equal to
Compare op to value
`Setup
Required`==Yes
<>
is not equal to
Compare op to value
Counter`< >None
not
!SwSetupRequired
&&
and
||
or
>
is greater than
Compare op to value
`Number`>14
>=
is greater than or
equal to
Compare op to value
`Weight`>=100.3
<
is less than
Compare op to value
`Time`<10.5
<=
Compare op to value
`Tables`<=20
178
you can view a summary of all switch definitions together rather than needing to edit
each switch individually.
Switches are displayed in the switch window in alphabetical order.
Circular references are not allowed. This means that a switch cannot reference
another switch that uses the first switch in its definition. For example, if switch
SwBind is defined to be SwLooseleaf &&`Format`==3 Ring, then the switch
SwLooseleaf cannot contain a reference to SwBind.
If a switch references a repeatable operand, the switch will have a separate value
for each tuple (that is, each set of values for the repeating operands) of the
modules repeat group. (See the chapter The Dialog Design Window for a
discussion of repeat groups and tuples.)
For example, the Basic Process panels Assign module allows repeated
assignments to different types of elements such as Attributes, Variables, or
Pictures. The assignment repeat group contains a set of operands with switches
that ensure that only the appropriate operand will be displayed, based on the
selection of the assignment type. One switch is true when Attributes is selected,
one is true when Variable is selected, and so on
When the Assign module is used in a model, the first tuple might assign an
attribute; the second, a picture; and the third, a variable. The modules switches
are evaluated for each individual tuple. In the case of the first tuple, the switch
that is true when Attributes is selected has a true value, but the switches that are
based on the assignment type being Variables, Pictures, and so on, are false. In the
179
second tuple, the Pictures switch is true and the others are false. And in the third
tuple, the Variables switch is true.
180
Because the value of the switch changes depending on which set of repeating
operands (that is, tuple) you are examining, a switch that references a repeatable
operand should be attached only to operands in the same repeat group.
A switch cannot reference an entire repeat group (that is, switches only can
reference operands).
A switch cannot refer to a specific tuple of the repeat group (for example, the fifth
assignment in a module).
The panel icons are defined in a panel icon window using drawing objects such as
lines, boxes or circles. To open a modules panel icon window, select the module in
the template windows Module Definitions list, then choose the Window > Panel
Icon menu item or click the Panel Icon Editor button on the Template Development
toolbar.
181
10 Elements
In many cases, the modules that we build represent a component of a system that
contains one or more objects. For example, we might build a workstation module that
represents an in-buffer, a worker, a machine, and an out-buffer. These objects in the
system have certain characteristics and behaviors that we must capture in our module.
For example, the in-buffer must maintain an ordered set of parts to be processed on
the machine.
Arena, through its base language SIMAN, provides a complete set of modeling
objects called elements that can be used directly for representing the components of a
system. For example, Arena provides a queue element that maintains an ordered list
of items and has operations for inserting entities into and removing entities from the
queue and for searching and sorting the members of the queue.
By using Arenas built-in elements in your modules, you gain access to predefined
modeling objects that represent complex physical components in your system. Elements are important in module building because they provide a powerful mechanism
for representing standard objects in a module such as workers, equipment, conveyors
or carts.
Although elements referenced in a module are frequently used to represent physical
components of systems such as machines and workers, in some cases, the elements
are used to represent information such as process plans, failure patterns or shift
schedules. These data elements provide a structured method for representing system
information. Arena provides operations that access the data contained in these
elements based on the element type. For example, an entity can undergo a route
operation that references a sequence element, in which case, the sequence element
specifies the destination station and the assignments to be made to entity attributes
and model variables.
The real power of the elements lies in the built-in functionality that is automatically
provided by Arena and SIMAN for each element type. When you incorporate an
element in your module, the element has a standard set of characteristics, called
properties, that describe the element and a standard set of operations that can be
applied to alter its state. For example, if you employ a resource element, it has a
standard set of data properties that describe it (capacity or shift pattern, operating
states, failure and repair characteristics, and so on) as well as standard operations that
can alter its state (such as Seize, Release, or Preempt). Likewise, a conveyor element
has standard properties that specify its characteristics (such as path or speed) and
standard operations that change its state (such as Stop, Start, or Convey).
183
Although there are a few key element types that are commonly used in building
modules, there are a total of more than 40 different element types built into the
SIMAN language to represent the wide range of system components that you might
encounter. The complete set of element types and their corresponding properties and
operations are documented in detail in the online help. Table 10.1 lists some of the
properties and operations associated with six frequently used elements.
Table 10.1 Some elements and sample properties and operations
184
Element
Properties
Operations
Resource
Name
Capacity or Schedule
States (Busy, Idle, and so on)
Failure Pattern
Costing and Efficiency
Seize
Release
Preempt
Alter
Conveyor
Name
Path Segments
Velocity
Cell Size
Status
Type
Access
Convey
Exit
Start
Stop
Transporter
Name
Number of Units
Type
Velocity
Acceleration
Deceleration
Initial Unit Characteristics
. (Position, Status, Size)
Allocate
Request
Move
Transport
Free
Halt
Activate
Queue
Name
Ranking Criterion
Shared Indicator
Queue
Insert
Search
Remove
Station
Name
Associated Intersection
Recipe
Convey
Route
Transport
Station
10 ELEMENTS
Element
Properties
Operations
Variable
Name
Initial Value
Assign
Arena provides a complete set of modules for manipulating the state of an element.
The Arena template provides modules for referencing and using the most common
element types such as stations, resources, conveyors, and transporters. The modules
in the Basic Process panel provide access to these elements at the workstation or
workstation component level. For example, the Process module represents an
operation in which multiple resources can be seized, held for a specified time, and
then released.
The Advanced Process panel provides lower-level operations from which complex
operations can be built. For example, the Seize module in the Advanced Process
panel allows you to seize units of one or more resources, and the Release module
allows you to release one or more resources. By combining these modules with other
modules, very complex resource logic can be represented. The modules in the
Advanced Transfer panel provide access to the elements that are used to represent
material transfer devices, such as conveyors, carts or AGVs.
In some cases, you might need access to additional operations (for example, scanning
a condition) that are not directly supported by the Arena template or you might need
to use one or more elements that have no direct support in the Arena template. In this
case, you can use modules from the SIMAN template to define and manipulate these
elements. The elements in SIMAN are defined using the modules in the Elements
panel; the operations for manipulating these elements are provided in the modules
that are included in the Blocks panel. The modules in the Elements and Blocks panels
provide complete access to all element types and operations supported by the SIMAN
language.
185
module logic can specify operations that act on the modules elements such as seizing
a resource or transporting to a destination station.
In a module definition, you can create an element in two ways. First, in your
modules logic window, you can place instances of modules that themselves create
elements. For example, if you are defining a baking-line module and you place a
Process instance in the logic window that specifies a resource named Oven, an Oven
resource element will be created when a modeler uses your baking-line module. You
can think of this mechanism as defining elements through Arenas hierarchy.
The second mechanism for creating elements is to place an operand in the dialog box
design window of your module definition and, in the operands LogicProperties
property, specify the operand as an Element. In this case, you need not place a module
instance in the logic window to cause the element to be created. Instead, by
specifying that the operands type is Element, you indicate that the value of that
operand in an instance of your module is to be taken as the name of an element. You
can think of this approach as defining elements from element operands. See The
Dialog Design Window for a description of the LogicProperties property and
operand types.
The two approaches for defining elements, including their merits, will be discussed
further in Defining elements from hierarchy on page 190 and Element operands
on page 190.
Element lists
When a modeler creates an element (for example, a resource), it is added to a list that
is stored as part of the simulation model. These element lists are stored separately by
element type. Module instances can display these lists so that, in many cases, a
modeler can select an existing element from a list.
For example, if you build a model containing Enter, Process, and Leave modules
from the Arena template, you might define the station name in the Enter module to be
Print Jobs. When you do so, a station element named Print Jobs is added to the
simulation model and to the list of station elements. In the Process module, you might
specify that entities require processing with a resource named Joe, adding an element
to the resources list. When you then edit the Leave module, if you require a resource
for transferring out of the module using a station transfer, you will find the resource
Joe and the station Print Jobs already on the resources and stations lists, respectively.
The use of element lists in module definitions can make a template much easier for
modelers to use by allowing them to select the elements they already have defined in
their model, rather than needing to retype the name of the element. You can further
186
10 ELEMENTS
tailor the lists presented to a modeler by using element sublists. This concept is
described in Element operands on page 190.
Properties
Elements have characteristics that we refer to as properties. A particular element that
has been created in a simulation model, such as a resource named Oven, has its own
set of values for its properties. One resource element (for example, Oven) can have a
capacity of 12, while another resource element (for example, Bake Prep) can have a
capacity of 1.
You can allow a modeler to define the property values for a particular element by
using one of two mechanisms in the module definition that are similar to those
available for creating elements. In the first case, you place a module instance (such as
a Resource module from Elements panel) in the logic window of your module
definition. In this module instance, you can specify that element properties are
defined through references to your modules operands (for example, a resource
capacity operand). In this case, your module gives a value to the property through
hierarchy.
The second mechanism for defining a property is to place an operand in the dialog
box design window of your module definition and, in the operands LogicProperties
property, specify the operand as a Property. You then specify which operand in the
module definition defines the element with which the property operand is to be
associated (for example, the operand defining the resource, if the property is a
resource capacity). This approach has the benefit of correctly displaying an elements
property even if it is defined by more than one module instance in a simulation
model. We discuss this approach further in Defining Property operands on
page 194.
187
188
10 ELEMENTS
then define that operand as an element operand, the drop-down list of the operand
will show all of the elements that have been added to the model (of the type of
element defined by the operand).
A basic or property operand that is a ComboBox control also can present a list of
elements. (See The Dialog Design Window for descriptions of the user interface
controls that can be added to module dialog boxes.) In this case, the drop-down list
displays the elements that have been created in the model so that a modeler can select
from those elements already defined. However, if a new entry is made in a basic or
property operand, this new value is not added to the list of elements.
For example, in the Match module from the SIMAN blocks panel, the Match
Expression field displays a list of attributes. However, if a modeler enters a value,
such as PalletSize, in the Quantity field that does not match the attributes that already
have been defined, a new attribute element is not created. This is because the Match
Expression field actually accepts any type of expression value; however, it is
common to use an attribute for this field.
The display of element lists in non-element operands often is useful when the data
type of the operand is expression (to allow mathematical operators, and so on), but
where a particular element type often will be used. In the template reference guides,
we list the element type in parentheses if the list is for display only or in square
brackets if the operand defines an element.
As the template designer, you can create sublists to further restrict the scope of the
element list provided to a modeler. For example, if you have an operand that defines a
resource, you can identify a sublist associated with that operand; for example,
Operators. When a modeler defines a new element by typing a name into the resource
field, the element is added to the Operators sublist. Other modules in your template,
or in other templates, might also display the Operators sublist of resource elements.
In this case, the modeler is presented with a list of only those resources elements that
have been specified as Operators. Other resource sublists, such as Supervisors, CNC
Machines, and Setup Operators, could exist to collect additional classifications of
resource elements.
The sublists information in Element operands on page 190 provides additional
information about element lists. These lists can result in much more rapid model
building for a modeler, as well as decreasing the likelihood of the modeler entering
incorrect information.
189
The remainder of this chapter (with the exception of the Switches and elements
section) relates to using element and property operands in module definitions.
Element operands
Defining element operands
As we described in the introduction, in the module definitions dialog box design an
operand can be identified as an Element type, which indicates that the value of the
operand in an instance of the module will be used to name an element.
In the dialog box design window, all operand objects have a LogicProperties property
available in the windows Design Properties grid. This property provides a dialog box
for specifying characteristics of the operand related to its purpose in the modules
interface and logic.
In the Logic Properties dialog box, the operands Type can be specified as Element.
190
10 ELEMENTS
When the Type is specified as Element, the following fields are displayed:
Element TypeThe type of SIMAN element that the operand will define or
reference. Select the desired type from the list. The operand's value will then be used
as the name of the element of the selected type (for example, an operand with value
Operator will define or reference a SIMAN element with name Operator).
SublistThe sublist partition of elements (by Element Type, such as resource) of
which this operands element is to be a member. For example, the element type
Resources might have sublists for Operators and Machines. Sublists are described in
more detail in the next section.
Define/ReferenceIndicates whether the element that is created by this operand
should be defined for the simulation model or whether it only should be referenced. If
Reference is selected, some other module must define the element that is referenced
by this module. Typically this is used when incomplete property information is
definable in a module.
191
Sublists
Sublists allow partitioning into subsets the element lists that are presented to a
modeler. There is a standard sublist for each element type that is named the same as
the element (for example, RESOURCES). Elements that are created by instances of
modules from the Arena and SIMAN templates are added to this sublist.
Note: If the sublist field is blank in the operand definition, any element that is created
by an instance of the module will be added to the master list of elements, which
presents a list of all elements of the particular element type (that is, the combination of
all elements defined as members of all sublists).
In Figure 10.1, the sublist in the operands Logic Properties dialog box is specified as
Inserters. Thus, each time a value is entered into that operand in a module instance,
a new element (that is, a resource) will be created and added to the Inserters sublist of
resource elements.
By using sublists in your template design, you can present the various elements
represented in your template in as many different groups or classifications as you
would like. Each classification (that is, sublist) is a name associated with a particular
element list.
For example, a template containing an Automatic Insertion module with the operand
in Figure 10.1 might also have a module for soldering operations that defines solder
resources. Sublists could be created that place the Automatic Insertion resource
elements onto an Insertion sublist and the soldering operation resource elements onto
a Solder sublist. When a modeler wants to select an Automatic Insertion resource to
perform an operation, the drop-down list presented in the dialog box would present
only those resource elements that have been defined to be inserters (that is, have been
placed on the Inserters sublist). The solder resources would not be displayed in the
drop-down list of inserters.
Note: In any model, the sublists are shared across modules from different template
panel files. For example, if a module from one template adds an element to the
Inserters resource sublist, another module from a different template also could add
elements to the same sublist.
192
10 ELEMENTS
193
Property operands
Defining Property operands
In the dialog box design window of a module definition, in the LogicProperties
property of an operand object, the operands Type can also be specified as Property.
When the Type is specified as Property, the following fields are displayed in the Logic
Properties dialog box:
Element OperandName of the operand that is defining the SIMAN element in this
module of which this property operand is associated. In Figure 10.2, an element
operand named Inserter ID has been added to the dialog box design. This operand is
defining a RESOURCES element. We are now defining a property operand pointing
to a property of that resource.
Element TypeType of SIMAN element defined or referenced by the Element
Operand. This field cannot be edited; it is provided for information only.
Property NameName of the element property to which this operand is pointing,
selected from a list of valid properties associated with the Element Type. (See the
tables in Appendix B for a listing of the property types that are defined for each type
of element.) In the example in Figure 10.2, we select the Integer or Sched ID
property, which defines the (integer) capacity value for a fixed-capacity resource or
the name of the schedule for a resource whose capacity type is Schedule.
194
10 ELEMENTS
195
Figure 10.3 Logic Properties dialog box for a Property repeat group
If the repeat groups Type is specified as Property, the following fields are displayed
in the Logic Properties dialog box:
Element OperandAs is the case in the definition of property operands, this entry
specifies the name of the operand that is defining the SIMAN element in this module
of which this property repeat group is associated.
Element TypeThe type of SIMAN element defined or referenced by the Element
Operand. This field cannot be edited; it is provided for information only.
Property NameThe name of the element property that this repeat group defines,
selected from a list of valid repeatable properties associated with the Element Type.
Note: In the dialog box design, when you define a repeat group to be a property, all
operands and repeat groups that are contained in the repeat group must be property
or element operands.
196
10 ELEMENTS
To further illustrate the use of property repeat groups, suppose we have designed an
Automatic Insertion module with a dialog box design as shown in Figure 10.4 below.
Figure 10.4 Operand Explorer view of dialog box design for Automatic Insertion
module
First, the Automatic Insertion module contains a repeat group object named Inserter
Failures. This repeat group has been specified as a property repeat group, and it
points to the Failures property of a resource element defined by the operand named
Inserter ID (see Figure 10.3).
In the Automatic Insertion module, we can now define one or more failures for the
insertion resource. There are three property operands in the failures repeat group (see
the Tables appendix for this list): the Failure keyword, the name of the failure, and the
entity rule (Ignore, Wait, or Preempt).
For the definition of the Automatic Insertion module, we have added two property
operands to the Inserter Failures repeat group. First, a hidden Failure Keyword
operand is used to provide the FAILURE keyword for a failure entry. The
LogicProperties property dialog box for this operand is shown in Figure 10.5.
197
Figure 10.5 Logic Properties dialog box for hidden Failure Keyword operand
Second, for the name of the failure, we add an operand (Failure Class) to the repeat
group and indicate that it is the Failure ID property of the resource, as shown in
Figure 10.6.
Figure 10.6 Logic Properties dialog box for Failure Class property operand
198
10 ELEMENTS
We can choose whether to add a third property operand to the module that specifies
the failure entity rule. For this example, we will not do so, in which case the property
of the resource is given the default value, Ignore.
Figure 10.7 Operand Explorer view of dialog box design for enhanced Automatic
Insertion module
First, we will need to add an element operand that defines the failure element. We
also will need to add the property operands for the failure element information.
To define the failure element, we add a hidden operand to the Inserter Failures repeat
group. This element operand defines an element of type Failures. We use an operand
reference (`Failure Class`) to provide the default value of this element operand. This
ensures that the failure element that is created is named correctly based on the failure
property of the resource.
199
Figure 10.8 shows the design properties of the hidden operand named
Failure_Element.
Figure 10.8 Design properties of hidden element operand to define Failures element
By presenting the property operand in the module dialog box, we ensure that if
another module instance changes the failures associated with an automatic insertion
resource, the Automatic Insertion module instance will be updated to reflect the
changed values. (This is because property values are stored globally in the simulation
model, as described previously.) The hidden Failure_Element operand ensures that
the failure element also is defined in the simulation model and provides an element
operand that the failure properties can reference.
In this example, we will be defining the failure information for the specified failure in
the Automatic Insertion module. In this case, we use Define (instead of Reference)
200
10 ELEMENTS
for the element Failure (as seen above in Figure 10.8). If the Automatic Insertion
module specified the failure name and a separate Failures data module defined the
characteristics of the failure, this module would still contain the above hidden
operand (so the failure name is on the list of Failures); however, the element would
have a reference to it, instead of defining it.
To define the failure properties, three additional property operands are added to the
Inserter Failures repeat group, corresponding to the three required properties of a
failure element: Failure Type, Time or Count Between, and Duration. Figure 10.9
shows the operand dialog box for the first of these, the Failure Type. In its definition,
it is specified to be a property type of operand; it is a property of the element named
by operand Failure_Element; and it is the Type property of the failure element. The
remaining two operands (Count or Time Between and Time to Repair) are defined
similarly, with the appropriate selection of the property type (Time or Count Between
and Duration, respectively).
Figure 10.9 Logic Properties dialog box of Failure type property operand
201
In Figure 10.10 we show a sample instance of the Automatic Insertion module. This
instance defines an insertion resource named DIP_Line A following the Two Shifts
schedule. The resource has two associated failures: Out of Tolerance (whose repeat
group dialog box is opened in the figure) and Preventive Maintenance.
202
10 ELEMENTS
element in the simulation model. Because more than one module instance in a model
can have an element operand that accesses the same element, there is the potential
that the same elements defining operand might be switched in in some module
instances and switched out in others.
In the case of such a conflict, Arena retains the element on the element list as long as
any operand that creates the element is not switched out (that is, either has no
attached switch or a true switch). The same rule applies to properties of an element.
Note: If an element operand has an attached switch in a module definition, all property
operands that define properties of that element also should be switched to ensure that
there is no condition under which the element could be switched out and one or more
properties switched in.
For example, the Record module contains an operand, Counter Name, that is an
element operand defining a Counters element. This operand is switched in or out in a
module instance based on the selection for the type (Counter, Entity Statistics, Time
Interval, Between, or Expression). If one Record module instance has a type of Count
and names the counter Items Completed, the Items Completed counter is created.
Another Record module instance might be placed in the model that also counts in the
Items Completed counter. If the first Record module was edited and the type changed
to Entity Statistics, the Items Completed operand is switched out in that module
instance. However, because the Items Completed counter still is switched in (that is,
in the second Record module instance), it still exists in the simulation model. If the
second Record module is deleted (or its type changed to something other than Count),
the Items Completed counter is removed from the element list since no module has a
switched in reference to it.
203
Fixed-length elements
Many of the element types in Arena have one or more properties that can have a
repeating set of values, such as the initial values for a variable or the failures
associated with a resource (as illustrated earlier in this chapter). Templates can be
designed to provide values to these repeating properties by placing a property repeat
group and the appropriate property operands in a module definition.
In some cases, you might want to design a module that places a value at a specific
index in the repeating operand. For example, you might establish that the first value
in a recipe is the resource name to be used at a given job step, the second value is the
processing time, and the third value is the yield for a given job type. If you wanted to
display this information as non-repeating operands in a dialog box, you would not be
able to use property operands (because the recipe element specifies that the values are
in a repeat group).
We have added element types that mirror each of the elements containing repeating
values. These additional element types are referred to as fixed-length elements. These
fixed-length elements contain a predefined set of values for the repeating property;
they are named using the prefix Fixed_. For example, the Fixed_REC50 element has
50 assignment properties followed by a repeating assignment property; the standard
RECIPES element contains only the repeat group for assignments.
Additional fixed-length elements contain a predefined number of repeating properties
in the repeat group. These elements are named using the prefix Fixed_ and a suffix R.
These elements allow you to define a one- or two-dimensional array where each row
in the array is an individual tuple. For example, the Fixed_VAR10R element has 10
predefined initial value properties per repeat group.
You use the fixed-length elements exactly as you use the standard elements, by
defining element operands to create elements and property operands to define the
values of the elements properties. Fixed-length elements are generated along with
standard elements at model generation.
Note: The element lists and sublists are separate from one another, even for related
element types (for example, Fixed_REC50 and RECIPES elements).
204
10 ELEMENTS
The hidden element functions like a standard element but doesnt directly write its
values to the SIMAN experiment file. In the LogicProperties property dialog box, an
operand that is type element can be defined as a hidden element type by selecting
Hidden from the list of available element types. This option appears at the end of the
list of element types. There are no properties associated with the hidden element type.
An example of using a hidden list is as follows. In the Arena template modules (Basic
Process, Advanced Process, and Advanced Transfer), each module you place is given
a name, based on the module type. For example, if you place the Create, Process, then
Dispose module, they are named automatically Create 1, Process 1, and Dispose 1.
You can edit those modules and change the module name, which changes the module
handle you see in the user view. Each of the name fields has a drop-down list, which
is a list of all module names in the model. These are not written to any SIMAN
element, as they are there for the users benefit for identifying the module. Figure
10.11 shows the Name operands design properties in the Create module definition.
Figure 10.11 Dialog box design properties of the Name operand in the Create module
205
The hidden element can also be used with repeat group properties. As previously
discussed, all operands contained in a repeat group property must be defined as an
element or property operand. The hidden element can be used when you have an
operand that doesnt define an element or a property but is contained in a repeat
group property.
Inverted elements
Inverted elements are used when you want to design a module that allows the modeler
to create a single repeat group tuple for each instance of a module. For example, you
might want an individual module to define a member of a set of resources without
having to define all of the members of the resource set in a single module. There are
five available inverted elements: Inv_DISTANCES for creating a distances element,
Inv_LINKS for creating a networks element, Inv_SEGMENTS for creating a
segments element, Inv_SETS for creating a sets element, and Inv_Statesets for
creating a set of states for resources.
The difference between an inverted element and a standard element relates to how the
elements and properties are defined. For example, the standard Segments element
defines a segment name. Its properties are beginning station, next station, and length.
The Inv_SETS element defines an element whose default value is used internally.
This elements properties are beginning station, next station, length, and segment set
name. The Inv_SEGMENTS element value must be unique and is usually created as
a combination of visible operand values (explained in the following example).
A module that uses an inverted element combines visible standard elements with
hidden inverted elements. At model generation, all instances of a module that use
Inv_SEGMENTS and have the same segment set name property value are converted
and sorted to create a valid standard segments element.
For example, suppose the template design is to include a Segment module whereby
users can define the animation of a conveyor while defining the segment set, using
the Inv_SEGMENTS element. Figure 10.12 shows an Animated Segment modules
dialog box.
206
10 ELEMENTS
Figure 10.13 shows the Operand Explorer view of the modules dialog box design.
Figure 10.13 Operand Explorer view of dialog box design of Animated Segment
module
This modules dialog box design consists of four hidden operands (Name, BegN,
EndN, and SetN) and four visible operands (Beg, End, Set, and Length). The Name
operand is defined as the inverted element Inv_SEGMENTS and its properties are
BegN (property name Beginning Station), EndN (property name Next Station), SetN
(property name Segment Set ID), and Length (property name Length).
207
In Figure 10.14, see that the default value for the operand is `Beg``End``Set.` This
provides the operand with a unique default value. The operands Beg and End are
visible element type operands that define standard station elements. They correspond
with the Beginning and Ending Station drop-down fields in the Segment modules
dialog box. The Set operand is a visible element-type operand that defines a standard
Segments element.
208
10 ELEMENTS
The BegN and EndN property operands default values reference the Beg and End
operand values, respectively. Figure 10.15 shows the operand BegNs design
properties.
The SetN operand is also a hidden property whose default value references the Set
operand value.
When a module is designed in this manner, each instance of the module creates one
tuple of the segments element. Arena correctly saves and sorts all instances of the
module so that the beginning and ending stations are in the correct order. The other
two material-handling inverted elements (Inv_LINKS and Inv_DISTANCES) are
used in the same fashion.
209
The Inv_SETS element and Inv_Statesets elements are slightly different. The
Inv_SETS and Inv_STATESETS elements are the opposite of the standard sets and
statesets elements. The standard sets and statesets elements defines a set name, and its
properties are set members. The Inv_SETS and Inv_Statesets elements defines a set
member as the element value and this elements property is the set name. At model
generation, all instances of Inv_SETS with the same set name property value are
combined into a standard sets element. Likewise, all instances of Inv_STATESETS
with the same stateset name property value are combined into a standard statesets
element. This approach allows you the flexibility to define individual set members
from different modules.
Currently, the Arena and SIMAN templates do not use any of the inverted element
types.
210
Plan ahead. Try to create a picture of the dialog boxes for the modules in your
template panel and lay out the information in some consistent format.
Use Line and GroupBox controls to group related information in a dialog box.
Secondary dialog boxes generally should not contain required operands unless
they are switched On by the user.
Try to design the dialog box so that there is some amount of symmetry, but avoid
large empty spaces.
Operand objects
Prompt text should be concise; when abbreviations are used, be very clear what
term is abbreviated.
TextBox and ComboBox controls should have non-blank prompts unless nearby
operands or static text clearly point out the meaning of the text or combo operand.
211
The data type of an operand should be the same as or more restrictive than the
data type of any field that references it in a module instance in the logic window.
Try not to place ComboBox controls near the bottom of a tall dialog box. Arena
drops the list down and displays it above the box if the box would be displayed off
the screen. While this allows a modeler to see the entire list you have defined, it is
not as convenient as a box that drops down below the edit box.
Use a radio button group if there is ample room in the dialog box or if the
choice is very important.
Use a combo box if the field is not changed often or if room is limited.
Use check box only if the meaning of the choice (Checked or Cleared) is very
clear.
Use radio button group if you want to limit the user to the defined entries only.
Use meaningful operand names. These will be used for default prompts and for
column headings with Module Data Import or Export.
General
212
Module entry and exit points should not be hidden so that the module can be used
in the definition of another module (that is, a Label or Next Label operand should
appear in the module dialog box so that a reference can be entered when the
module is placed in another module definitions logic window).
Use the Auto-Created Module functionality to create data modules from logic
modules automatically.
Panel icon
Retain the text label of the icon and use the same font type and size for all
modules.
Use similar design types for panel icons; avoid mixing 2-D and 3-D panel icons.
If the module has a resource in the user view, try to represent the module in the
panel icon by drawing a simplified version of the resources idle or busy picture.
If modules are related to others, the icons can represent that relationship.
User view
Place the module handle at the bottom of the user view. Consider using an
operand (such as the module name) as the module handle text.
Static background that should not appear during a simulation run should be drawn
on the hidden layer.
Do not group animation objects in the user view; although the objects can still be
edited, the individual identifiers do not appear when you select a grouped object.
All animation objects should reference operands of the module in the expression
or identifier entry because this value is not changeable by the modeler in a module
instance.
Attach switches to animation objects that correspond to other module items that
might be switched out.
213
Module logic
Use Draw objects and Named Views in the logic window to identify various parts
of the module logic.
Verify module logic first in a model window so that you can interact with the
model and view a detailed animation. Then use Arenas clipboard to transfer the
logic into a module definitions logic window and add the appropriate operand
references or switches.
Base your modules on SIMAN Blocks and Elements. This allows you to define
elements either through the logic window or the dialog box design window.
Naming conventions
Using the following suffixes will provide improved consistency and help prevent
multiple use of the same name:
`Station Name`_R - Resources
`Station Name`_Q - Queues
`Station Name`_S - Storages
`Station Name`_C - Counters
`Station Name`_Ta - Tallies
Supply a standard prefix to your template panel files if you create and share
multiple files.
If you build modules that have similar names to modules in other templates, use a
prefix in the modules main dialog box title (for example, AGV_Transport) to
distinguish it from the other modules that perform a similar activity.
Template documentation
We encourage you to provide documentation of templates for your own use or for
others. It is particularly useful to provide helpful information that can be accessed
from in the software. This can be done in several ways.
214
Use static text (Text control) to provide a brief description in a dialog box.
Provide a text file (for example, tplname.txt) that describes each module in your
template panel.
With the assistance of a help authoring tool, create and connect true online help to
your template. This is explained in detail in Appendix C.
Trace
Although low-level trace is automatically available on all SIMAN blocks, this is
often not useful to a less experienced modeler. The TRACE block can be used in a
module definition to provide supplemental, module-specific trace. Some guidelines
regarding the design of trace information for your modules follow.
Because the entity number and module identifier are automatically generated
during the simulation run (providing a header for each new trace message), this
information need not be included in a module trace.
To distinguish the messages you generate from module headers and low-level
trace, we recommend that each message start with a hyphen in column 1 (for
example, Waiting for teller\n).
Use the STR keyword to write symbol names instead of numbers (for example, a
resource name).
To avoid complexity and confusion, set the default statistics to be collected only
on key items.
The most basic (and default) level of statistics should appear in the standard
summary report.
215
216
Use the STR keyword to write symbol names instead of numbers (like a
resource).
Tables
Elements and properties
Standard elements
Listed below are the standard (SIMAN) elements and properties that are available for
module building. For more information on a particular element, see Help.
Note: Those properties that are repeat group properties are denoted with an (R). Their
included operands are indented following the repeat group name.
ACTIVITYAREAS
Element
Properties
Organization Level
Parent Activity Area
Auto Stats Generate
Auto States Category
Auto States Identifier
ARRIVALS Element
Properties
Type
Type ID
Time
Interval or Key
Offset
Max Batches
Max Time
Batch Size
217
ARRIVALS Element
Properties
Assignments (R)
. Variable ID
. Value
ATTRIBUTES Element
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Initial Values (R)
. Value
BEGIN Element
Properties
Listing
Run Controller
BLOCKAGES Element
Properties
Number
Initial Blockages
Global Priority
Priority Expression
218
B TABLES
CONVEYORS Element
Properties
Number
Segment Set ID
Velocity
Cell Length
Status
Max Cells per Entity
Type
Accumulation Length
Auto Stats Generate
Auto Stats Category
Auto Stats Identifier
219
COUNTERS Element
Properties
Number
Limit
Initial Option
Output File
Report ID
Data Type
Category
Process ID
CSTATS Element
Properties
Number
Name
Output File
Report ID
Data Type
Category
Process ID
DISCRETE Element
Properties
Max Number of Entities
Number of Attributes
Largest Queue Number
Largest Station Number
Animation Attribute
220
B TABLES
DISTANCES Element
Properties
Station (R)
. Beginning Station ID
. Ending Station ID
. Distance
DISTRIBUTIONS
Element
Properties
Dist Number
Dist Index1
Dist Index2
Dist Values (R)
. Values
DSTATS Element
Properties
Number
Name
Output File
Report ID
Data Type
Category
Process ID
DSTATS_PERIODIC
Element
Properties
Number
SIMAN Expression
Output File
221
DSTATS Element
Properties
Report ID
Data Type
Category
Process ID
Start Time
Duration
Repeat Time
ENTITIES Element
Properties
Number
Initial Picture
Initial Holding Cost Rate
Initial VA Cost
Initial NVA Cost
Initial Wait Cost
Initial Tran Cost
Initial Other Costs
Auto Stats Generate
Auto Stats Category
Auto Stats Identifier
EVENTS Element
Properties
Crossing Variable
Crossing Direction
Threshold Value
Crossing Tolerance
222
B TABLES
FAILURES Element
Properties
Number
Type
Time or Count Between
Duration
State
FILES Element
Properties
Number
System Name
Access Type
Access Length
Structure
End of File Action
Comment Character
Initialize Option
Recordset Name
223
FILES Element
Properties
Recordset CommandText
Recordset CommandType
224
B TABLES
FREQUENCIES_
PERIODIC Element
Properties
Number
Expression
Type
Output File
Report ID
Data Type
Data Category
Process ID
Start Time
Duration
Repeat Time
Categories (R)
. Value Or Range
. Value
. High Value
. Category
. Category Option
INCLUDE Element
Properties
File Description
INITIALIZE Element
Properties
Value
225
INTERSECTIONS
Element
Properties
Number
Travel Length
Link Selection Rule
Rule Attribute ID
Velocity Change Factor
LEVELS Element
Properties
Number
1-D Array Index
2-D Array Index
Initial Values (R)
. Value
LINKS Element
Properties
Number
Beginning Intersection ID
Beginning Direction
Ending Intersection ID
Ending Direction
Number of Zones
Length of Each Zone
Link Type
Velocity Change Factor
226
B TABLES
NETWORKS Element
Properties
Number
Links (R)
. Starting Link
. Ending Link
NICKNAMES Element
Properties
Name or Constant
OUTPUTS Element
Properties
Number
Output File
Name
Report ID
Data Type
Category
Process ID
PICTURES Element
Properties
Number
227
PROJECT Element
Properties
Title
Analyst Name
Month
Day
Year
Summary Report
Costing
Entities
Resources
Queues
Transporters
Conveyors
Processes
Stations
ActivityAreas
Tanks
QUEUES Element
Properties
Number
Ranking Criterion
Rule Expression
Associated Block/SHARED
Auto Stats Generate
Auto Stats Category
Auto Stats Identifier
228
B TABLES
RANKINGS Element
Properties
Ranking Criterion
Ranking Expression
RATES Element
Properties
Number
1-D Array Index
2-D Array Index
Initial Values (R)
. Value
RECIPES Element
Properties
Statics (R)
. Static Name
. Value
REDIRECTS Element
Properties
Number
Network ID
Intersections (R)
. Beginning Intersection ID
. Ending Intersection ID
. Next Intersection ID
229
REPLICATE Element
Properties
Number of Replications
Beginning Time
Replication Length
Initialize System
Initialize Statistics
Warmup Period
Terminating Condition
DLL Name
Hours per Day
Base Time Units
Execute Mode
Realtime Mode
Realtime Factor
Simulation Start Date Time
Include Fractional RC Units
230
B TABLES
REPORTS Element
Properties
Number
System Name
Title
Heading
Sort
Format
RESOURCES Element
Properties
Number
Capacity or Schedule
Integer or Sched ID
Capacity Entity Rule
Stateset ID
Initial State
Resource Type
Map ID
Velocity
Initial Position
Position ID
Zone
Busy Cost
Idle Cost
Usage Cost
Category Type
Failures (R)
. Failure
. Failure ID
. Failure Entity Rule
231
RESOURCES Element
Properties
Auto Stats Generate
Auto Stats Category
Auto Stats Identifier
Base Efficiency (no longer supported)
Efficiency Schedule ID (no longer supported)
RULES Element
Properties
Selection Rule
Rule Expression
SCHEDULES Element
Properties
Schedule Type
Format Type (Calendar Format Type no longer supported)
Scale Factor
Time Units
Values (R)
. Value
. Duration
SEEDS Element
Properties
Seed Value
Initialize Option
SEGMENTS Element
Properties
Beginning Station
Next Stations (R)
. Next Station
. Length
232
B TABLES
SENSORS Element
Properties
Number
Tank Name
Location Type
Location
Crossing Direction
Block Label
Initial State
SEQUENCES Element
Properties
Number
Stations (R)
. Station ID
. Assignments (R)
. . . Variable
. . . Value
SETS Element
Properties
Number
Members (R)
. Member
STATESETS Element
Properties
Number
States (R)
. State Name
. Stateset Type
STATICS Element
Properties
Default Value
233
STATIONS Element
Properties
Number
Intersection ID
Recipe ID
Parent Activity Area
Auto Stats Generate
Auto Stats Category
Auto Stats Identifier
STORAGES Element
Properties
Number
TABLES Element
Properties
Number
Low Value
Fixed Increment
Dependent Values (R)
. Dependent Value
TALLIES Element
Properties
Number
Output File
Report ID
Data Type
Category
Process ID
234
B TABLES
TANKS Element
Properties
Number
Capacity
Initial Level
Input Variable Name
Output Variable Name
Report Statistics
Category
Identifier
Regulator Name
Maximum Rate
Time Units
TASKS Element
Properties
Task Number
Exec Expr
Format
Parameter
TRACE Element
Properties
Beginning Time
Ending Time
Condition
Expressions (R)
. Expression
235
TRANSPORTERS
Element
Properties
Number
Number of Units
System Map Type
Map ID
Control
Velocity
Acceleration
Deceleration
Turning Velocity
Unit Data (R)
. Initial Position
. Position ID
. Zone
. Initial Status
. Vehicle Size
. Size Integer
Auto Stats Generate
Auto Stats Category
Auto Stats Identifier
236
B TABLES
VARIABLES Element
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Clear Option
Category Type
Response Category Type
Linked File
Linked Recordset
File Read Time
Initial Values (R)
. Value
Inverted elements
Listed below are the inverted elements and their properties as described in the
Elements chapter.
Inv_DISTANCES
Element
Properties
Beginning Station ID
Ending Station ID
Distance
Distance Set ID
237
Inv_LINKS Element
Properties
Number
Beginning Intersection ID
Beginning Direction
Ending Intersection ID
Ending Direction
Number of Zones
Length of Each Zone
Link Type
Velocity Change Factor
Network ID
Inv_SETS Element
Properties
Set Name
238
B TABLES
Fixed-length elements
Listed below are the fixed-length elements and their properties as described in the
Elements chapter. The standard element associated with the fixed-length element is
presented next to the element name in parentheses. The repeatable properties are
denoted with an (R).
Fixed_ARR5 Element
(Arrivals)
Properties
Type
Type ID
Time
Interval or Key
Offset
Max Batches
Max Time
Batch Size
Variable ID 1
Value 1
Variable ID 2
Value 2
Variable ID 3
Value 3
Variable ID 4
Value 4
Variable ID 5
Value 5
Assignments (R)
. Variable ID
. Value
239
Fixed_ARR50 Element
(Arrivals)
Properties
Type
Type ID
Time
Interval or Key
Offset
Max Batches
Max Time
Batch Size
Variable ID 1
Value 1
Variable ID 2
Value 2
Variable ID 50
Value 50
Assignments (R)
. Variable ID
. Value
Fixed_ATT10R Element
(Attributes)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
240
B TABLES
Fixed_ATT10R Element
(Attributes)
Properties
Initial Values (R)
. Value 1
. Value 2
.
. Value 10
Fixed_ATT50 Element
(Attributes)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Value 1
Value 2
Value 50
Initial Values (R)
. Value
Fixed_EXP2R Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression Values (R)
. Expression 1
. Expression 2
Usage
Description
241
Fixed_EXP3R Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression Values (R)
. Expression 1
. Expression 2
. Expression 3
Usage
Description
Fixed_EXP4R Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression Values (R)
. Expression 1
. Expression 2
. Expression 3
. Expression 4
Usage
Description
242
B TABLES
Fixed_EXP7R Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression Values (R)
. Expression 1
. Expression 2
.
. Expression 7
Usage
Description
Fixed_EXP30R Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression Values (R)
. Expression 1
. Expression 2
.
. Expression 30
Usage
Description
243
Fixed_EXP5 Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression 1
Expression 2
Expression 5
Expressions (R)
. Expression
Usage
Description
Fixed_EXP10 Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression 1
Expression 2
Expression 10
Expressions (R)
. Expression
Usage
Description
244
B TABLES
Fixed_EXP10R Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression Values (R)
. Expression 1
. Expression 2
.
. Expression 10
Usage
Description
Fixed_EXP15 Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression 1
Expression 2
Expression 15
Expressions (R)
. Expression
Usage
Description
245
Fixed_EXP20 Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression 1
Expression 2
Expression 20
Expressions (R)
. Expression
Usage
Description
Fixed_EXP25 Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression 1
Expression 2
Expression 25
Expressions (R)
. Expression
Usage
Description
246
B TABLES
Fixed_EXP50 Element
(Expressions)
Properties
Number
1-D Array Index
2-D Array Index
Data Type
Expression 1
Expression 2
Expression 50
Expressions (R)
. Expression
Usage
Description
Fixed_FRE50 Element
(Frequencies)
Properties
Number
Type
Name
Output File
Report ID
Value or Range 1
Value 1
High Value 1
Category 1
Category Option 1
Value or Range 2
247
Fixed_FRE50 Element
(Frequencies)
Properties
Value 2
High Value 2
Category 2
Category Option 2
Value or Range 50
Value 50
High Value 50
Category 50
Category Option 50
Categories (R)
. Value or Range
. Value
. High Value
. Category
. Category Option
Fixed_LEV10R Element
(Levels)
Properties
Number
1-D Array Index
2-D Array Index
Initial Values (R)
. Value 1
. Value 2
.
. Value 10
248
B TABLES
Fixed_LEV50 Element
(Levels)
Properties
Number
1-D Array Index
2-D Array Index
Value 1
Value 2
Value 50
Initial Values (R)
. Value
Fixed_PAR50 Element
(Parameters)
Properties
Number
1-D Array Index
2-D Array Index
Value 1
Value 2
Value 50
Initial Values (R)
. Value
249
Fixed_RAT10R Element
(Rates)
Properties
Number
1-D Array Index
2-D Array Index
Initial Values (R)
. Value 1
. Value 2
.
. Value 10
Fixed_RAT50 Element
(Rates)
Properties
Number
1-D Array Index
2-D Array Index
Value 1
Value 2
Value 50
Initial Values (R)
. Value
250
B TABLES
Fixed_REC20 Element
(Recipes)
Properties
Static Name 1
Value 1
Static Name 2
Value 2
Static Name 20
Value 20
Statics (R)
. Static Name
. Value
Fixed_REC50 Element
(Recipes)
Properties
Static Name 1
Value 1
Static Name 2
Value 2
Static Name 50
Value 50
Statics (R)
. Static Name
. Value
251
Fixed_RES50 Element
(Resources)
Properties
Number
Capacity or Schedule
Integer or Sched ID
Capacity Entity Rule
Stateset ID
Initial State
Failure 1
Failure ID 1
Failure Entity Rule 1
Failure 2
Failure ID 2
Failure Entity Rule 2
Failure 50
Failure ID 50
Failure Entity Rule 50
Failures (R)
. Failure
. Failure ID
. Failure Entity Rule
252
B TABLES
Fixed_RLN50 Element
(Reportlines)
Properties
Number
Report ID
Format
Expression 1
Expression 2
Expression 50
Expressions (R)
. Expression
Fixed_SCH50 Element
(Schedules)
Properties
Resource Capacity 1
Capacity Duration 1
Resource Capacity 2
Capacity Duration 2
Resource Capacity 50
Capacity Duration 50
Capacities (R)
. Resource Capacity
. Capacity Duration
253
Fixed_SEQ3 Element
(Sequences)
Properties
Number
Stations (R)
Station ID
Variable 1
Value 1
Variable 2
Value 2
Variable 3
Value 3
Assignments (R)
. Variable
. Value
Fixed_SEQ20 Element
(Sequences)
Properties
Number
Stations (R)
Station ID
Variable 1
Value 1
Variable 2
Value 2
Variable 20
Value 20
Assignments (R)
. Variable
. Value
254
B TABLES
Fixed_SEQ40 Element
(Sequences)
Properties
Number
Stations (R)
Station ID
Variable 1
Value 1
Variable 2
Value 2
Variable 40
Value 40
Assignments (R)
. Variable
. Value
Fixed_SEQ50 Element
(Sequences)
Properties
Number
Stations (R)
Station ID
Variable 1
Value 1
Variable 2
Value 2
Variable 50
Value 50
Assignments (R)
. Variable
. Value
255
Fixed_SEQ100 Element
(Sequences)
Properties
Number
Stations (R)
Station ID
Variable 1
Value 1
Variable 2
Value 2
Variable 100
Value 100
Assignments (R)
Variable
Value
Fixed_SEQ250 Element
(Sequences)
Properties
Number
Stations (R)
Station ID
Variable 1
Value 1
Variable 2
Value 2
Variable 250
Value 250
Assignments (R)
Variable
Value
256
B TABLES
Fixed_SET50 Element
(Sets)
Properties
Member 1
Member 2
Member 50
Members (R)
. Member
Fixed_STA50 Element
(Statesets)
Properties
Number
State Name 1
Stateset Type 1
State Name 2
Stateset Type 2
State Name 50
Stateset Type 50
States (R)
. State Name
. Stateset Type
257
Fixed_TAB50 Element
(Tables)
Properties
Number
Low Value
Fixed Increment
Dependent Value 1
Dependent Value 2
Dependent Value 50
Dependent Values (R)
. Dependent Value
Fixed_TRA50 Element
(Transporters)
Properties
Number
Number of Units
System Map Type
Map ID
Control
Velocity
Acceleration
Deceleration
Turning Velocity
Initial Position 1
Position ID 1
Zone 1
Initial Status 1
Vehicle Size 1
258
B TABLES
Fixed_TRA50 Element
(Transporters)
Properties
Size Integer 1
Initial Position 2
Position ID 2
Zone 2
Initial Status 2
Vehicle Size 2
Size Integer 2
Initial Position 50
Position ID 50
Zone 50
Initial Status 50
Vehicle Size 50
Size Integer 50
Unit Data (R)
. Initial Position
. Position ID
. Zone
. Initial Status
. Vehicle Size
. Size Integer
259
Fixed_VAR2R Element
(Variables)
Properties
Number
1-D Array Index
2-D Array Index
Clear Option
Category Type
Response Category Type
Data Type
Initial Values (R)
. Value 1
. Value 2
Usage
Description
Fixed_VAR10 Element
(Variables)
Properties
Number
1-D Array Index
2-D Array Index
Clear Option
Category Type
Response Category Type
Data Type
Value 1
Value 2
Value 10
260
B TABLES
Fixed_VAR10 Element
(Variables)
Properties
Initial Values (R)
. Value
Usage
Description
Fixed_VAR10R Element
(Variables)
Properties
Number
1-D Array Index
2-D Array Index
Clear Option
Category Type
Response Category Type
Data Type
Initial Values (R)
. Value 1
. Value 2
.
. Value 10
Usage
Description
261
Fixed_VAR50 Element
(Variables)
Properties
Number
1-D Array Index
2-D Array Index
Clear Option
Category Type
Response Category Type
Data Type
Value 1
Value 2
Value 50
Initial Values (R)
. Value
Usage
Description
262
B TABLES
Fixed_VAR200 Element
(Variables)
Properties
Number
1-D Array Index
2-D Array Index
Clear Option
Category Type
Response Category Type
Data Type
Value 1
Value 2
Value 200
Initial Values (R)
. Value
Usage
Description
263
Data Types
As described in The Dialog Design Window chapter, there are SIMAN data types
that are available. In most cases, these data types are derived from the valid field
entries from modules in the Blocks and Elements panels. See Help for more
information on a specific block or element and its valid field values.
264
AccmLength
Values
AttrID, real
ActivityAreaLevel
Values
Integer
AllorSpecific
Values
All, Specific
ArrivalTime
Values
ArrivalType
Values
B TABLES
AttrID
Values
BasicTimeUnit
Values
Capacity
Values
Capacity, Schedule
ConsOrRange
Values
Constant, Range
ConvType
Values
Accumulating, Nonaccumulating
CountInitOpt
Values
Replicate, YesOrNo
CrossDir
Values
CrossDirPosNeg
Values
Positive, Negative
265
Date
Values
Date
DateTime
Values
Date, Time
Day
Values
DistExp
Values
EXPO(Mean), NORM(Mean,StdDev),
TRIA(Min,Mode,Max), UNIF(Min,Max),
ERLA(ExpoMean,k),
GAMM(Beta,Alpha), JOHN(G,D,L,X),
LOGN(LogMean,LogStd),
POIS(Mean), WEIB(Beta,Alpha),
CONT(P1,V1,...), DISC(P1,V1,...), Expression
266
EnabledDisabled
Values
Enabled, Disabled
EndOpt
Values
B TABLES
EntRule
Values
EventType
Values
FailType
Values
Count, Time
Failure
Values
Failure
FileAccType
Values
FileFormat
Values
AnyCharacters
FileName
Values
AnyCharacters
FileStructure
Values
267
268
FlowAllocation
Values
FlowType
Values
FormatType
Values
Duration, Calendar
FreqExp
Values
Value, State
GlobalPriority
Values
IdOrInt
Values
SymbolName, Integer
IdOrIntOrRange
Values
IdOrIntOrReal
Values
B TABLES
IdOrRealorKey
Values
InitOpt
Values
InitVar
Values
LinkType
Values
Location
Values
LSR
Values
MD1
Values
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 01,
02, 03, 04, 05, 06, 07, 08, 09
Method
Values
269
270
Month
Values
NonNegativeReal
Values
DataNonNegativeRealorSymbol
Values
NonNegativeRealSymbolName
Values
PositiveInteger
Values
PositiveReal
Values
Positive Real
PreemptDest
Values
QBlock
Values
Label, SHARED
B TABLES
QSR
Values
QuotedString
Values
Quoted String
RangeIndex
Values
RankingCrit
Values
RealorInfinite
Values
Real, Infinite
RealorSymbolName
Values
Real, SymbolName
RegulatorTimeUnit
Values
RepLengthTimeUnit
Values
271
272
ResourceAction
Values
Hold, HoldUntil
ResourceorSet
Values
Resource, Set
RSR
Values
ResourceType
Values
RestrColumn
Values
Exclude, Include
Rule
Values
SaveCrit
Values
SeedInitOpt
Values
B TABLES
SensorLocationType
Values
Severity
Values
Fatal, Warning, No
SignedInteger
Values
Sort
Values
StateSetType
Values
Status
Values
Active, Inactive
SystemMap
Values
Distance, Network
Time
Values
Time
TSR
Values
273
274
UnitTimeUnit
Values
VehicleSize
Values
Length, Zone
Year
Values
Integer
ZoneControl
Values
B TABLES
Exit Types
Standard
Standard
Queue
Queue
Seize
PickQ
Hold Type A
QPick
Hold Type B
Select
Hold Type C
Balk
DESCRIPTIONS
The three different entry types (Hold Type A, B, and C) are used to distinguish those
modules that can connect to a QPick module (Access, Request, and so on) and those
that cannot (Capture, Group). The Hold Type B is used when a Queue block is
required.
A Seize entry type is required for the Select exit type since only a Seize module can
follow a Select module.
275
CONNECTION
Exit Type
Entry Type
Standard
Queue
PickQ
Queue
QPick
Select
Seize
CONNECTION
276
VALIDATION
TYPES ON
SIMAN
MODULES
Block
Connection Type
Access
Hold Type A
Allocate
Hold Type A
Capture
Hold Type C
Combine
Hold Type C
Group
Hold Type C
PickQ
Preempt
Hold Type A
Proceed
Hold Type C
QPick
Queue
Request
Hold Type A
Scan
Hold Type C
Seize
Seize
Select
Wait
Hold Type C
The repeat group and secondary dialog boxes (Server Names and Options) look
like this:
Figure C.2 Server Names Repeat Group Figure C.3 Options Secondary dialog box
dialog box
277
When you generate the Sample.tpo file, Arena writes out a help interface file called
Sample.HH that looks something like this:
Automated help: *.HH
#define TemplateContents4293984255
#define Server4294443008
#define Server_0
#define Server_Server_Names524288
#define Server_Server_Name1048576
#define Server_Quantity1572864
#define Server_Process_Time2097152
#define Server_Options2621440
#define Server_Cost3145728
The left column (for example, #define TemplateContents) displays the Help Context
ID that will be used by the Help Authoring Tool (for example, RoboHelp). The right
column displays the Help Context Number that will be referenced by Arena. This file
serves as a map between your Help Authoring Tool and Arena.
The first entry for every templates .HH file contains the entry #define
TemplateContents. This context ID allows template developers to have a Table of
Contents topic in the template help file. When a template panel is attached to the
Project Bar, the template name is added to the list of attached templates in Arenas
Help menu. Clicking any of these menu options will automatically display the help
topic associated with the TemplateContents context ID. See the instructions below to
find out how to associate a context ID with a help topic.
The remaining entries are determined as follows: Each module will have an entry
corresponding to the module name (for example, #define Server). By default, this
context ID is used when you click the Context Sensitive Help toolbar button (on the
Standard toolbar) and then click a module button in the Project Bar. This could be used
to display a general overview of the types of uses for that module. This behavior can be
changed by editing the Module Help Option in the Template Options dialog box.
In Arena, every module dialog box (including secondary dialog boxes and dialog
boxes displayed when adding or editing items in repeat groups) contains a Help
button. Each Help button can display either the main help topic for that module or a
unique help topic for that particular dialog box of the module. For example, the
Server module displayed above has three dialog boxes: the main dialog box (Server),
and two secondary dialog boxes (Server Names repeat group and Options). Each of
these dialog boxes has a Help button. The Server dialog boxs Help button will
display the main help topic for the module. The Server Names dialog box can display
either the main help topic (as displayed by the Server dialog box) or a unique help
278
topic specific to the Server Names dialog box. The Options dialog box can display
either the main help topic (as displayed by the Server dialog box) or a unique help
topic specific to the Options dialog box.
To enable or disable unique help topics for individual dialog boxes, you specify a
dialog box form objects UniqueHelpTopic property as True or False in the module
definitions dialog box design window. By default, this property is set to True for a
dialog box form. If you enable a unique help topic for a particular dialog box but fail
to create a corresponding topic in your help file, users who press the Help button in
that dialog box will receive a message from the Windows Help system indicating
that the topic does not exist in the help file. Therefore, you should always set the
UniqueHelpTopic to True if you do not intend to create a help topic specific to the
dialog box.
Similarly, in the module definitions dialog box design window, each dialog box form
object includes a WhatsThisHelp property that is specified as True or False. This
option will provide the dialog box with a question mark in the top right of the title
bar, allowing the user to ask for help on a specific operand in the dialog box. If you
enable this option but fail to provide a topic for each specific operand in your help
file, users who click the question mark and then click an operand will receive a
message that the topic does not exist. Therefore, you should not enable the Whats
This? help option if you do not intend to create a help topic for each operand in the
dialog box.
When the help interface (.HH) file is generated along with the .tpo file, the context IDs
are written for each dialog box according to the following rules: the main dialog boxs
context ID is created by appending an underscore (_) to the module name, for example,
Server_. The context IDs for all other dialog boxes are created by appending the dialog
box name to the module name, separated by underscores; spaces embedded in dialog
box and repeat group names are converted to underscores. For example, the Server
Names dialog box would generate a context ID of Server_Server_Names. The Options
dialog boxs context ID would be Server_Options.
Context IDs for Whats This? help are created for each operand by appending the
operand name to the dialog box name with an underscore. For example, the Server
Names dialog box would generate context IDs Server_Server_TimeName and
Server_Quantity for the operands Server Name and Quantity in the Server Names
dialog box.
To use the help interface file generated above, you need to first use your Help
Authoring Tool to create help information in the form of topics. Next you tell your
Help Authoring Tool that you have a help interface or map file (for example,
279
Sample.HH). To do this in RoboHelp, you need to add the file to the list of map
files for the project by following the procedure outlined below:
1. From the Project menu, choose Setup.
2. Click the Advanced tab. Under the Setup Section heading, highlight the (Map)/
Include Files item, then click the Setup Section heading.
3. Choose the help interface file provided by Arena (for example, Sample.HH) from
the list and click Add.
4. Click OK several times until youve closed all the dialog boxes and are back to
the help document.
Next you need to associate the individual help topics in your help document with the
context IDs contained in the help interface file. To do this, you must edit each help
topic and locate the Context String field (you might need to click the Advanced
button to open up this section of the dialog box). Click the Choose button to open the
Choose Context String Provided By Development Team dialog box. Make sure that
the help interface file provided by Arena is highlighted in the Project Map File field.
Then select the appropriate context ID from the Symbolic Identifier list (for example,
if you were editing the main help topic for the module, you would choose the Server_
context ID). Click OK until you have closed all dialog boxes and are back to the help
document. The topic is now associated with the context ID.
To associate the TemplateContents context ID with your Table of Contents for the
template, you must do the following:
1. From the Project menu, choose Setup.
2. Click the Contents button.
3. Choose the TemplateContents context ID from the list of Context Strings.
4. Click OK several times until you have closed all the dialog boxes and are back to
the help document.
The next time you make the help file, it will incorporate the appropriate Help
Context Numbers (the values in the right column of the .HH file) in the .hlp file. The
help file should have the same name as the template file. For example, Sample.tpo
will look for a file called Sample.hlp.
280
Index
A
Accelerator keys 109
Advanced Process panel 2, 185
Advanced Transfer panel 2, 185
Animation object
display in user view 170
in logic window 115
Arena template 185
Assign module 45
Auto-Create 75, 96
B
Back quote character
use for referencing operand 117
Basic Process panel 2, 185
C
Changes to instances 75
Check boxes
customizing options 147
special access for references in logic
window 123
Clipboard 75, 113, 116, 171, 182
Compatibility of existing module
instances 75
Conditional assignment module 159
Contact information 5
Creating online help files 277
Customer Support Center 4
D
DataType property
SIMAN 102
standard 101
Decide module 44
Defining modeling logic 40
Delay module 48
Design Properties grid 83
281
Element 183
data elements 183
define vs. reference option 193
defining through hierarchy 186, 190
defining via element operand 186
lists 186, 188
sublists 189, 192
special types
fixed-length 204
hidden 204
inverted 206
switches on elements 202
Elements panel 185
entry 94
Entry point
operand reference in logic window 127
operand validation/reference 95
operands 37
switches attached 167
user view object 166
Errors/warnings 67
reviewing 68
Exit point
operand 37
operand validation/reference 95
repeatable 136
switches attached 167
user view object 166
F
Field
use in Logic Window chapter 116
G
Global pictures 55
H
Help 3
Help file creation 277
Help interface file 279
Hidden operands 79
282
L
Loading a template panel library (.tpl)
file 66
Logic window
attaching switches 153
connecting module instances 148
decomposing processes 111
design hints 214
detaching switches 153
differences with model window 113
hidden module (utlarena.tpo) and
switches 157
multiple connections and switches 148
opening 112
repeating exit points and single
connection 149
rules and guidelines 161
switches in module instances 124
verifying logic relative to switches 155
LogicProperties property 92
repeat groups 104
M
Model window
differences with logic window 113
Module 96
handle 163, 165
process of building logic 41
repeater 139
required option 73
types of entity flow 125
Module definition
changes and existing instances 75
copying 75
deleting 66
operand references 116
renaming 66
Module definition window 65
opening 67
Module handle 165
INDEX
Module instance
use in model or logic window 112
Module-building tutorial 29
Assign module 45
Decide module 44
Delay module 48
Process module 45
Queue module 42
Queues element 50
Release module 48
Seize module 42
Variables element 50
hidden 103
property 93
special functions 98
specifying the DataType property 101
specifying the InUserView property 103
specifying the LogicProperties
property 92
specifying the Name property 91
specifying the SwitchName
property 102
specifying the Value property 97
Operands, using 91
Name property 91
repeat groups 103
NetworkLink element 206
Number of Alternate Outputs 140
O
Online help 3
Opening a module definition window 67
Opening a new template panel library (.tpl)
file 65
Operand
default value 117, 199
design hints 211
display in user view 167
repeatable operand 169
element 190
property 194
defining element and property using
hidden operand 199
repeat group 195
references to 114
switching multiple with references to provided set 120
template panel library (.tpl) file operand
report 68
value reference in switch definition 177
Operands
basic 92
element 93
entry point 94
exit point 94
Q
Queue module 42
Queues element 50
R
Radio button group
customizing options 147
special access for references in logic
window 123
Referencing operands
animation objects in user view 170
combining repeating and non-repeating
references 136
concatenating text and reference 118
containing multiple references 119
entry point operands 127
in switch definition 177
multiple references to same operand 122
repeating exit point 138
repeating operands 131
283
Release module 48
Repeat group 103
switch use 180
Repeat group objects 79
Repeat groups
accessing the number of tuples and the tuple number 107
combining repeating operand values into a
single value 107
definition depth and reference rules 105
reference rules 129
specifying the LogicProperties
property 104
specifying the Name property 103
Repeatable logic 139
Repeatable module 139
Review errors 68
S
Sample models 3
Segments element 206
Seize module 42
Sets element 206
SIMAN template 185
Simulation logic and module design 111
Smarts library 3
Station transfer 125
in module logic 125
Statistics
hints for designing in module 215
Submodel 112
Switch 175
and element 202
and property 203
attached to user view animation
object 171
defining 176
definition 71, 176, 177
operand comparison with value 178
in logic window module instance 124
name 177
rules regarding definitions 179
template panel library (.tpl) file switch
report 68
284
T
Technical support 4
Template
documenting 214
Template Development toolbar 33
Template panel 65
changing the display name 72
creating new window 32
detaching 76
icon size and display 73
private 72
Template panel library (.tpl) file
changes and existing module
instances 75
checking for errors/warnings 67
Template panel object (.tpo) file
changes and existing instances 75
generate .tpo in template window 67, 71
providing to modeler 71
rules regarding attachment to logic
windows 115
Template window
closing 66
deleting a module 66
generating the template panel object (.tpo)
file 71
renaming a module 66
report 68
template options 71
version 71
Toolbox, using
CheckBox control 87
ComboBox control 85
DatePicker control 89
DateTimePicker control 88
DialogButton control 87
FilePicker control 90
GroupBox control 85
HiddenOperand control 91
Line control 85
RadioButtonGroup control 86
RepeatGroupDialog control 87
INDEX
RepeatGroupTable control 88
Text control 84
TextBox control 85
the controls 83
TimePicker control 90
Trace
design hints for use in module
definition 215
Trace in module definitions 160
Training courses 5
Tuple
value of switch in 179
Variables element 50
Web support 4
Whats This? help 279
Context IDs 279
World units 163
User view 163
design hints 213
designing 53
modifications by modeler 164
User view window 163
tutorial 53
Utlarena.tpo file 156
conditional assignment module 159
hidden module 157
Value property 97
285