Updating attributes during simulation based on events

You can define attribute changes that are executed at specified times during a simulation run. To do this, select the desired attribute, which Vissim will set to a new value for all objects of the specified object type, calculated by the specified formula.

If a script has been defined for the same time step, Vissim will first make the attribute change.

1.  On the Actions menu, click > Attribute modifications.

The Attribute modifications list opens.

2.   In the list, on the toolbar, click the Add button .

The Attribute modification window opens.

3.  Make the desired changes:

Element Description

No.

Unique Number of the attribute modification

From time

TimeFrom: Time interval in simulation seconds from which the attribute change is active

To time

TimeTo: Time interval in simulation seconds until which the attribute change is active

Period

Period: Selecting length of simulation time intervals (number of time steps) carried out for attribute change

Name

Name: Name of the attribute change

Execution type

RunType: Manuallyl for entering the value or desired time at which the value shall be recorded:

  • Before simulation start
  • After simulation start
  • At time step start
  • At time step end
  • Before simulation end
  • After simulation end

Object type

ObjTypName: From the drop-down list, select the network object type that contains the attribute whose value is to be changed during the simulation.

Target attribute

TargetAttrName : Opens the window <Network object type>: Select attribute. All attributes of the network object type are displayed. Click the desired network object. You can filter the entries (Setting a filter for selection of subattributes displayed). Confirm with OK.

Object filter

Optional formula that can be used to restrict the set of objects for which the attribute change is to be performed. The formula is re-evaluated with each attribute change. If the new value from the formula matches the value of the target attribute, the value is not reassigned.

Input field Create the formula using the buttons and/or the keyboard.

4.  Confirm with OK.

In the Attribute modification list, a new row is inserted. In the Attribute computation column, the formula created in the input field is displayed.

Superordinate topic:

Running a simulation