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 void
add_vehicles(State state, Double vehs, Map<Maneuver,Double> maneuver2prob)
void
add_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)
void
allocate_state()
Map<State,Double>
get_demand()
double
get_veh_dwn_for_commodity(Long comm_id)
double
get_veh_for_commodity(Long comm_id)
double
get_veh_in_for_commodity(Long comm_id)
double
get_veh_out_for_commodity(Long comm_id)
double
get_vehicles()
void
set_state()
void
subtract_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)
void
update_demand()
void
update_supply()
-
-
-
Constructor Detail
-
CTMCell
public CTMCell(FluidLaneGroup laneGroup)
-
-
Method Detail
-
get_demand
public Map<State,Double> get_demand()
- Specified by:
get_demand
in classAbstractCell
-
allocate_state
public void allocate_state()
- Specified by:
allocate_state
in classAbstractCell
-
set_state
public void set_state()
- Specified by:
set_state
in classAbstractCell
-
update_supply
public void update_supply()
- Specified by:
update_supply
in classAbstractCell
-
update_demand
public void update_demand()
- Specified by:
update_demand
in classAbstractCell
-
add_vehicles
public void add_vehicles(State state, Double vehs, Map<Maneuver,Double> maneuver2prob)
- Specified by:
add_vehicles
in classAbstractCell
-
add_vehicles
public void add_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)
- Specified by:
add_vehicles
in classAbstractCell
-
subtract_vehicles
public void subtract_vehicles(Map<State,Double> dwn, Map<State,Double> in, Map<State,Double> out)
- Specified by:
subtract_vehicles
in classAbstractCell
-
get_veh_dwn_for_commodity
public double get_veh_dwn_for_commodity(Long comm_id)
- Specified by:
get_veh_dwn_for_commodity
in classAbstractCell
-
get_veh_in_for_commodity
public double get_veh_in_for_commodity(Long comm_id)
- Specified by:
get_veh_in_for_commodity
in classAbstractCell
-
get_veh_out_for_commodity
public double get_veh_out_for_commodity(Long comm_id)
- Specified by:
get_veh_out_for_commodity
in classAbstractCell
-
get_veh_for_commodity
public double get_veh_for_commodity(Long comm_id)
- Specified by:
get_veh_for_commodity
in classAbstractCell
-
get_vehicles
public double get_vehicles()
- Specified by:
get_vehicles
in classAbstractCell
-
-