| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.sim.setup.BasicSimSetup
public class BasicSimSetup
The basic simulator setup
| Field Summary | |
|---|---|
protected  double | 
distanceBetween
The distance between intersection  | 
protected  int | 
lanesPerRoad
The number of lanes per road  | 
protected  double | 
laneWidth
The width of lanes  | 
protected  double | 
medianSize
The width of the area between the opposite directions of a road  | 
protected  int | 
numOfColumns
The number of columns  | 
protected  int | 
numOfRows
The number of rows  | 
protected  double | 
speedLimit
The speed limit of the roads  | 
protected  double | 
stopDistBeforeIntersection
The stopping distance before intersection  | 
protected  double | 
trafficLevel
The traffic level  | 
| Constructor Summary | |
|---|---|
BasicSimSetup(BasicSimSetup basicSimSetup)
Create a copy of a given basic simulator setup.  | 
|
BasicSimSetup(int columns,
              int rows,
              double laneWidth,
              double speedLimit,
              int lanesPerRoad,
              double medianSize,
              double distanceBetween,
              double trafficLevel,
              double stopDistBeforeIntersection)
Create a basic simulator setup.  | 
|
| Method Summary | |
|---|---|
 int | 
getColumns()
Get the number of columns.  | 
 double | 
getDistanceBetween()
Get the distance between intersections.  | 
 int | 
getLanesPerRoad()
Get the number of lanes per road.  | 
 double | 
getLaneWidth()
Get the width of lanes.  | 
 double | 
getMedianSize()
Get the width of the area between the opposite directions of a road.  | 
 int | 
getRows()
Get the number of rows.  | 
 Simulator | 
getSimulator()
Get the simulator.  | 
 double | 
getSpeedLimit()
Get the speed limit of the roads.  | 
 double | 
getStopDistBeforeIntersection()
Get the stopping distance before intersection.  | 
 double | 
getTrafficLevel()
Get the traffic level.  | 
 void | 
setLanesPerRoad(int lanesPerRoad)
Set the number of lanes per road.  | 
 void | 
setNumOfColumns(int numOfColumns)
Set the number of columns.  | 
 void | 
setNumOfRows(int numOfRows)
Set the number of rows.  | 
 void | 
setSpeedLimit(double speedLimit)
Set the speed limit.  | 
 void | 
setStopDistBeforeIntersection(double stopDistBeforeIntersection)
Set the stopping distance before intersection.  | 
 void | 
setTrafficLevel(double trafficLevel)
Set the traffic level.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected int numOfColumns
protected int numOfRows
protected double laneWidth
protected double speedLimit
protected int lanesPerRoad
protected double medianSize
protected double distanceBetween
protected double trafficLevel
protected double stopDistBeforeIntersection
| Constructor Detail | 
|---|
public BasicSimSetup(BasicSimSetup basicSimSetup)
basicSimSetup - a basic simulator setup
public BasicSimSetup(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 limit of the roadslanesPerRoad - the number of lanes per roadmedianSize - the width of the area between the
                                    opposite directions of a roaddistanceBetween - the distance between intersectionstrafficLevel - the traffic levelstopDistBeforeIntersection - the stopping distance before
                                    intersection| Method Detail | 
|---|
public Simulator getSimulator()
getSimulator in interface SimSetuppublic int getColumns()
public int getRows()
public double getLaneWidth()
public double getSpeedLimit()
public int getLanesPerRoad()
public double getMedianSize()
public double getDistanceBetween()
public double getTrafficLevel()
public double getStopDistBeforeIntersection()
public void setTrafficLevel(double trafficLevel)
setTrafficLevel in interface SimSetuptrafficLevel - the traffic levelpublic void setSpeedLimit(double speedLimit)
speedLimit - the speed limitpublic void setStopDistBeforeIntersection(double stopDistBeforeIntersection)
setStopDistBeforeIntersection in interface SimSetupstopDistBeforeIntersection - the stopping distancepublic void setNumOfColumns(int numOfColumns)
numOfColumns - the number of columnspublic void setNumOfRows(int numOfRows)
numOfRows - the number of rowspublic void setLanesPerRoad(int lanesPerRoad)
lanesPerRoad - the number of lanes per road
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||