Package output
Class AbstractOutputTimedLink
- java.lang.Object
-
- output.AbstractOutput
-
- output.AbstractOutputTimed
-
- output.AbstractOutputTimedLink
-
- All Implemented Interfaces:
InterfaceOutput
,InterfacePlottable
- Direct Known Subclasses:
OutputLinkFlow
,OutputLinkSumVehicles
,OutputLinkVehicles
,OutputSubnetworkVHT
public abstract class AbstractOutputTimedLink extends AbstractOutputTimed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractOutputTimedLink.LinkProfile
-
Nested classes/interfaces inherited from class output.AbstractOutput
AbstractOutput.Type
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,AbstractOutputTimedLink.LinkProfile>
linkprofiles
long[]
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 AbstractOutputTimedLink(Scenario scenario, String prefix, String output_folder, Long commodity_id, Long subnetwork_id, Float outDt)
AbstractOutputTimedLink(Scenario scenario, String prefix, String output_folder, Long commodity_id, Collection<Long> link_ids, Float outDt)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long[]
get_link_ids()
String
get_output_file()
Profile1D
get_profile_for_linkid(Long link_id)
org.jfree.data.xy.XYSeries
get_series_for_linkid(Long link_id)
List<Float>
get_time()
abstract double
get_value_for_link(Long link_id)
void
initialize(Scenario scenario)
void
plot(String filename)
void
plot_for_links(Set<Long> link_ids, String filename)
void
validate_post_init(OTMErrorLog errorLog)
void
write(float timestamp)
-
Methods inherited from class output.AbstractOutputTimed
close, get_commodity_id, get_outdt, open, register
-
Methods inherited from class output.AbstractOutput
getType, make_time_chart
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface output.InterfacePlottable
get_yaxis_label
-
-
-
-
Field Detail
-
ordered_ids
public long[] ordered_ids
-
linkprofiles
public Map<Long,AbstractOutputTimedLink.LinkProfile> linkprofiles
-
-
Constructor Detail
-
AbstractOutputTimedLink
public AbstractOutputTimedLink(Scenario scenario, String prefix, String output_folder, Long commodity_id, Collection<Long> link_ids, Float outDt) throws OTMException
- Throws:
OTMException
-
AbstractOutputTimedLink
public AbstractOutputTimedLink(Scenario scenario, String prefix, String output_folder, Long commodity_id, Long subnetwork_id, Float outDt) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
get_value_for_link
public abstract double get_value_for_link(Long link_id)
-
get_output_file
public String get_output_file()
- Specified by:
get_output_file
in interfaceInterfaceOutput
- Overrides:
get_output_file
in classAbstractOutputTimed
-
write
public final void write(float timestamp) throws OTMException
- Overrides:
write
in classAbstractOutputTimed
- Throws:
OTMException
-
plot
public void plot(String filename) throws OTMException
- Throws:
OTMException
-
validate_post_init
public void validate_post_init(OTMErrorLog errorLog)
- Overrides:
validate_post_init
in classAbstractOutputTimed
-
initialize
public void initialize(Scenario scenario) throws OTMException
- Overrides:
initialize
in classAbstractOutput
- Throws:
OTMException
-
get_series_for_linkid
public org.jfree.data.xy.XYSeries get_series_for_linkid(Long link_id)
-
get_link_ids
public final long[] get_link_ids()
-
plot_for_links
public final void plot_for_links(Set<Long> link_ids, String filename) throws OTMException
- Throws:
OTMException
-
-