Package output
Class OutputVehicleEvents
- java.lang.Object
-
- output.AbstractOutput
-
- output.AbstractOutputEvent
-
- output.OutputVehicleEvents
-
- All Implemented Interfaces:
InterfaceOutput
,InterfacePlottable
,InterfaceVehicleListener
public class OutputVehicleEvents extends AbstractOutputEvent implements InterfaceVehicleListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class output.AbstractOutput
AbstractOutput.Type
-
-
Field Summary
Fields Modifier and Type Field Description Long
commodity_id
-
Fields inherited from class output.AbstractOutputEvent
events
-
Fields inherited from class output.AbstractOutput
output_folder, prefix, scenario, type, write_to_file, writer
-
-
Constructor Summary
Constructors Constructor Description OutputVehicleEvents(Scenario scenario, String prefix, String output_folder, Long commodity_id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get_output_file()
String
get_yaxis_label()
void
move_from_to_queue(float timestamp, MesoVehicle vehicle, Queue from_queue, Queue to_queue)
void
register(RunParameters props, Dispatcher dispatcher)
-
Methods inherited from class output.AbstractOutputEvent
get_events, initialize, plot, write
-
Methods inherited from class output.AbstractOutput
close, getType, make_time_chart, open, validate_post_init
-
-
-
-
Field Detail
-
commodity_id
public Long commodity_id
-
-
Constructor Detail
-
OutputVehicleEvents
public OutputVehicleEvents(Scenario scenario, String prefix, String output_folder, Long commodity_id) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
register
public void register(RunParameters props, Dispatcher dispatcher) throws OTMException
- Specified by:
register
in interfaceInterfaceOutput
- Throws:
OTMException
-
get_output_file
public String get_output_file()
- Specified by:
get_output_file
in interfaceInterfaceOutput
- Overrides:
get_output_file
in classAbstractOutput
-
move_from_to_queue
public void move_from_to_queue(float timestamp, MesoVehicle vehicle, Queue from_queue, Queue to_queue) throws OTMException
- Specified by:
move_from_to_queue
in interfaceInterfaceVehicleListener
- Throws:
OTMException
-
get_yaxis_label
public String get_yaxis_label()
- Specified by:
get_yaxis_label
in interfaceInterfacePlottable
-
-