Package core

Class AbstractFluidModel

  • All Implemented Interfaces:
    core.InterfaceFluidModel, core.InterfaceModel

    public abstract class AbstractFluidModel
    extends AbstractModel
    implements core.InterfaceFluidModel
    • Field Detail

      • dt_sec

        public final float dt_sec
    • Constructor Detail

      • AbstractFluidModel

        public AbstractFluidModel​(String name,
                                  Set<core.Link> links,
                                  float dt_sec,
                                  utils.StochasticProcess process,
                                  jaxb.ModelParams params)
                           throws error.OTMException
        Throws:
        error.OTMException
    • Method Detail

      • configure

        public void configure​(core.Scenario scenario,
                              jaxb.Lanechanges lcs)
                       throws error.OTMException
        Overrides:
        configure in class AbstractModel
        Throws:
        error.OTMException
      • set_state_for_link

        public void set_state_for_link​(core.Link link)
        Specified by:
        set_state_for_link in interface core.InterfaceModel
      • register_with_dispatcher

        public void register_with_dispatcher​(core.Scenario scenario,
                                             dispatch.Dispatcher dispatcher,
                                             float start_time)
        Specified by:
        register_with_dispatcher in interface core.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_group in interface core.InterfaceModel
      • create_source

        public final AbstractDemandGenerator create_source​(core.Link origin,
                                                           profiles.Profile1D profile,
                                                           commodity.Commodity commodity,
                                                           commodity.Path path)
        Specified by:
        create_source in interface core.InterfaceModel
      • initialize

        public void initialize​(core.Scenario scenario,
                               float start_time)
                        throws error.OTMException
        Overrides:
        initialize in class AbstractModel
        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)