Package core
Class AbstractLaneGroup
- java.lang.Object
-
- core.AbstractLaneGroup
-
- All Implemented Interfaces:
actuator.InterfaceTarget
,core.InterfaceLaneGroup
,Comparable<AbstractLaneGroup>
public abstract class AbstractLaneGroup extends Object implements Comparable<AbstractLaneGroup>, core.InterfaceLaneGroup, actuator.InterfaceTarget
-
-
Field Summary
Fields Modifier and Type Field Description core.packet.StateContainer
buffer
static Map<core.geometry.Side,models.Maneuver>
side2maneuver
traveltime.AbstractLaneGroupTimer
travel_timer
-
Constructor Summary
Constructors Constructor Description AbstractLaneGroup(core.Link link, core.geometry.Side side, float length, int num_lanes, int start_lane, Set<core.RoadConnection> out_rcs, jaxb.Roadparam rp)
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface core.InterfaceLaneGroup
add_vehicle_packet, allocate_state, get_lat_supply, get_max_vehicles, get_upstream_vehicle_position, release_vehicle_packets, set_actuator_capacity_vps, set_actuator_speed_mps, set_to_nominal_capacity, update_long_supply, validate_post_init, vehs_dwn_for_comm, vehs_in_for_comm, vehs_out_for_comm
-
-
-
-
Field Detail
-
side2maneuver
public static Map<core.geometry.Side,models.Maneuver> side2maneuver
-
buffer
public core.packet.StateContainer buffer
-
travel_timer
public traveltime.AbstractLaneGroupTimer travel_timer
-
-
Constructor Detail
-
AbstractLaneGroup
public AbstractLaneGroup(core.Link link, core.geometry.Side side, float length, int num_lanes, int start_lane, Set<core.RoadConnection> out_rcs, jaxb.Roadparam rp)
-
-
Method Detail
-
delete
public void delete()
-
getTypeAsTarget
public String getTypeAsTarget()
- Specified by:
getTypeAsTarget
in interfaceactuator.InterfaceTarget
-
getIdAsTarget
public long getIdAsTarget()
- Specified by:
getIdAsTarget
in interfaceactuator.InterfaceTarget
-
get_model
public AbstractModel get_model()
- Specified by:
get_model
in interfaceactuator.InterfaceTarget
-
register_actuator
public void register_actuator(Set<Long> commids, actuator.AbstractActuator act, boolean override) throws error.OTMException
- Specified by:
register_actuator
in interfaceactuator.InterfaceTarget
- Throws:
error.OTMException
-
compareTo
public final int compareTo(AbstractLaneGroup that)
- Specified by:
compareTo
in interfaceComparable<AbstractLaneGroup>
-
set_road_params
public void set_road_params(jaxb.Roadparam r)
-
initialize
public void initialize(core.Scenario scenario, float start_time) throws error.OTMException
- Throws:
error.OTMException
-
request_flow_accumulator
public final core.FlowAccumulatorState request_flow_accumulator(Set<Long> comm_ids)
-
update_flow_accummulators
public final void update_flow_accummulators(core.State state, double num_vehicles)
-
getId
public final long getId()
-
get_road_params
public jaxb.Roadparam get_road_params()
-
get_link
public final core.Link get_link()
-
get_side
public final core.geometry.Side get_side()
-
get_start_lane_up
public final int get_start_lane_up()
-
get_start_lane_dn
public final int get_start_lane_dn()
-
get_num_lanes
public final int get_num_lanes()
-
get_length
public final float get_length()
-
get_total_vehicles_for_commodity
public final float get_total_vehicles_for_commodity(Long commid)
-
get_total_vehicles
public final float get_total_vehicles()
-
get_long_supply
public double get_long_supply()
- Specified by:
get_long_supply
in interfacecore.InterfaceLaneGroup
-
get_supply_per_lane
public final double get_supply_per_lane()
-
get_side_with_respect_to_lg
public final core.geometry.Side get_side_with_respect_to_lg(AbstractLaneGroup lg)
-
get_out_links
public final Set<core.Link> get_out_links()
-
get_neighbor_in
public final AbstractLaneGroup get_neighbor_in()
-
get_neighbor_out
public final AbstractLaneGroup get_neighbor_out()
-
get_rc_for_outlink
public core.RoadConnection get_rc_for_outlink(long linkid)
-
get_rc_for_state
public Long get_rc_for_state(core.State state)
-
get_maneuvers_for_state
public Set<models.Maneuver> get_maneuvers_for_state(core.State state)
-
get_maneuvprob_for_state
public Map<models.Maneuver,Double> get_maneuvprob_for_state(core.State state)
-
set_actuator_allow_comm
public void set_actuator_allow_comm(boolean allow, Long commid) throws error.OTMException
- Specified by:
set_actuator_allow_comm
in interfacecore.InterfaceLaneGroup
- Throws:
error.OTMException
-
-