Package net.simplace.sim.io.resources
Klasse FWSimResourceCache
java.lang.Object
net.simplace.sim.io.FWSimCache
net.simplace.sim.io.resources.FWSimResourceCache
- Alle implementierten Schnittstellen:
FWSimFieldContainer
- Bekannte direkte Unterklassen:
NetCDFResourceCache
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.
The class provides the feature of reading and caching the resources. A table in an internal
database is created to be able to use
DefaultSQLStatementTransformer.
Cache is used by FWSimResourceTransformers and FWSimResourceAdapter.- Autor:
- Andreas Enders
-
Feldübersicht
Von Klasse geerbte Felder net.simplace.sim.io.FWSimCache
iArrayMode, iCache, iFieldcount, iFrequence, iHeaderVariables, iName, iOrderNumber, iVariablesIndexes -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFWSimResourceCache(FWSimSession aFwSimSession, LinkedHashMap<String, String> aKeyMap, FWSimInputAdapter aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType) 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 HeaderVariablesvoidfillVarMapFromCache(FWSimVarMap aSimVarMap) default method to get data out of this resource: Fill invoidfillVarMapFromCache(FWSimVarMap aSimVarMap, FWSimInputAdapter aInputAdapter) default method to get data out of this resource: Fill inorg.jdom2.Elementorg.jdom2.ElementgetEditFormXML(boolean aEnabled) returned list will always be empty!delivers a list from the header informationgetVariable(String aID) booleanvoidremoveVariable(String aID) use this method with care - data has to be synchronized with the HeaderVariablesvoidsetInterfaceType(FWSimInterface.INTERFACE_TYPE aInterfaceType) booleanshouldUpdate(FWSimVarMap aVarMap) booleanshouldUpdate(FWSimVarMap aVarMap, FWSimInputAdapter aInputAdapter) splitCache(LinkedHashMap<String, String> aKeyMap) toString()org.jdom2.ElementtoXML()Von Klasse geerbte Methoden net.simplace.sim.io.FWSimCache
checkCondition, createVariables, getCache, getFieldcount, getFieldMap, getFrequence, getName, getOrderNumber, getVariableIndex, getVariables, isArrayMode, isConditionCheck, setCacheMap
-
Konstruktordetails
-
FWSimResourceCache
public FWSimResourceCache(FWSimSession aFwSimSession, LinkedHashMap<String, String> aKeyMap, FWSimInputAdapter aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType) constructor from different media types in the fitting structure also used by transformers- Parameter:
aFwSimSession-aKeyMap-aResourceAdapter-aUniqueID-aInterfaceType-
-
-
Methodendetails
-
fillVarMapFromCache
default method to get data out of this resource: Fill in- Parameter:
aSimVarMap-aResourceAdapter-
-
fillVarMapFromCache
default method to get data out of this resource: Fill in- Parameter:
aSimVarMap-aInputAdapter-
-
addVariable
use this method with care - data has to be synchronized with the HeaderVariables- Angegeben von:
addVariablein SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
addVariablein KlasseFWSimCache- Parameter:
aVariable-- Siehe auch:
-
getVariable
- Angegeben von:
getVariablein SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
getVariablein KlasseFWSimCache- Parameter:
aID-- Gibt zurück:
- FWSimVariable for ID in Field Map
- Siehe auch:
-
removeVariable
use this method with care - data has to be synchronized with the HeaderVariables- Angegeben von:
removeVariablein SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
removeVariablein KlasseFWSimCache- Parameter:
aID-- Siehe auch:
-
getOutputVariables
delivers a list from the header information- Angegeben von:
getOutputVariablesin SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
getOutputVariablesin KlasseFWSimCache- Gibt zurück:
- FWSimVarables filtered - only output Variables
- Siehe auch:
-
getInputVariables
returned list will always be empty! Resources have not input fields- Angegeben von:
getInputVariablesin SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
getInputVariablesin KlasseFWSimCache- Gibt zurück:
- FWSimVarables filtered - only input Variables
- Siehe auch:
-
getContentType
- Angegeben von:
getContentTypein SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
getContentTypein KlasseFWSimCache- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
getKeyMap
- Gibt zurück:
- the key map of this Resource
-
shouldUpdate
- Parameter:
aVarMap-- Gibt zurück:
- boolean if the rule is true or false
-
shouldUpdate
- Parameter:
aVarMap-aInputAdapter-- Gibt zurück:
- boolean if the rule is true or false
-
toXML
public org.jdom2.Element toXML()- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getCreateFormXML
public org.jdom2.Element getCreateFormXML()- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getEditFormXML
public org.jdom2.Element getEditFormXML(boolean aEnabled) - Parameter:
aEnabled-- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getCurrentSession
- Gibt zurück:
- current
FWSimSession
-
toString
-
getUniqueID
-
isFromTransformer
public boolean isFromTransformer()- Gibt zurück:
-
getResourceAdapter
- Gibt zurück:
-
splitCache
- Parameter:
aKeyMap-- Gibt zurück:
- a list of splitted cache maps
-
getVarMap
- Gibt zurück:
- number in the order of Components
-
getInterfaceType
- Gibt zurück:
- the interfaceType
-
setInterfaceType
- Parameter:
aInterfaceType- the interfaceType to set
-