Class FWSimStatisticContainer

java.lang.Object
net.simplace.sim.io.output.FWSimStatisticContainer

public class FWSimStatisticContainer extends Object
Holds the statistics (stat elements) of an output and collects, per simulation, the output columns they need (observed and simulated values) in a result cache. At the end of a simulation the statistics are calculated from these caches (see FWSimOutput.calculateStatistics(String)).
Author:
Andreas Enders
  • Constructor Details

    • FWSimStatisticContainer

      public FWSimStatisticContainer()
  • Method Details

    • getStatistics

      public LinkedList<FWSimStatisticVariable> getStatistics()
      Returns:
      the statistics of the output (the live list)
    • getStatisticColmnIndices

      public SortedSet<Integer> getStatisticColmnIndices()
      Returns:
      the indices of the output columns needed by the statistics (the live set)
    • getStatisticsResultCache

      public FWSimResultCache getStatisticsResultCache(String aSimulationID)
      Parameters:
      aSimulationID - id of the simulation
      Returns:
      the result cache of the simulation, or null if no data was collected for it
    • setStatisticsResultCache

      public void setStatisticsResultCache(FWSimResultCache aStatisticsResultCache)
      Parameters:
      aStatisticsResultCache - the template cache that is cloned for each simulation
    • getHeaderVariables

      public LinkedHashMap<String, FWSimVariable<?>> getHeaderVariables()
      Returns:
      the header variables of the statistics result (the live map)
    • update

      public void update(FWSimQueueObjectMap aQueueMap)
      Adds the statistics columns of an output line to the result cache of its simulation; the cache is cloned from the template on the first line of a simulation.
      Parameters:
      aQueueMap - an output line