Interactive Mode Simulation : Interactive Simulation Example : Some Variations to Consider

Some Variations to Consider

The example presented is quite simple and works properly. At this time, you may want to consider altering the model and its parameters to study the effects. The following suggestions are made:

Add the capability for a policeman to manually change the traffic lights in time of heavy traffic or an accident. This may be accomplished by changing the label on the N_S.GREEN_LIGHT to N_S.YELLOW_LIGHT transition to:

tm(en(N_S.GREEN_LIGHT),N_S_GREEN_TIME) or SWITCH

where SWITCH is an event generated by the policeman.
Note that during the malfunction, all lights begin flashing immediately. During this period, no time advances. And when the lights are repaired, the lights return to their default configuration. You may want to change the model to reflect more realistic traffic situations.