|
||||||||||
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.Approx4PhasesTrafficSignalSimSetup
public class Approx4PhasesTrafficSignalSimSetup
The setup for the simulator in which the intersections are controlled by 4-phases traffic signals.
Field Summary |
---|
Fields inherited from class aim4.sim.setup.BasicSimSetup |
---|
distanceBetween, lanesPerRoad, laneWidth, medianSize, numOfColumns, numOfRows, speedLimit, stopDistBeforeIntersection, trafficLevel |
Constructor Summary | |
---|---|
Approx4PhasesTrafficSignalSimSetup(BasicSimSetup basicSimSetup)
Create a setup for the simulator in which the intersections are controlled by 4-phases traffic signals. |
|
Approx4PhasesTrafficSignalSimSetup(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 4-phases traffic signals. |
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 Approx4PhasesTrafficSignalSimSetup(BasicSimSetup basicSimSetup)
basicSimSetup
- the basic simulator setuppublic Approx4PhasesTrafficSignalSimSetup(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 |