| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.sim.setup.BasicSimSetup
aim4.sim.setup.AutoDriverOnlySimSetup
public class AutoDriverOnlySimSetup
The setup for the simulator in which all vehicles are autonomous.
| Nested Class Summary | |
|---|---|
static class | 
AutoDriverOnlySimSetup.TrafficType
The traffic type.  | 
| Field Summary | 
|---|
| Fields inherited from class aim4.sim.setup.BasicSimSetup | 
|---|
distanceBetween, lanesPerRoad, laneWidth, medianSize, numOfColumns, numOfRows, speedLimit, stopDistBeforeIntersection, trafficLevel | 
| Constructor Summary | |
|---|---|
AutoDriverOnlySimSetup(BasicSimSetup basicSimSetup)
Create a setup for the simulator in which all vehicles are autonomous.  | 
|
AutoDriverOnlySimSetup(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 all vehicles are autonomous.  | 
|
| Method Summary | |
|---|---|
 Simulator | 
getSimulator()
Get the simulator.  | 
 void | 
setBatchModeProcessingInterval(double processingInterval)
Set the processing interval in the batch mode  | 
 void | 
setBuffers(double staticBufferSize,
           double internalTileTimeBufferSize,
           double edgeTileTimeBufferSize,
           boolean isEdgeTileTimeBufferEnabled,
           double granularity)
Set the buffer sizes.  | 
 void | 
setHVdirectionalRandomTraffic(double hTrafficLevel,
                              double vTrafficLevel)
Set the directional random traffic.  | 
 void | 
setIsBaseLineMode(boolean b)
Turn on or off the base line mode.  | 
 void | 
setIsBatchMode(boolean b)
Turn on or off the batch mode.  | 
 void | 
setTrafficVolume(String trafficVolumeFileName)
Set the traffic volume according to the specification in a file.  | 
 void | 
setUniformRandomTraffic(double trafficLevel)
Set the uniform random traffic.  | 
 void | 
setUniformTurnBasedTraffic(double trafficLevel)
Set the uniform turn-based traffic.  | 
| 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 | 
|---|
public AutoDriverOnlySimSetup(BasicSimSetup basicSimSetup)
basicSimSetup - the basic simulator setup
public AutoDriverOnlySimSetup(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 before
                                    intersections| Method Detail | 
|---|
public void setIsBaseLineMode(boolean b)
b - Whether the base line mode is onpublic void setIsBatchMode(boolean b)
b - Whether the batch mode is onpublic void setBatchModeProcessingInterval(double processingInterval)
processingInterval - the processing intervalpublic void setUniformRandomTraffic(double trafficLevel)
trafficLevel - the traffic levelpublic void setUniformTurnBasedTraffic(double trafficLevel)
trafficLevel - the traffic level
public void setHVdirectionalRandomTraffic(double hTrafficLevel,
                                          double vTrafficLevel)
hTrafficLevel - the traffic level in the horizontal directionvTrafficLevel - the traffic level in the Vertical directionpublic void setTrafficVolume(String trafficVolumeFileName)
trafficVolumeFileName - the file name of the traffic volume
public void setBuffers(double staticBufferSize,
                       double internalTileTimeBufferSize,
                       double edgeTileTimeBufferSize,
                       boolean isEdgeTileTimeBufferEnabled,
                       double granularity)
staticBufferSize - the static buffer sizeinternalTileTimeBufferSize - the time buffer size of internal tilesedgeTileTimeBufferSize - the time buffer size of edge tilesisEdgeTileTimeBufferEnabled - whether the edge time buffer is
                                     enabledgranularity - the granularity of the simulation gridpublic Simulator getSimulator()
getSimulator in interface SimSetupgetSimulator in class BasicSimSetup
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||