Package core
Class AbstractFluidModel
- java.lang.Object
-
- core.AbstractModel
-
- core.AbstractFluidModel
-
- All Implemented Interfaces:
core.InterfaceFluidModel,core.InterfaceModel
public abstract class AbstractFluidModel extends AbstractModel implements core.InterfaceFluidModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class core.AbstractModel
AbstractModel.Type
-
-
Field Summary
Fields Modifier and Type Field Description floatdt_sec-
Fields inherited from class core.AbstractModel
links, name, stochastic_process, type
-
-
Constructor Summary
Constructors Constructor Description AbstractFluidModel(String name, Set<core.Link> links, float dt_sec, utils.StochasticProcess process, jaxb.ModelParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(core.Scenario scenario, jaxb.Lanechanges lcs)AbstractLaneGroupcreate_lane_group(core.Link link, core.geometry.Side side, Float length, int num_lanes, int start_lane, Set<core.RoadConnection> out_rcs, jaxb.Roadparam rp)AbstractDemandGeneratorcreate_source(core.Link origin, profiles.Profile1D profile, commodity.Commodity commodity, commodity.Path path)models.fluid.nodemodel.NodeModelget_node_model_for_node(Long node_id)voidinitialize(core.Scenario scenario, float start_time)voidregister_with_dispatcher(core.Scenario scenario, dispatch.Dispatcher dispatcher, float start_time)voidset_state_for_link(core.Link link)voidupdate_flow(float timestamp)voidupdate_flow_I(float timestamp)voidupdate_flow_II(float timestamp)-
Methods inherited from class core.AbstractModel
add_vehicle_packet, create_lanegroup_packet
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
configure
public void configure(core.Scenario scenario, jaxb.Lanechanges lcs) throws error.OTMException- Overrides:
configurein classAbstractModel- Throws:
error.OTMException
-
set_state_for_link
public void set_state_for_link(core.Link link)
- Specified by:
set_state_for_linkin interfacecore.InterfaceModel
-
register_with_dispatcher
public void register_with_dispatcher(core.Scenario scenario, dispatch.Dispatcher dispatcher, float start_time)- Specified by:
register_with_dispatcherin interfacecore.InterfaceModel
-
create_lane_group
public AbstractLaneGroup create_lane_group(core.Link link, core.geometry.Side side, Float length, int num_lanes, int start_lane, Set<core.RoadConnection> out_rcs, jaxb.Roadparam rp)
- Specified by:
create_lane_groupin interfacecore.InterfaceModel
-
create_source
public final AbstractDemandGenerator create_source(core.Link origin, profiles.Profile1D profile, commodity.Commodity commodity, commodity.Path path)
- Specified by:
create_sourcein interfacecore.InterfaceModel
-
initialize
public void initialize(core.Scenario scenario, float start_time) throws error.OTMException- Overrides:
initializein classAbstractModel- Throws:
error.OTMException
-
update_flow
public final void update_flow(float timestamp) throws error.OTMException- Throws:
error.OTMException
-
update_flow_I
public final void update_flow_I(float timestamp) throws error.OTMException- Throws:
error.OTMException
-
update_flow_II
public final void update_flow_II(float timestamp) throws error.OTMException- Throws:
error.OTMException
-
get_node_model_for_node
public final models.fluid.nodemodel.NodeModel get_node_model_for_node(Long node_id)
-
-