net.simplace.sim.io.FWSimCache

Out of performance reasons the data from resources is stored within the ResourceCache. Herein a Object[] is used to make the data accessible very fast. See the 2 extending classes: net.simplace.sim.io.resources.FWSimResourceCache and net.simplace.sim.io.output.FWSimResultCache.


public abstract class FWSimCache implements
net.simplace.sim.util.FWSimFieldContainer {
// Public Constructors
public FWSimCache(LinkedHashMap aHeaderVariables, FWSimIOAdapter.FREQUENCE
aFrequence, String aName, int aOrderNumber);
// Protected Constructors
protected FWSimCache(int aFieldcount, String aName, HashMap aCache, boolean
aArrayMode, LinkedHashMap aHeaderVariables, FWSimIOAdapter.FREQUENCE
aFrequence, int aOrderNumber, HashMap aVariableIndex);

// Protected Instance Variables
protected int iFieldcount;
protected String iName;
protected HashMap iCache;
protected boolean iArrayMode;
protected LinkedHashMap iHeaderVariables;
protected HashMap iVariablesIndexes;
protected FWSimIOAdapter.FREQUENCE iFrequence;
protected int iOrderNumber;

// Public Instance Methods
public String getName(); // From net.simplace.sim.util.FWSimFieldContainer


returns the name
public HashMap createVariables(); // From
net.simplace.sim.util.FWSimFieldContainer


public HashMap getCache();


returns the whole data content within the object[]
public void addVariable(FWSimVariable aVariable);
// From net.simplace.sim.util.FWSimFieldContainer


use this method with care - data has to be synchronized with the HeaderVariables
public FWSimVariable getVariable(String aID); // From
net.simplace.sim.util.FWSimFieldContainer


public HashMap getVariables();


returns the Header Variables
public void removeVariable(String aID); // From
net.simplace.sim.util.FWSimFieldContainer


use this method with care - data has to be synchronized with the HeaderVariables
public Collection getOutputVariables(); // From
net.simplace.sim.util.FWSimFieldContainer


delivers a list from the header information
public int getOrderNumber(); // From
net.simplace.sim.util.FWSimFieldContainer


public Collection getInputVariables(); // From
net.simplace.sim.util.FWSimFieldContainer


returned list will always be empty! Resources have not input fields
public LinkedHashMap getFieldMap(); // From
net.simplace.sim.util.FWSimFieldContainer


taken from the HeaderVariables
public void setCacheMap(HashMap aNewFieldMap);

setting complete new data structure
public FWSimVariable.CONTENT_TYPE getContentType();
// From net.simplace.sim.util.FWSimFieldContainer


public FWSimIOAdapter.FREQUENCE getFrequence(); // From
net.simplace.sim.util.FWSimFieldContainer


public Integer getVariableIndex(String aFieldName);


returns the variable index
public void checkCondition(Boolean aCheckResult, String aMessage);
// From net.simplace.sim.util.FWSimFieldContainer


public boolean isConditionCheck(); // From
net.simplace.sim.util.FWSimFieldContainer




}



Extended by: net.simplace.sim.io.resources.FWSimResourceCache, net.simplace.sim.io.output.FWSimResultCache, net.simplace.sim.control.FWSimulationControlCache