Class EventWriterJson
- java.lang.Object
-
- org.matsim.core.events.algorithms.EventWriterJson
-
- All Implemented Interfaces:
MatsimExtensionPoint
,EventWriter
,BasicEventHandler
,EventHandler
public class EventWriterJson extends Object implements EventWriter, BasicEventHandler
- Author:
- mrieser / Simunto GmbH Code contributed by Data Foundry, LLC.
-
-
Constructor Summary
Constructors Constructor Description EventWriterJson(File outfile)
EventWriterJson(OutputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeFile()
void
handleEvent(Event event)
void
reset(int iter)
Gives the event handler the possibility to clean up its internal state.
-
-
-
Constructor Detail
-
EventWriterJson
public EventWriterJson(File outfile)
-
EventWriterJson
public EventWriterJson(OutputStream stream)
-
-
Method Detail
-
closeFile
public void closeFile()
- Specified by:
closeFile
in interfaceEventWriter
-
handleEvent
public void handleEvent(Event event)
- Specified by:
handleEvent
in interfaceBasicEventHandler
-
reset
public void reset(int iter)
Description copied from interface:EventHandler
Gives the event handler the possibility to clean up its internal state. Within a Controler-Simulation, this is called before the mobsim starts.- Specified by:
reset
in interfaceEventHandler
- Parameters:
iter
- the up-coming iteration from which up-coming events will be from.
-
-