aim4.sim.setup

## Class ApproxNPhasesTrafficSignalSimSetup

- java.lang.Object
- - aim4.sim.setup.BasicSimSetup
  - - aim4.sim.setup.ApproxNPhasesTrafficSignalSimSetup

- All Implemented Interfaces:
    SimSetup

      public class ApproxNPhasesTrafficSignalSimSetup
      extends BasicSimSetup
      implements SimSetup

  The setup for the simulator in which the intersections are controlled by N-phases traffic signals.

- - ### Field Summary

    - ### Fields inherited from class aim4.sim.setup.BasicSimSetup

      `distanceBetween, lanesPerRoad, laneWidth, medianSize, numOfColumns, numOfRows, speedLimit, stopDistBeforeIntersection, trafficLevel`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApproxNPhasesTrafficSignalSimSetup(BasicSimSetup basicSimSetup, String trafficSignalPhaseFileName)` Create the setup for the simulator in which the intersections are controlled by N-phases traffic signals.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Simulator` | `getSimulator()` Get the simulator.
    `void` | `setTrafficVolume(String trafficVolumeFileName)` Set the traffic volume according to the specification in a file.

    - ### Methods inherited from class aim4.sim.setup.BasicSimSetup

      `getColumns, getDistanceBetween, getLanesPerRoad, getLaneWidth, getMedianSize, getRows, getSpeedLimit, getStopDistBeforeIntersection, getTrafficLevel, setLanesPerRoad, setNumOfColumns, setNumOfRows, setSpeedLimit, setStopDistBeforeIntersection, setTrafficLevel`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface aim4.sim.setup.SimSetup

      `setStopDistBeforeIntersection, setTrafficLevel`

- - ### Constructor Detail

    - #### ApproxNPhasesTrafficSignalSimSetup

          public ApproxNPhasesTrafficSignalSimSetup(BasicSimSetup basicSimSetup,
                                            String trafficSignalPhaseFileName)

      Create the setup for the simulator in which the intersections are controlled by N-phases traffic signals.
      Parameters:
        `basicSimSetup` - the basic simulator setup
        `trafficSignalPhaseFileName` - the name of the file containing the traffic signal phase

  - ### Method Detail

    - #### setTrafficVolume

          public void setTrafficVolume(String trafficVolumeFileName)

      Set the traffic volume according to the specification in a file.
      Parameters:
        `trafficVolumeFileName` - the name of the file containing the traffic volume information

    - #### getSimulator

          public Simulator getSimulator()

      Get the simulator.
      Specified by:
        `getSimulator` in interface `SimSetup`
      Overrides:
        `getSimulator` in class `BasicSimSetup`
      Returns:
        the simulator

Copyright © 2013. All rights reserved.