aim4.sim.setup
Class ApproxStopSignSimSetup
java.lang.Object
aim4.sim.setup.BasicSimSetup
aim4.sim.setup.ApproxStopSignSimSetup
- All Implemented Interfaces:
- SimSetup
public class ApproxStopSignSimSetup
- extends BasicSimSetup
- implements SimSetup
The setup for the simulator in which the intersections are controlled
by stop signs.
|
Constructor Summary |
ApproxStopSignSimSetup(BasicSimSetup basicSimSetup)
Create a setup for the simulator in which the intersections are controlled
by stop signs. |
ApproxStopSignSimSetup(int columns,
int rows,
double laneWidth,
double speedLimit,
int lanesPerRoad,
double medianSize,
double distanceBetween,
double trafficLevel,
double stopDistBeforeIntersection)
Create a setup for the simulator in which the intersections are controlled
by stop signs. |
| 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 |
ApproxStopSignSimSetup
public ApproxStopSignSimSetup(BasicSimSetup basicSimSetup)
- Create a setup for the simulator in which the intersections are controlled
by stop signs.
- Parameters:
basicSimSetup - the basic simulator setup
ApproxStopSignSimSetup
public ApproxStopSignSimSetup(int columns,
int rows,
double laneWidth,
double speedLimit,
int lanesPerRoad,
double medianSize,
double distanceBetween,
double trafficLevel,
double stopDistBeforeIntersection)
- Create a setup for the simulator in which the intersections are controlled
by stop signs.
- Parameters:
columns - the number of columnsrows - the number of rowslaneWidth - the width of lanesspeedLimit - the speed limitlanesPerRoad - the number of lanes per roadmedianSize - the median sizedistanceBetween - the distance between intersectionstrafficLevel - the traffic levelstopDistBeforeIntersection - the stopping distance before
setTrafficVolume
public void setTrafficVolume(String trafficVolumeFileName)
- Set the name of the file containing the traffic volume data.
- Parameters:
trafficVolumeFileName - the name of the file containing the traffic
volume data
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.