Package traveltime
Class VehicleLaneGroupTimer
- java.lang.Object
-
- traveltime.AbstractLaneGroupTimer
-
- traveltime.VehicleLaneGroupTimer
-
public class VehicleLaneGroupTimer extends AbstractLaneGroupTimer
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,Float>
entry_time
int
num_samples
double
sum_time
-
Fields inherited from class traveltime.AbstractLaneGroupTimer
lg, travel_time
-
-
Constructor Summary
Constructors Constructor Description VehicleLaneGroupTimer(core.AbstractLaneGroup lg, float outDt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get_mean_and_clear()
boolean
has_samples()
void
vehicle_enter(float timestamp, core.AbstractVehicle vehicle)
void
vehicle_exit(float timestamp, core.AbstractVehicle vehicle, Long link_id, Link next_link)
-
-
-
Method Detail
-
vehicle_enter
public void vehicle_enter(float timestamp, core.AbstractVehicle vehicle)
-
vehicle_exit
public void vehicle_exit(float timestamp, core.AbstractVehicle vehicle, Long link_id, Link next_link)
-
has_samples
public boolean has_samples()
-
get_mean_and_clear
public double get_mean_and_clear()
- Specified by:
get_mean_and_clear
in classAbstractLaneGroupTimer
-
-