Class FWSimResultCache

java.lang.Object
net.simplace.sim.io.FWSimCache
net.simplace.sim.io.output.FWSimResultCache
All Implemented Interfaces:
FWSimFieldContainer

public class FWSimResultCache extends FWSimCache
Cache of output lines in memory, keyed by the date of the line. It is used by the memory output adapter (e.g. for the charts of the GUI) and for collecting the data of the statistics.
Author:
XPMUser
  • Constructor Details

    • FWSimResultCache

      public FWSimResultCache(LinkedHashMap<String, FWSimVariable<?>> aHeaderVariables, FWSimIOAdapter.FREQUENCE aFrequence, String aName, String aID, int aOrderNumber)
      Creates an empty cache.
      Parameters:
      aHeaderVariables - header variables (columns) of the lines
      aFrequence - frequency of the output (determines the time periods of the chart series)
      aName - name of the cache
      aID - id of the cache
      aOrderNumber - order number
  • Method Details

    • toXML

      public org.jdom2.Element toXML()
      Not implemented.
      Returns:
      always null
      See Also:
    • update

      public void update(FWSimQueueObjectMap aObjectToWrite)
      Stores an output line under its date; an existing line with the same date is replaced.
      Parameters:
      aObjectToWrite - the output line
    • clone

      public Object clone()
      Creates an empty cache with the same structure (the header variables are shared).
      Overrides:
      clone in class Object
      See Also:
    • getCreateFormXML

      public org.jdom2.Element getCreateFormXML()
      Returns null; no form.
      Returns:
      the XML form definition used by the GUI to create this container
    • getVarMap

      public FWSimVarMap getVarMap()
      Returns null; the cache has no variable map.
      Returns:
      the var map this container belongs to
    • getEditFormXML

      public org.jdom2.Element getEditFormXML(boolean aEnabled)
      Returns null; no form.
      Parameters:
      aEnabled - if false, the form fields are read-only
      Returns:
      the XML form definition used by the GUI to edit the settings of this container
    • getID

      public String getID()
      Returns:
      id of the cache, e.g. of the simulation it belongs to