Package models.fluid.ctm
Class CTMCell
- java.lang.Object
-
- models.fluid.AbstractCell
-
- models.fluid.ctm.CTMCell
-
public class CTMCell extends AbstractCell
-
-
Field Summary
-
Fields inherited from class models.fluid.AbstractCell
am_dnstrm, am_upstrm, flw_acc, flw_lcin_acc, flw_lcout_acc, in_barrier, laneGroup, out_barrier, supply
-
-
Constructor Summary
Constructors Constructor Description CTMCell(FluidLaneGroup laneGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_vehicles(State state, Double vehs, Map<Maneuver,Double> maneuver2prob)voidadd_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)voidallocate_state()Map<State,Double>get_demand()doubleget_veh_dwn_for_commodity(Long comm_id)doubleget_veh_for_commodity(Long comm_id)doubleget_veh_in_for_commodity(Long comm_id)doubleget_veh_out_for_commodity(Long comm_id)doubleget_vehicles()voidset_state()voidsubtract_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)voidupdate_demand()voidupdate_supply()
-
-
-
Constructor Detail
-
CTMCell
public CTMCell(FluidLaneGroup laneGroup)
-
-
Method Detail
-
get_demand
public Map<State,Double> get_demand()
- Specified by:
get_demandin classAbstractCell
-
allocate_state
public void allocate_state()
- Specified by:
allocate_statein classAbstractCell
-
set_state
public void set_state()
- Specified by:
set_statein classAbstractCell
-
update_supply
public void update_supply()
- Specified by:
update_supplyin classAbstractCell
-
update_demand
public void update_demand()
- Specified by:
update_demandin classAbstractCell
-
add_vehicles
public void add_vehicles(State state, Double vehs, Map<Maneuver,Double> maneuver2prob)
- Specified by:
add_vehiclesin classAbstractCell
-
add_vehicles
public void add_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)
- Specified by:
add_vehiclesin classAbstractCell
-
subtract_vehicles
public void subtract_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)
- Specified by:
subtract_vehiclesin classAbstractCell
-
get_veh_dwn_for_commodity
public double get_veh_dwn_for_commodity(Long comm_id)
- Specified by:
get_veh_dwn_for_commodityin classAbstractCell
-
get_veh_in_for_commodity
public double get_veh_in_for_commodity(Long comm_id)
- Specified by:
get_veh_in_for_commodityin classAbstractCell
-
get_veh_out_for_commodity
public double get_veh_out_for_commodity(Long comm_id)
- Specified by:
get_veh_out_for_commodityin classAbstractCell
-
get_veh_for_commodity
public double get_veh_for_commodity(Long comm_id)
- Specified by:
get_veh_for_commodityin classAbstractCell
-
get_vehicles
public double get_vehicles()
- Specified by:
get_vehiclesin classAbstractCell
-
-