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
public void addOutput(FWSimOutput aOutput);

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
public void outputCalibrationResult(FWSimVarMap aVarMap);

outputs the content of VarMap to all configured output adapters
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 void initializeOutputs(FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE
aProject_MODE);

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 void registerOutputListener(FWSimOutputListener aOutputListener);

public void removeOutputListener(FWSimOutputListener aOutputListener);

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
public void updateAdapter(FWSimVarMap aVarMap);

updates the net.simplace.sim.util.FWSimVarMap in all stored net.simplace.sim.io.resources.FWSimResourceCache
public void removeAdapter(FWSimFieldContainer aFieldContainer);

removes an net.simplace.sim.io.output.FWSimOutput to remove it from solution - used in GUI


}



Returned by: net.simplace.sim.FWSimSession.getOutputManager()