net.simplace.sim.io.output.FWSimOutputManager
With the output part of the main configuration xml the outputters are
instantiated in their given format and field (var-Map), frequence (Yearly,
Monthly, Daily, Complex) and generalization method (Sum,Mean,Max, Min,
Complex Rule (Value at day of Anthesis)) Singleton implementation Holds
different out putters for the model threads Ensures the efficient use of the
resources Takes data via VarMap and the containing SimVariables Values are
piped into the different output adapters Division between Data format and
content using IO Interfaces Able to abstract data access format as Database
via SQL Excel (csv) Uses File Access Pool and Connection Pool Have own
Threads for writing output
public class FWSimOutputManager {
// Public Constructors
public FWSimOutputManager(FWSimSession aFwSimSession);
// Public Instance Methods public void
addOutput(Element aOutput,
FWSimVarMap aVarMap,
FWSimProject.PROJECT_MODE aProjectMode);
adds an output to the list of outputs. for format description of the
xml-structure see
- aOutput
- aVarMap
- aProjectMode
public
FWSimOutput getOutput(String aName);
returns the FWSimOutput with given name
public synchronized void
OUTPUT(LocalDateTime aCurrentDate,
FWSimVarMap aVarMap, String aOutputType);
outputs the content of VarMap to all configured output adapters
- aCurrentDate
- aVarMap
- aOutputType
public void
outputCalibrationResult(
FWSimVarMap aVarMap);
outputs the content of VarMap to all configured output adapters
- aVarMap Array of selected Simulations data
public void
calculateStatistics(
FWSimVarMap aVarMap);
outputs the content of VarMap to all configured output adapters
public void runOutputWriters();
run all output writers in own threads - started once after initializing
the system.
public void stopOutputWriters();
stop all output writers in own threads - stopped imediately after stopping the session once after initializing
the system.
public boolean
updateInterface(
FWSimInterface aInterface,
FWSimVarMap aVarMap);
returns true, if an interface was updated successfully, otherwise returns false
public boolean isOutputStillWriting();
run all output writers in own threads - started once after initializing
the system.
returns if output queue is still writing
public void reset() throws Exception;
public ArrayList getOutputAdapters();
returns all the output adapters
public
FWSimInterface getInterface(String aName);
returns the connected Interface to the output adapters
public void
registerSimulations(List aSimulations);
public void
finishSimulationOutputs(
FWSimVarMap aVarMap);
removes the output caches from the outputs.
public void clearSimulations();
public boolean isWriterThreadStarted();
returns the isWriterThreadStarted
public boolean
checkSkipAboveSize(
FWSimVarMap aVarMap);
returns if project should be skiped
}
Returned by: net.simplace.sim.FWSimSession.getOutputManager()