Package models.vehicle.newell
Class NewellLaneGroup
- java.lang.Object
-
- core.AbstractLaneGroup
-
- models.vehicle.VehicleLaneGroup
-
- models.vehicle.newell.NewellLaneGroup
-
- All Implemented Interfaces:
InterfaceTarget
,InterfaceLaneGroup
,Comparable<core.AbstractLaneGroup>
public class NewellLaneGroup extends VehicleLaneGroup
-
-
Field Summary
Fields Modifier and Type Field Description double
dc
double
dv
double
dw
double
jam_vehpermeter
double
nom_dc
double
nom_dv
List<NewellVehicle>
vehicles
-
Fields inherited from class models.vehicle.VehicleLaneGroup
max_vehicles
-
-
Constructor Summary
Constructors Constructor Description NewellLaneGroup(Link link, Side side, float length, int num_lanes, int start_lane, Set<RoadConnection> out_rcs, Roadparam rp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_vehicle_packet(float timestamp, PacketLaneGroup vp, Long next_link_id)
void
allocate_state()
Double
get_upstream_vehicle_position()
void
initialize(Scenario scenario, float start_time)
void
release_vehicle_packets(float timestamp)
void
set_actuator_allow_comm(boolean allow, Long commid)
void
set_actuator_capacity_vps(double rate_vps)
void
set_actuator_speed_mps(double speed_mps)
void
set_road_params(Roadparam r)
void
set_to_nominal_capacity()
void
update_long_supply()
void
validate_post_init(OTMErrorLog errorLog)
float
vehs_dwn_for_comm(Long comm_id)
-
Methods inherited from class models.vehicle.VehicleLaneGroup
get_lat_supply, get_max_vehicles, vehs_in_for_comm, vehs_out_for_comm
-
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, toString, update_flow_accummulators
-
-
-
-
Field Detail
-
vehicles
public List<NewellVehicle> vehicles
-
nom_dv
public double nom_dv
-
nom_dc
public double nom_dc
-
jam_vehpermeter
public double jam_vehpermeter
-
dv
public double dv
-
dw
public double dw
-
dc
public double dc
-
-
Constructor Detail
-
NewellLaneGroup
public NewellLaneGroup(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
-
set_road_params
public void set_road_params(Roadparam r)
- Overrides:
set_road_params
in classVehicleLaneGroup
-
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)
-
set_actuator_allow_comm
public void set_actuator_allow_comm(boolean allow, Long commid)
- Specified by:
set_actuator_allow_comm
in interfaceInterfaceLaneGroup
- Overrides:
set_actuator_allow_comm
in classcore.AbstractLaneGroup
-
allocate_state
public void allocate_state()
-
update_long_supply
public void update_long_supply()
-
get_upstream_vehicle_position
public Double get_upstream_vehicle_position()
-
add_vehicle_packet
public void add_vehicle_packet(float timestamp, PacketLaneGroup vp, Long next_link_id) throws OTMException
- Throws:
OTMException
-
vehs_dwn_for_comm
public float vehs_dwn_for_comm(Long comm_id)
-
release_vehicle_packets
public void release_vehicle_packets(float timestamp) throws OTMException
- Throws:
OTMException
-
-