Package models.vehicle.spatialq
Class Queue
- java.lang.Object
-
- models.vehicle.spatialq.Queue
-
public class Queue extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueue.Type
-
Field Summary
Fields Modifier and Type Field Description StringidMesoLaneGrouplanegroupQueue.Typetype
-
Constructor Summary
Constructors Constructor Description Queue(MesoLaneGroup lanegroup, Queue.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_vehicle(MesoVehicle v)voidadd_vehicles(Set<MesoVehicle> v)voidclear()voidinitialize()intnum_vehicles()longnum_vehicles_for_commodity(Long c)MesoVehiclepeek_vehicle()voidremove_given_vehicle(float timestamp, MesoVehicle v)voidvalidate(OTMErrorLog errorLog)
-
-
-
Field Detail
-
id
public final String id
-
type
public final Queue.Type type
-
lanegroup
public final MesoLaneGroup lanegroup
-
-
Constructor Detail
-
Queue
public Queue(MesoLaneGroup lanegroup, Queue.Type type)
-
-
Method Detail
-
validate
public void validate(OTMErrorLog errorLog)
-
initialize
public void initialize() throws OTMException- Throws:
OTMException
-
peek_vehicle
public MesoVehicle peek_vehicle()
-
remove_given_vehicle
public void remove_given_vehicle(float timestamp, MesoVehicle v) throws OTMException- Throws:
OTMException
-
add_vehicle
public void add_vehicle(MesoVehicle v)
-
add_vehicles
public void add_vehicles(Set<MesoVehicle> v)
-
clear
public void clear()
-
num_vehicles_for_commodity
public long num_vehicles_for_commodity(Long c)
-
num_vehicles
public int num_vehicles()
-
-