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 float
dt
-
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.AbstractLaneGroup
create_lane_group(Link link, Side side, Float length, int num_lanes, int start_lane, Set<RoadConnection> out_rcs, Roadparam rp)
AbstractOutput
create_output(Scenario scenario, String prefix, String output_folder, OutputRequest jaxb_or)
core.AbstractVehicle
create_vehicle(Long comm_id, Set<InterfaceVehicleListener> event_listeners)
Map<core.AbstractLaneGroup,Double>
lanegroup_proportions(Collection<? extends core.AbstractLaneGroup> candidate_lanegroups)
void
poke(Dispatcher dispatcher, float timestamp)
void
register_with_dispatcher(Scenario scenario, Dispatcher dispatcher, float start_time)
void
set_state_for_link(Link link)
core.AbstractVehicle
translate_vehicle(core.AbstractVehicle that)
void
validate_post_init(OTMErrorLog errorLog)
void
validate_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_output
in 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_group
in interfaceInterfaceModel
-
lanegroup_proportions
public Map<core.AbstractLaneGroup,Double> lanegroup_proportions(Collection<? extends core.AbstractLaneGroup> candidate_lanegroups)
- Specified by:
lanegroup_proportions
in interfaceInterfaceModel
-
translate_vehicle
public core.AbstractVehicle translate_vehicle(core.AbstractVehicle that)
- Specified by:
translate_vehicle
in interfaceInterfaceVehicleModel
-
create_vehicle
public core.AbstractVehicle create_vehicle(Long comm_id, Set<InterfaceVehicleListener> event_listeners)
- Specified by:
create_vehicle
in interfaceInterfaceVehicleModel
-
set_state_for_link
public void set_state_for_link(Link link)
- Specified by:
set_state_for_link
in interfaceInterfaceModel
-
validate_pre_init
public void validate_pre_init(OTMErrorLog errorLog)
- Specified by:
validate_pre_init
in interfaceInterfaceModel
-
validate_post_init
public void validate_post_init(OTMErrorLog errorLog)
- Specified by:
validate_post_init
in interfaceInterfaceModel
-
register_with_dispatcher
public void register_with_dispatcher(Scenario scenario, Dispatcher dispatcher, float start_time)
- Specified by:
register_with_dispatcher
in interfaceInterfaceModel
-
poke
public void poke(Dispatcher dispatcher, float timestamp) throws OTMException
- Specified by:
poke
in interfacePokable
- Throws:
OTMException
-
-