Package core
Class AbstractDemandGenerator
- java.lang.Object
-
- core.AbstractDemandGenerator
-
public abstract class AbstractDemandGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractDemandGenerator(core.Link link, profiles.Profile1D profile, commodity.Commodity commodity, commodity.Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
get_commodity_id()
Long
get_destination_node_id()
Long
get_link_or_path_id()
Long
get_origin_node_id()
double
get_total_trips()
commodity.DemandType
get_type()
void
initialize(core.Scenario scenario)
void
register_next_change(dispatch.Dispatcher dispatcher, float timestamp)
void
register_with_dispatcher(dispatch.Dispatcher dispatcher)
core.State
sample_state()
void
set_demand_vps(dispatch.Dispatcher dispatcher, float time, double vps)
void
validate(error.OTMErrorLog errorLog)
-
-
-
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()
-
-