Package models.fluid
Class FluidLaneGroup
- java.lang.Object
-
- core.AbstractLaneGroup
-
- models.fluid.FluidLaneGroup
-
- All Implemented Interfaces:
InterfaceTarget
,InterfaceLaneGroup
,Comparable<core.AbstractLaneGroup>
public class FluidLaneGroup extends core.AbstractLaneGroup
-
-
Field Summary
Fields Modifier and Type Field Description double
capacity_veh_per_dt
List<AbstractCell>
cells
double
critical_density_veh
double
ffspeed_cell_per_dt
double
jam_density_veh_per_cell
double
lc_w
double
nom_capacity_veh_per_dt
double
nom_ffspeed_cell_per_dt
Map<State,Double>
source_flow
double
wspeed_cell_per_dt
-
Constructor Summary
Constructors Constructor Description FluidLaneGroup(Link link, Side side, float length, int num_lanes, int start_lane, Set<RoadConnection> out_rcs, Roadparam rp)
-
Method Summary
-
Methods inherited from class core.AbstractLaneGroup
compareTo, delete, get_dn_lanes, get_length, get_link, get_long_supply, get_maneuvers_for_state, get_maneuvprob_for_state, get_model, get_neighbor_in, get_neighbor_out, get_num_lanes, get_out_links, get_rc_for_outlink, get_rc_for_state, get_road_params, get_side, get_side_with_respect_to_lg, get_start_lane_dn, get_start_lane_up, get_supply_per_lane, get_total_vehicles, get_total_vehicles_for_commodity, get_up_lanes, getId, getIdAsTarget, getTypeAsTarget, register_actuator, request_flow_accumulator, set_actuator_allow_comm, toString, update_flow_accummulators
-
-
-
-
Field Detail
-
nom_ffspeed_cell_per_dt
public double nom_ffspeed_cell_per_dt
-
nom_capacity_veh_per_dt
public double nom_capacity_veh_per_dt
-
wspeed_cell_per_dt
public double wspeed_cell_per_dt
-
lc_w
public double lc_w
-
ffspeed_cell_per_dt
public double ffspeed_cell_per_dt
-
capacity_veh_per_dt
public double capacity_veh_per_dt
-
jam_density_veh_per_cell
public double jam_density_veh_per_cell
-
critical_density_veh
public double critical_density_veh
-
cells
public List<AbstractCell> cells
-
-
Constructor Detail
-
FluidLaneGroup
public FluidLaneGroup(Link link, Side side, float length, int num_lanes, int start_lane, Set<RoadConnection> out_rcs, Roadparam rp)
-
-
Method Detail
-
validate_post_init
public void validate_post_init(OTMErrorLog errorLog)
-
initialize
public void initialize(Scenario scenario, float start_time) throws OTMException
- Overrides:
initialize
in classcore.AbstractLaneGroup
- Throws:
OTMException
-
get_lat_supply
public double get_lat_supply()
-
set_road_params
public void set_road_params(Roadparam r)
- Overrides:
set_road_params
in classcore.AbstractLaneGroup
-
set_actuator_capacity_vps
public void set_actuator_capacity_vps(double rate_vps)
-
set_to_nominal_capacity
public void set_to_nominal_capacity()
-
set_actuator_speed_mps
public void set_actuator_speed_mps(double speed_mps)
-
allocate_state
public void allocate_state()
-
get_max_vehicles
public double get_max_vehicles()
-
get_upstream_vehicle_position
public Double get_upstream_vehicle_position()
-
add_vehicle_packet
public void add_vehicle_packet(float timestamp, PacketLaneGroup vp, Long nextlink_id) throws OTMException
- Throws:
OTMException
-
release_vehicle_packets
public void release_vehicle_packets(float timestamp) throws OTMException
- Throws:
OTMException
-
update_long_supply
public void update_long_supply()
-
vehs_dwn_for_comm
public float vehs_dwn_for_comm(Long comm_id)
-
vehs_in_for_comm
public float vehs_in_for_comm(Long comm_id)
-
vehs_out_for_comm
public float vehs_out_for_comm(Long comm_id)
-
get_lc_probabilities
public Map<Maneuver,Double> get_lc_probabilities(State state, Set<Maneuver> lcoptions) throws OTMException
- Throws:
OTMException
-
get_num_cells
public final int get_num_cells()
-
request_flow_accumulators_for_cells
public final List<FlowAccumulatorState> request_flow_accumulators_for_cells(Long comm_id)
-
request_flow_accumulators_for_cell
public final FlowAccumulatorState request_flow_accumulators_for_cell(Set<Long> comm_ids, int cell_index)
-
request_flow_lcout_accumulators_for_cells
public final List<FlowAccumulatorState> request_flow_lcout_accumulators_for_cells(Long comm_id)
-
request_flow_lcin_accumulators_for_cells
public final List<FlowAccumulatorState> request_flow_lcin_accumulators_for_cells(Long comm_id)
-
get_upstream_cell
public final AbstractCell get_upstream_cell()
-
get_dnstream_cell
public final AbstractCell get_dnstream_cell()
-
create_cells
public final void create_cells(core.AbstractFluidModel model, float cell_length_meters) throws OTMException
- Throws:
OTMException
-
process_buffer
public void process_buffer(float timestamp) throws OTMException
- Throws:
OTMException
-
compute_lcw
public void compute_lcw()
-
-