Buffered Writer for DataProcessors
DataProcessors (DP's) keep the data in memory over the whole simulation time and only dump the data to files at the end of the simulation. Some, but not all DP's, do need all data at the end to merge or calculated the their values. All other can dump their data directly to disk at the moment they get the data.
Problem to solve
- Large memory footprint for long/large simulation
- At least some data when simulation fails at some point
Further details
- Use Buffered writer provided by Java is possible to minimze I/O access. Meaning, only write date at junks of 1-4 kB and not for each double value.
- provide read-back feature for other DP's that need the data at the end