Package net.simplace.sim.io
Klasse FWSimCache
java.lang.Object
net.simplace.sim.io.FWSimCache
- Alle implementierten Schnittstellen:
FWSimFieldContainer
- Bekannte direkte Unterklassen:
FWSimResourceCache,FWSimResultCache,FWSimulationControlCache
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:
FWSimResourceCache and FWSimResultCache.- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected booleanprotected intprotected FWSimIOAdapter.FREQUENCEprotected LinkedHashMap<String, FWSimVariable<?>> protected Stringprotected int -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedFWSimCache(int aFieldcount, String aName, HashMap<Object, Object[]> aCache, boolean aArrayMode, LinkedHashMap<String, FWSimVariable<?>> aHeaderVariables, FWSimIOAdapter.FREQUENCE aFrequence, int aOrderNumber, HashMap<String, Integer> aVariableIndex) FWSimCache(LinkedHashMap<String, FWSimVariable<?>> aHeaderVariables, FWSimIOAdapter.FREQUENCE aFrequence, String aName, int aOrderNumber) constructor from different media types in the fitting structure also used by transformers -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddVariable(FWSimVariable<?> aVariable) use this method with care - data has to be synchronized with the HeaderVariablesvoidcheckCondition(Boolean aCheckResult, String aMessage) Called from inside the FWSimFieldContainer to log the initialization Errors.getCache()inttaken from the HeaderVariablesreturned list will always be empty!getName()intdelivers a list from the header informationgetVariable(String aID) getVariableIndex(String aFieldName) booleanbooleanvoidremoveVariable(String aID) use this method with care - data has to be synchronized with the HeaderVariablesvoidsetCacheMap(HashMap<Object, Object[]> aNewFieldMap) setting complete new data structureVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden net.simplace.sim.util.FWSimFieldContainer
getCreateFormXML, getEditFormXML, getVarMap, toXML
-
Felddetails
-
iFieldcount
protected int iFieldcount -
iName
-
iCache
-
iArrayMode
protected boolean iArrayMode -
iHeaderVariables
-
iVariablesIndexes
-
iFrequence
-
iOrderNumber
protected int iOrderNumber
-
-
Konstruktordetails
-
FWSimCache
public FWSimCache(LinkedHashMap<String, FWSimVariable<?>> aHeaderVariables, FWSimIOAdapter.FREQUENCE aFrequence, String aName, int aOrderNumber) constructor from different media types in the fitting structure also used by transformers- Parameter:
aHeaderVariables-aFrequence-aName-aOrderNumber-
-
FWSimCache
protected FWSimCache(int aFieldcount, String aName, HashMap<Object, Object[]> aCache, boolean aArrayMode, LinkedHashMap<String, FWSimVariable<?>> aHeaderVariables, FWSimIOAdapter.FREQUENCE aFrequence, int aOrderNumber, HashMap<String, Integer> aVariableIndex) - Parameter:
aFieldcount-aName-aCache-aArrayMode-aHeaderVariables-aFrequence-aOrderNumber-aVariableIndex-
-
-
Methodendetails
-
getName
- Angegeben von:
getNamein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the name
-
getFieldcount
public int getFieldcount()- Gibt zurück:
- the fieldcount
-
isArrayMode
public boolean isArrayMode()- Gibt zurück:
- the arrayMode
-
createVariables
- Angegeben von:
createVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- variables from the field map
- Siehe auch:
-
getCache
- Gibt zurück:
- the whole data content within the object[]
-
addVariable
use this method with care - data has to be synchronized with the HeaderVariables- Angegeben von:
addVariablein SchnittstelleFWSimFieldContainer- Parameter:
aVariable-- Siehe auch:
-
getVariable
- Angegeben von:
getVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Gibt zurück:
- FWSimVariable for ID in Field Map
- Siehe auch:
-
getVariables
- Gibt zurück:
- the Header Variables
- Siehe auch:
-
removeVariable
use this method with care - data has to be synchronized with the HeaderVariables- Angegeben von:
removeVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Siehe auch:
-
getOutputVariables
delivers a list from the header information- Angegeben von:
getOutputVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- FWSimVarables filtered - only output Variables
- Siehe auch:
-
getOrderNumber
public int getOrderNumber()- Angegeben von:
getOrderNumberin SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
getInputVariables
returned list will always be empty! Resources have not input fields- Angegeben von:
getInputVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- FWSimVarables filtered - only input Variables
- Siehe auch:
-
getFieldMap
taken from the HeaderVariables- Angegeben von:
getFieldMapin SchnittstelleFWSimFieldContainer- Gibt zurück:
- whole field map as created in createVariables()
- Siehe auch:
-
setCacheMap
setting complete new data structure- Parameter:
aNewFieldMap-
-
getContentType
- Angegeben von:
getContentTypein SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
getFrequence
- Angegeben von:
getFrequencein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the Frequence of the Container calling
- Siehe auch:
-
getVariableIndex
- Parameter:
aFieldName-- Gibt zurück:
- the variable index
-
checkCondition
Beschreibung aus Schnittstelle kopiert:FWSimFieldContainerCalled from inside the FWSimFieldContainer to log the initialization Errors.- Angegeben von:
checkConditionin SchnittstelleFWSimFieldContainer- Parameter:
aCheckResult-aMessage-
-
isConditionCheck
public boolean isConditionCheck()- Angegeben von:
isConditionCheckin SchnittstelleFWSimFieldContainer
-