Package core.packet
Class PacketLink
- java.lang.Object
-
- core.packet.PacketLink
-
public class PacketLink extends Object
Packets of vehicles (micro, meso, and/or macro) passed to a link
-
-
Field Summary
Fields Modifier and Type Field Description RoadConnection
road_connection
Map<State,Double>
state2vehicles
Set<core.AbstractVehicle>
vehicles
-
Constructor Summary
Constructors Constructor Description PacketLink(core.AbstractVehicle vehicle, RoadConnection road_connection)
PacketLink(Map<State,Double> state2vehicles, RoadConnection road_connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
boolean
no_macro()
boolean
no_micro()
double
total_macro_vehicles_of_commodity(long cid)
-
-
-
Field Detail
-
road_connection
public RoadConnection road_connection
-
vehicles
public Set<core.AbstractVehicle> vehicles
-
-
Constructor Detail
-
PacketLink
public PacketLink(Map<State,Double> state2vehicles, RoadConnection road_connection)
-
PacketLink
public PacketLink(core.AbstractVehicle vehicle, RoadConnection road_connection)
-
-