Class LaneAreaDetector
java.lang.Object
org.eclipse.mosaic.fed.application.ambassador.simulation.tmc.LaneAreaDetector
A LaneAreaDetector is used to retrieve the information of
a
LaneAreaDetectorInfo
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
double
double
int
int
double
void
update
(LaneAreaDetectorInfo info) Updates this lane segment with new information.
-
Constructor Details
-
LaneAreaDetector
The constructor forLaneAreaDetector
.- Parameters:
id
- The id of theLaneAreaDetector
.
-
-
Method Details
-
update
Updates this lane segment with new information.- Parameters:
info
- The new information.
-
getTrafficDensity
public double getTrafficDensity() -
getLength
public double getLength() -
getNumberOfVehicles
public int getNumberOfVehicles() -
getNumberOfHaltingVehicles
public int getNumberOfHaltingVehicles() -
getMeanSpeed
public double getMeanSpeed() -
getId
-