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 class
Queue.Type
-
Field Summary
Fields Modifier and Type Field Description String
id
MesoLaneGroup
lanegroup
Queue.Type
type
-
Constructor Summary
Constructors Constructor Description Queue(MesoLaneGroup lanegroup, Queue.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_vehicle(MesoVehicle v)
void
add_vehicles(Set<MesoVehicle> v)
void
clear()
void
initialize()
int
num_vehicles()
long
num_vehicles_for_commodity(Long c)
MesoVehicle
peek_vehicle()
void
remove_given_vehicle(float timestamp, MesoVehicle v)
void
validate(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()
-
-