Using Gates

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:

  1. The section that becomes part of the flow of your model. This gate blocks or unblocks the flow of entities.
  2. 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.

gates model object imageEach model object has a unique display graphic.
Several display graphics are shown above to illustrate some of the possibilities.

Where to Find the Model Object

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
  5. Gates \ Gate_Display1
  6. Gates \ Gate_Display2
  7. Gates \ Gate_Display3
  8. Gates \ Gate_Display4
  9. Gates \ Gate_Display5
  10. Gates \ Gate_Display6
  11. Gates \ Gate_Display7
  12. Gates \ Gate_Display8
  13. Gates \ Gate_Display9
  14. Gates \ Gate_Display10

Difficulty Level

  • 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.
    .
    Connect to and from Gate1.
  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.
    3. 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
      .
      Gate open and close times.
  5. Move Assets
    1. Move the Gate 1 graphic to an appropriate position in you model.
    2. 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.
    3. Move the Gate Controller entity and activity to a separate layer or out of the way on the current layer.
  6. Completion: The gate model is now integrated into your model, you should now be able to see the gate open and close.

Controls Usage

Variable:

  1. v_Gate_Open1: Used to signal when the gate is open or closed

Scenario Parameters:

  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.

Advance Topics

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.

scenarios window for gates

Was this article helpful?

Related Articles

Go to Top