|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.sim.setup.BasicSimSetup aim4.sim.setup.ApproxSimpleTrafficSignalSimSetup
public class ApproxSimpleTrafficSignalSimSetup
The setup for the simulator in which the intersections are controlled by stop signs.
Field Summary |
---|
Fields inherited from class aim4.sim.setup.BasicSimSetup |
---|
distanceBetween, lanesPerRoad, laneWidth, medianSize, numOfColumns, numOfRows, speedLimit, stopDistBeforeIntersection, trafficLevel |
Constructor Summary | |
---|---|
ApproxSimpleTrafficSignalSimSetup(BasicSimSetup basicSimSetup)
Create the setup for the simulator in which the intersections are controlled by stop signs. |
|
ApproxSimpleTrafficSignalSimSetup(int columns,
int rows,
double laneWidth,
double speedLimit,
int lanesPerRoad,
double medianSize,
double distanceBetween,
double trafficLevel,
double stopDistBeforeIntersection)
Create the setup for the simulator in which the intersections are controlled by stop signs. |
Method Summary | |
---|---|
Simulator |
getSimulator()
Get the simulator. |
void |
setGreenLightDuration(double greenLightDuration)
Set the duration of the green signals |
void |
setYellowLightDuration(double yellowLightDuration)
Set the duration of the yellow 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 |
Methods inherited from interface aim4.sim.setup.SimSetup |
---|
setStopDistBeforeIntersection, setTrafficLevel |
Constructor Detail |
---|
public ApproxSimpleTrafficSignalSimSetup(BasicSimSetup basicSimSetup)
basicSimSetup
- the basic simulator setuppublic ApproxSimpleTrafficSignalSimSetup(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 beforeMethod Detail |
---|
public void setGreenLightDuration(double greenLightDuration)
greenLightDuration
- the duration of the green signalspublic void setYellowLightDuration(double yellowLightDuration)
yellowLightDuration
- the duration of the yellow signalspublic Simulator getSimulator()
getSimulator
in interface SimSetup
getSimulator
in class BasicSimSetup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |