Class FWSimResultCache
java.lang.Object
net.simplace.sim.io.FWSimCache
net.simplace.sim.io.output.FWSimResultCache
- All Implemented Interfaces:
FWSimFieldContainer
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
-
Field Summary
Fields inherited from class FWSimCache
iArrayMode, iCache, iFieldcount, iFrequence, iHeaderVariables, iName, iOrderNumber, iVariablesIndexes -
Constructor Summary
ConstructorsConstructorDescriptionFWSimResultCache(LinkedHashMap<String, FWSimVariable<?>> aHeaderVariables, FWSimIOAdapter.FREQUENCE aFrequence, String aName, String aID, int aOrderNumber) Creates an empty cache. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates an empty cache with the same structure (the header variables are shared).org.jdom2.ElementReturnsnull; no form.org.jdom2.ElementgetEditFormXML(boolean aEnabled) Returnsnull; no form.getID()Returnsnull; the cache has no variable map.org.jdom2.ElementtoXML()Not implemented.voidupdate(FWSimQueueObjectMap aObjectToWrite) Stores an output line under its date; an existing line with the same date is replaced.Methods inherited from class FWSimCache
addVariable, checkCondition, createVariables, getCache, getContentType, getFieldcount, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVariableIndex, getVariables, isArrayMode, isConditionCheck, removeVariable, setCacheMap
-
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 linesaFrequence- frequency of the output (determines the time periods of the chart series)aName- name of the cacheaID- id of the cacheaOrderNumber- order number
-
-
Method Details
-
toXML
public org.jdom2.Element toXML()Not implemented.- Returns:
- always
null - See Also:
-
update
Stores an output line under its date; an existing line with the same date is replaced.- Parameters:
aObjectToWrite- the output line
-
clone
-
getCreateFormXML
public org.jdom2.Element getCreateFormXML()Returnsnull; no form.- Returns:
- the XML form definition used by the GUI to create this container
-
getVarMap
Returnsnull; the cache has no variable map.- Returns:
- the var map this container belongs to
-
getEditFormXML
public org.jdom2.Element getEditFormXML(boolean aEnabled) Returnsnull; no form.- Parameters:
aEnabled- iffalse, the form fields are read-only- Returns:
- the XML form definition used by the GUI to edit the settings of this container
-
getID
- Returns:
- id of the cache, e.g. of the simulation it belongs to
-