|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicMap
Essentially a structured grouping of Roads and IntersectionManagers that allows a unified interface so that we can re-use certain layouts and create classes of layouts.
Method Summary | |
---|---|
List<DataCollectionLine> |
getDataCollectionLines()
Get the list of data collection line. |
List<Road> |
getDestinationRoads()
Get the Roads that exit this Layout. |
Rectangle2D |
getDimensions()
Get the dimensions of this Layout, in Rectangle form. |
Registry<IntersectionManager> |
getImRegistry()
Get the intersection manager registry. |
List<IntersectionManager> |
getIntersectionManagers()
Get the IntersectionManagers that are part of this Layout. |
Registry<Lane> |
getLaneRegistry()
Get the lane registry. |
double |
getMaximumSpeedLimit()
Get the maximum speed limit of any Road in the Layout. |
Road |
getRoad(int laneID)
Given a Lane ID number, get the Road of which that Lane is a part. |
Road |
getRoad(Lane lane)
Given a Lane, get the Road of which that Lane is a part. |
List<Road> |
getRoads()
Get the Roads that are part of this Layout. |
List<SpawnPoint> |
getSpawnPoints()
Get the list of spawn points. |
void |
printDataCollectionLinesData(String outFileName)
Print the data collected in data collection lines to the given file |
void |
setManager(int column,
int row,
IntersectionManager im)
Set the intersection manager of a particular intersection. |
Method Detail |
---|
List<Road> getRoads()
List<Road> getDestinationRoads()
Rectangle2D getDimensions()
double getMaximumSpeedLimit()
Registry<IntersectionManager> getImRegistry()
Registry<Lane> getLaneRegistry()
Road getRoad(Lane lane)
lane
- the Lane for which to get the enclosing Road
Road getRoad(int laneID)
laneID
- the ID of the Lane for which to get the enclosing Road
List<IntersectionManager> getIntersectionManagers()
List<DataCollectionLine> getDataCollectionLines()
List<SpawnPoint> getSpawnPoints()
void setManager(int column, int row, IntersectionManager im)
column
- the column of the intersectionrow
- the row of the intersectionim
- the intersection managervoid printDataCollectionLinesData(String outFileName)
outFileName
- the name of the file to which the data are outputted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |