| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.map.TrafficVolume
public class TrafficVolume
The record for traffic volume.
| Constructor Summary | |
|---|---|
TrafficVolume(GridMap map,
              List<String> strs)
Create a new traffic volume object from the data in a file.  | 
|
| Method Summary | |
|---|---|
 Road | 
getLeftTurnRoad(Road road)
Get the left turn volume of a road.  | 
 double | 
getLeftTurnVolume(int laneId)
Get the left turn volume of a lane.  | 
 Road | 
getRightTurnRoad(Road road)
Get the right turn volume of a road.  | 
 double | 
getRightTurnVolume(int laneId)
Get the right turn volume of a lane.  | 
 double | 
getThroughVolume(int laneId)
Get the left turn volume of a lane.  | 
 double | 
getTotalVolume(int laneId)
Get the total volume of a lane.  | 
static TrafficVolume | 
makeFromFile(GridMap map,
             String csvFileName)
Create a new traffic volume object from file.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public TrafficVolume(GridMap map,
                     List<String> strs)
map - the mapstrs - the data in a file| Method Detail | 
|---|
public static TrafficVolume makeFromFile(GridMap map,
                                         String csvFileName)
map - the mapcsvFileName - the file name of the CSV file
public double getLeftTurnVolume(int laneId)
laneId - the ID of the lane
public double getThroughVolume(int laneId)
laneId - the ID of the lane
public double getRightTurnVolume(int laneId)
laneId - the ID of the lane
public double getTotalVolume(int laneId)
laneId - the ID of the lane
public Road getLeftTurnRoad(Road road)
road - the road
public Road getRightTurnRoad(Road road)
road - the road
public String toString()
toString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||