public class ApproxStopSignSimSetup extends BasicSimSetup implements SimSetup
distanceBetween, lanesPerRoad, laneWidth, medianSize, numOfColumns, numOfRows, speedLimit, stopDistBeforeIntersection, trafficLevel| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Simulator |
getSimulator()
Get the simulator.
|
void |
setTrafficVolume(String trafficVolumeFileName)
Set the name of the file containing the traffic volume data.
|
getColumns, getDistanceBetween, getLanesPerRoad, getLaneWidth, getMedianSize, getRows, getSpeedLimit, getStopDistBeforeIntersection, getTrafficLevel, setLanesPerRoad, setNumOfColumns, setNumOfRows, setSpeedLimit, setStopDistBeforeIntersection, setTrafficLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetStopDistBeforeIntersection, setTrafficLevelpublic ApproxStopSignSimSetup(BasicSimSetup basicSimSetup)
basicSimSetup - the basic simulator setuppublic ApproxStopSignSimSetup(int columns,
int rows,
double laneWidth,
double speedLimit,
int lanesPerRoad,
double medianSize,
double distanceBetween,
double trafficLevel,
double stopDistBeforeIntersection)
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 beforepublic void setTrafficVolume(String trafficVolumeFileName)
trafficVolumeFileName - the name of the file containing the traffic
volume datapublic Simulator getSimulator()
getSimulator in interface SimSetupgetSimulator in class BasicSimSetupCopyright © 2013. All rights reserved.