Package core

Class AbstractLaneGroup

    • 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 interface actuator.InterfaceTarget
      • getIdAsTarget

        public long getIdAsTarget()
        Specified by:
        getIdAsTarget in interface actuator.InterfaceTarget
      • get_model

        public AbstractModel get_model()
        Specified by:
        get_model in interface actuator.InterfaceTarget
      • register_actuator

        public void register_actuator​(Set<Long> commids,
                                      actuator.AbstractActuator act,
                                      boolean override)
                               throws error.OTMException
        Specified by:
        register_actuator in interface actuator.InterfaceTarget
        Throws:
        error.OTMException
      • 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 interface core.InterfaceLaneGroup
      • get_supply_per_lane

        public final double get_supply_per_lane()
      • get_dn_lanes

        public final List<Integer> get_dn_lanes()
      • get_up_lanes

        public final List<Integer> get_up_lanes()
      • 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_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 interface core.InterfaceLaneGroup
        Throws:
        error.OTMException