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 class
OutputLinkQueues.QueueInfo
-
Nested classes/interfaces inherited from class output.AbstractOutput
AbstractOutput.Type
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,OutputLinkQueues.QueueInfo>
lg2qinfo
Set<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 String
get_output_file()
List<Double>
get_transit_for_link(long link_id)
List<Double>
get_waiting_for_link(long link_id)
String
get_yaxis_label()
void
initialize(Scenario scenario)
void
plot(String filename)
void
write(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_file
in interfaceInterfaceOutput
- Overrides:
get_output_file
in classAbstractOutputTimed
-
write
public void write(float timestamp) throws OTMException
- Overrides:
write
in 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:
initialize
in classAbstractOutput
- Throws:
OTMException
-
-