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.
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 |
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 setuptrafficSignalPhaseFileName
- the name of the file containing the
traffic signal phase
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 © 2011. All Rights Reserved.