Start
|
Index
|
Overview
•
PREV
|
UP
|
NEXT
net.simplace.simulation.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.simulation.io.resources.FWSimResourceCache
and
net.simplace.simulation.io.output.FWSimResultCache
.
public abstract class
FWSimCache
implements
net.simplace.simulation.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);
// Protected Instance Variables
protected int
iFieldcount
;
protected String
iName
;
protected HashMap
iCache
;
protected boolean
iArrayMode
;
protected LinkedHashMap
iHeaderVariables
;
protected
FWSimIOAdapter.FREQUENCE
iFrequence
;
protected int
iOrderNumber
;
// Public Instance Methods
public String
getName
();
// From
net.simplace.simulation.util.FWSimFieldContainer
returns
the name
public HashMap
createVariables
();
// From
net.simplace.simulation.util.FWSimFieldContainer
public HashMap
getCache
();
returns
the whole data content within the object[]
public void
addVariable
(
FWSimVariable
aVariable);
// From
net.simplace.simulation.util.FWSimFieldContainer
use this method with care - data has to be synchronized with the HeaderVariables
public
FWSimVariable
getVariable
(String aID);
// From
net.simplace.simulation.util.FWSimFieldContainer
public void
removeVariable
(String aID);
// From
net.simplace.simulation.util.FWSimFieldContainer
use this method with care - data has to be synchronized with the HeaderVariables
public Collection
getOutputVariables
();
// From
net.simplace.simulation.util.FWSimFieldContainer
delivers a list from the header information
public int
getOrderNumber
();
// From
net.simplace.simulation.util.FWSimFieldContainer
public Collection
getInputVariables
();
// From
net.simplace.simulation.util.FWSimFieldContainer
returned list will always be empty! Resources have not input fields
public LinkedHashMap
getFieldMap
();
// From
net.simplace.simulation.util.FWSimFieldContainer
taken from the HeaderVariables
public void
setCacheMap
(HashMap aNewFieldMap);
setting complete new data structure
aNewFieldMap
public
FWSimVariable.CONTENT_TYPE
getContentType
();
// From
net.simplace.simulation.util.FWSimFieldContainer
public
FWSimIOAdapter.FREQUENCE
getFrequence
();
// From
net.simplace.simulation.util.FWSimFieldContainer
}
Extended by:
net.simplace.simulation.io.resources.FWSimResourceCache
,
net.simplace.simulation.io.output.FWSimResultCache