public class AutoDriverOnlySimSetup extends BasicSimSetup implements SimSetup
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoDriverOnlySimSetup.TrafficType
The traffic type.
|
distanceBetween, lanesPerRoad, laneWidth, medianSize, numOfColumns, numOfRows, speedLimit, stopDistBeforeIntersection, trafficLevel| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 AutoDriverOnlySimSetup(BasicSimSetup basicSimSetup)
basicSimSetup - the basic simulator setuppublic 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
intersectionspublic 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 levelpublic 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 volumepublic 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 BasicSimSetupCopyright © 2013. All rights reserved.