Package core

Class AbstractDemandGenerator


  • public abstract class AbstractDemandGenerator
    extends Object
    • Constructor Detail

      • AbstractDemandGenerator

        public AbstractDemandGenerator​(core.Link link,
                                       profiles.Profile1D profile,
                                       commodity.Commodity commodity,
                                       commodity.Path path)
    • Method Detail

      • set_demand_vps

        public void set_demand_vps​(dispatch.Dispatcher dispatcher,
                                   float time,
                                   double vps)
                            throws error.OTMException
        Throws:
        error.OTMException
      • sample_state

        public final core.State sample_state()
      • get_total_trips

        public double get_total_trips()
      • validate

        public void validate​(error.OTMErrorLog errorLog)
      • initialize

        public void initialize​(core.Scenario scenario)
                        throws error.OTMException
        Throws:
        error.OTMException
      • register_with_dispatcher

        public void register_with_dispatcher​(dispatch.Dispatcher dispatcher)
      • get_origin_node_id

        public Long get_origin_node_id()
      • get_destination_node_id

        public Long get_destination_node_id()
      • register_next_change

        public void register_next_change​(dispatch.Dispatcher dispatcher,
                                         float timestamp)
      • get_type

        public commodity.DemandType get_type()
      • get_commodity_id

        public Long get_commodity_id()
      • get_link_or_path_id

        public Long get_link_or_path_id()