Package output
Class OutputLinkSumVehicles
- java.lang.Object
-
- output.AbstractOutput
-
- output.AbstractOutputTimed
-
- output.AbstractOutputTimedLink
-
- output.OutputLinkSumVehicles
-
- All Implemented Interfaces:
InterfaceOutput
,InterfacePlottable
public class OutputLinkSumVehicles extends AbstractOutputTimedLink
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class output.AbstractOutputTimedLink
AbstractOutputTimedLink.LinkProfile
-
Nested classes/interfaces inherited from class output.AbstractOutput
AbstractOutput.Type
-
-
Field Summary
Fields Modifier and Type Field Description Float
simDt
Map<Long,Double>
totals
-
Fields inherited from class output.AbstractOutputTimedLink
linkprofiles, ordered_ids
-
Fields inherited from class output.AbstractOutputTimed
commodity, delim, outDt, time_writer
-
Fields inherited from class output.AbstractOutput
output_folder, prefix, scenario, type, write_to_file, writer
-
-
Constructor Summary
Constructors Constructor Description OutputLinkSumVehicles(Scenario scenario, String prefix, String output_folder, Long commodity_id, Collection<Long> link_ids, Float outDt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get_output_file()
double
get_value_for_link(Long link_id)
String
get_yaxis_label()
void
initialize(Scenario scenario)
void
plot(String filename)
void
register(RunParameters props, Dispatcher dispatcher)
void
update_total_vehicles(float timestamp)
void
validate_post_init(OTMErrorLog errorLog)
-
Methods inherited from class output.AbstractOutputTimedLink
get_link_ids, get_profile_for_linkid, get_series_for_linkid, get_time, plot_for_links, write
-
Methods inherited from class output.AbstractOutputTimed
close, get_commodity_id, get_outdt, open
-
Methods inherited from class output.AbstractOutput
getType, make_time_chart
-
-
-
-
Constructor Detail
-
OutputLinkSumVehicles
public OutputLinkSumVehicles(Scenario scenario, String prefix, String output_folder, Long commodity_id, Collection<Long> link_ids, Float outDt) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
initialize
public void initialize(Scenario scenario) throws OTMException
- Overrides:
initialize
in classAbstractOutputTimedLink
- Throws:
OTMException
-
register
public void register(RunParameters props, Dispatcher dispatcher)
- Specified by:
register
in interfaceInterfaceOutput
- Overrides:
register
in classAbstractOutputTimed
-
validate_post_init
public void validate_post_init(OTMErrorLog errorLog)
- Overrides:
validate_post_init
in classAbstractOutputTimedLink
-
update_total_vehicles
public void update_total_vehicles(float timestamp)
-
get_output_file
public String get_output_file()
- Specified by:
get_output_file
in interfaceInterfaceOutput
- Overrides:
get_output_file
in classAbstractOutputTimedLink
-
get_yaxis_label
public String get_yaxis_label()
-
plot
public void plot(String filename) throws OTMException
- Specified by:
plot
in interfaceInterfacePlottable
- Overrides:
plot
in classAbstractOutputTimedLink
- Throws:
OTMException
-
get_value_for_link
public double get_value_for_link(Long link_id)
- Specified by:
get_value_for_link
in classAbstractOutputTimedLink
-
-