-
Notifications
You must be signed in to change notification settings - Fork 4
Components
4ND4 edited this page Mar 25, 2016
·
5 revisions
Component
We have defined a common denominator between objects that we are able to add to a map.
Currently we have two types of components:
- Road
- Intersection
Lanes are embeded in roads and vehicles are objects that work on top of a map. The same for traffic lights that work on top of an intersection. Like the Coordinate, the components are used widely in the whole system.
if(component instanceof Intersection)
{
...
}
else if(component instanceof Road)
{
...
}Road
A road is a container for 1 or more lanes, It has a start point and an end point

Lane
In the context of traffic control, a lane is part of a carriageway (roadway) that is designated for use by a single line of vehicles, to control and guide drivers and reduce traffic conflicts. Source
