Package models.vehicle.spatialq
Class OutputLinkQueues
- java.lang.Object
-
- output.AbstractOutput
-
- output.AbstractOutputTimed
-
- models.vehicle.spatialq.OutputLinkQueues
-
- All Implemented Interfaces:
InterfaceOutput,InterfacePlottable
public class OutputLinkQueues extends AbstractOutputTimed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOutputLinkQueues.QueueInfo-
Nested classes/interfaces inherited from class output.AbstractOutput
AbstractOutput.Type
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,OutputLinkQueues.QueueInfo>lg2qinfoSet<Long>link_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 OutputLinkQueues(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 Stringget_output_file()List<Double>get_transit_for_link(long link_id)List<Double>get_waiting_for_link(long link_id)Stringget_yaxis_label()voidinitialize(Scenario scenario)voidplot(String filename)voidwrite(float timestamp)-
Methods inherited from class output.AbstractOutputTimed
close, get_commodity_id, get_outdt, open, register, validate_post_init
-
Methods inherited from class output.AbstractOutput
getType, make_time_chart
-
-
-
-
Field Detail
-
lg2qinfo
public Map<Long,OutputLinkQueues.QueueInfo> lg2qinfo
-
-
Constructor Detail
-
OutputLinkQueues
public OutputLinkQueues(Scenario scenario, String prefix, String output_folder, Long commodity_id, Collection<Long> link_ids, Float outDt) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
get_output_file
public String get_output_file()
- Specified by:
get_output_filein interfaceInterfaceOutput- Overrides:
get_output_filein classAbstractOutputTimed
-
write
public void write(float timestamp) throws OTMException- Overrides:
writein classAbstractOutputTimed- Throws:
OTMException
-
get_yaxis_label
public String get_yaxis_label()
-
plot
public void plot(String filename) throws OTMException
- Throws:
OTMException
-
initialize
public void initialize(Scenario scenario) throws OTMException
- Overrides:
initializein classAbstractOutput- Throws:
OTMException
-
-