When Will You Need This?
- This Model Object will be used to stop and start the flow of entities at specific times of the day/week.
- To visually show the status of a gate while the model is running.
A gate has two parts:
- The section that becomes part of the flow of your model. This gate blocks or opens the flow of entities.
- The section that is independent of your main model. This will add an extra entity, arrival, and activity into your model that controls when the entities are held or released.
One of the following Model Objects can be used to add a gate to your model:
1. Gates \ Gate1
2. Gates \ Gate2
3. Gates \ Gate3
4. Gates \ Gate4
Ease of Use: Easy
Ease of Modification: Moderate
How to Use the Model Object
1. Open Your Model
2. Insert Any One of the Above Model Objects into Your Model
Locate the appropriate location where you would like to place the model object, move the view to the location and then insert the model object.
3. Connect to and from Gate
Connect a route from your model to Gate#. Connect a route from Gate# to the remainder of your model.
4. Determine Gate Open / Close Times
Determine if the gate is to be open or closed at the start of the simulation (12:00 AM Monday Morning):
1. If the gate is to be OPEN at the start of the simulation, set the default value of v_Gate_Open1 = 1.
2. If the gate is to be CLOSED at the start of the simulation, set the default value of v_Gate_Open1 = 0.
Change the gate OPEN and CLOSE times by changing the Daily Pattern arrival times on the gate controller arrival routes.
You can choose any type of arrival based your needs
5. Move Assets
1. Move the Gate 1 graphic to an appropriate position in you model.
1. The box around the animated sign is important. It covers the static open and closed graphics. To make rounded rectangle disappear, paint the black bounding line white, or remove its color.
2. Move the Gate Controller entity and activity to a separate layer or out of the way on the current layer.
The gate model is now integrated into your model, you should now be able to see the gate open and close.
7. Attributes, Variables, Scenario Parameters and Scenarios usage
1. v_Gate_Open1: Used to signal when the gate is open or closed
1. s_Graphic_Name_Closed1: Used to pass the name of the entity to the action logic controlling which entity is used to show the closed gate.
2. s_Graphic_Name_Open1: Used to pass the name of the entity to the action logic controlling which entity is used to show the opened gate.
How to Use Two or More Gates?
This model object may be used multiple times in your model. When used more than once, the following will need to be changed:
1. The OPEN and CLOSE times in the periodic arrivals for the new gate
2. The graphic names defined through scenario parameters. The original graphic name for the open gate is Open1 The original graphic name for the closed gate is Close1. When a second gate is pasted, the graphic numbers automatically increment.
This model object can be changed to use the new graphic names without actually changing the action logic. Just change scenario parameter default value to use the new graphic name. The second gate will use Open2 and Close2 An example is shown below of the scenario parameters tab of the scenarios dialog.