---+ Editing Assign Modules _Assign_ modules may be added to the flowchart view by dragging and dropping (the same as [[EditingCreateModules][ _Create_ modules]]). Multiple assignments can be done within a single assign module by clicking on the _Add_ button. Previously added assignments can be edited using the _Edit_ button. There are multiple possibilities for assignments: ---++ Variables Variables may be assigned a new value by setting the _Type_ to be =Variable=, the _Variable Name_ to the name of the variable to assign and _New Value_ to the new value of the variable. One dimensional variables may be useful when dealing with arrays, e.g. using different variable values for each day of the week. One dimensional variables may be assigned a new value by setting the _Type_ to be =Variable Array (1D)=, choosing the required _Row_ of the array and setting the _New Value_. Note that the variable array must be set up (see Editing Variables) with the correct number of rows for the assignment to work correctly. For example, assuming a variable array has been set up with initial values as shown. <img width="560" alt="Values_for_Reception_Start_Times.png" src="%ATTACHURL%/Values_for_Reception_Start_Times.png" height="295" /> To assign a value of 1 to the seventh element in the array we can use the _Assignmen_ a _New Value_ of 1 to _Row_ 7 of our 1D variable. <img width="497" alt="1D_variable.png" src="%ATTACHURL%/1D_variable.png" height="172" /> *NB* _:_ Row 1 represents Monday, Row 2 represents Tuesday...etc Two dimensional variables are useful when dealing with 2D arrays, e.g. using different variable values for different employees on different days of the week. They are implemented identically to one dimensional variables (above) except that the user can define the number of rows and the number of columns. A good example of a 2D variable is assigning a roster for when several receptionists must start work each day. This example is shown below. *NB* _:_ Column 1 represents Receptionist 1 (e.g. Mary) , Column 2 represents Receptionist 2 (e.g. Jenny)...etc *NB:* An entry of =0= on a weekday means that receptionist does not work on that day. <img width="716" alt="2D_Receptionist_Start_Times.png" src="%ATTACHURL%/2D_Receptionist_Start_Times.png" height="295" /> ---++ Attributes Entities can have _Attributes_ assigned to them. Each _Attribute_ must be named and assigned a specific value. _Attributes_ may be assigned by setting the _Type_ to =Attribute=, defining a specific _Attribute Name_ and setting the _New Value_. <img width="497" alt="Attribute.png" src="%ATTACHURL%/Attribute.png" height="172" /> ---++ Entity Type _Entity.Type_ is a special kind of _Attribute_ that refers to one of the specific types of entities defined in the model. The _Entity.Type Attribute_ may be assigned by setting the _Type_ to =Entity Type= and defining the _Entity.Type_. <img width="497" alt="Entity_Type.png" src="%ATTACHURL%/Entity_Type.png" height="172" /> ---++ Entity Picture _Entity.Picture_ is a special kind of _Attribute_ that stores the value of an entity's graphical picture to be used for animations within an Arena model. The _Entity.Picture Attribute_ may be assigned by setting the _Type_ to =Entity Picture= and defining the _Entity.Picture_. *NB*: A selection of pictures can be found in the Arena Libraries (See Arena Help for more details) <img width="497" alt="Entity_Picture.png" src="%ATTACHURL%/Entity_Picture.png" height="172" /> -- Main.MichaelOSullivan - 25 Aug 2009
This topic: OpsRes
Topic revision: r8 - 2010-02-15 - KatTrevor
Copyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?