Package models.vehicle.newell
Class ModelNewell
- java.lang.Object
-
- core.AbstractModel
-
- core.AbstractVehicleModel
-
- models.vehicle.newell.ModelNewell
-
- All Implemented Interfaces:
InterfaceModel,InterfaceVehicleModel,Pokable
public class ModelNewell extends core.AbstractVehicleModel implements Pokable
-
-
Field Summary
Fields Modifier and Type Field Description floatdt
-
Constructor Summary
Constructors Constructor Description ModelNewell(String name, Set<Link> links, StochasticProcess process, ModelParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description core.AbstractLaneGroupcreate_lane_group(Link link, Side side, Float length, int num_lanes, int start_lane, Set<RoadConnection> out_rcs, Roadparam rp)AbstractOutputcreate_output(Scenario scenario, String prefix, String output_folder, OutputRequest jaxb_or)core.AbstractVehiclecreate_vehicle(Long comm_id, Set<InterfaceVehicleListener> event_listeners)Map<core.AbstractLaneGroup,Double>lanegroup_proportions(Collection<? extends core.AbstractLaneGroup> candidate_lanegroups)voidpoke(Dispatcher dispatcher, float timestamp)voidregister_with_dispatcher(Scenario scenario, Dispatcher dispatcher, float start_time)voidset_state_for_link(Link link)core.AbstractVehicletranslate_vehicle(core.AbstractVehicle that)voidvalidate_post_init(OTMErrorLog errorLog)voidvalidate_pre_init(OTMErrorLog errorLog)
-
-
-
Constructor Detail
-
ModelNewell
public ModelNewell(String name, Set<Link> links, StochasticProcess process, ModelParams params) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
create_output
public AbstractOutput create_output(Scenario scenario, String prefix, String output_folder, OutputRequest jaxb_or) throws OTMException
- Specified by:
create_outputin interfaceInterfaceModel- Throws:
OTMException
-
create_lane_group
public core.AbstractLaneGroup create_lane_group(Link link, Side side, Float length, int num_lanes, int start_lane, Set<RoadConnection> out_rcs, Roadparam rp)
- Specified by:
create_lane_groupin interfaceInterfaceModel
-
lanegroup_proportions
public Map<core.AbstractLaneGroup,Double> lanegroup_proportions(Collection<? extends core.AbstractLaneGroup> candidate_lanegroups)
- Specified by:
lanegroup_proportionsin interfaceInterfaceModel
-
translate_vehicle
public core.AbstractVehicle translate_vehicle(core.AbstractVehicle that)
- Specified by:
translate_vehiclein interfaceInterfaceVehicleModel
-
create_vehicle
public core.AbstractVehicle create_vehicle(Long comm_id, Set<InterfaceVehicleListener> event_listeners)
- Specified by:
create_vehiclein interfaceInterfaceVehicleModel
-
set_state_for_link
public void set_state_for_link(Link link)
- Specified by:
set_state_for_linkin interfaceInterfaceModel
-
validate_pre_init
public void validate_pre_init(OTMErrorLog errorLog)
- Specified by:
validate_pre_initin interfaceInterfaceModel
-
validate_post_init
public void validate_post_init(OTMErrorLog errorLog)
- Specified by:
validate_post_initin interfaceInterfaceModel
-
register_with_dispatcher
public void register_with_dispatcher(Scenario scenario, Dispatcher dispatcher, float start_time)
- Specified by:
register_with_dispatcherin interfaceInterfaceModel
-
poke
public void poke(Dispatcher dispatcher, float timestamp) throws OTMException
- Specified by:
pokein interfacePokable- Throws:
OTMException
-
-