Package net.simplace.sim.io
Klasse FWSimIOAdapter
java.lang.Object
net.simplace.sim.io.FWSimIOAdapter
- Alle implementierten Schnittstellen:
FWSimFieldContainer
- Bekannte direkte Unterklassen:
FWSimInputAdapter,FWSimOutputAdapter,FWSimSyncAdapter
Implements the
FWSimFieldContainer to be able to access resources and output
adaptors extending this class.
create form fields makes it possible to use the form fields to fill the content of this adapter.- Autor:
- Andreas Enders
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumFREQUENCE the data is written, accessed, used or updated in the different adapters -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected booleanSource field from SimVarMap where key is taken from to filter the data in the adapterprotected intNumber count of the fields accessible in this adapterprotected final FWSimIOAdapter.FREQUENCEFREQUENCE the data is written, accessed, used or updated in the different adaptersprotected final LinkedHashMap<String, FWSimVariable<?>> Hash map of the HeaderVariables used for all data interfacing.protected FWSimInterface<?> SimInterface used to access the data.protected Stringprotected LinkedHashMap<String, String> Key field of data in the adapterprotected final StringName from configurationprotected intorder number for the serial order of the componentsprotected ProcessTimeprotected final org.jdom2.Elementsource Element used for creation of the Adapterprotected final FWSimSessionprotected StringSource field from SimVarMap where key is taken from to filter the data in the adapter -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungFWSimIOAdapter(FWSimIOAdapter aAdapter, FWSimInterface<?> aInterface) FWSimIOAdapter(org.jdom2.Element aResourceElement, String aName, int aOrderNumber, FWSimInterface<?> aInterface, FWSimIOAdapter.FREQUENCE aFrequence, ProcessTime aProcessTime, FWSimSession aSession) protectedFWSimIOAdapter(org.jdom2.Element aResourceElement, FWSimSession aSession, int aOrderNumber) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddProcessTime(long aProcessTime) adds the processTimevoidaddVariable(FWSimVariable<?> aVariable) be careful if using this method while it adds a field to the header informationvoidcheckCondition(Boolean aCheckResult, String aMessage) Called from inside the FWSimFieldContainer to log the initialization Errors.static org.jdom2.ElementcreateFormFields(FWSimVariable.CONTENT_TYPE aContentType, FWSimInterface<?> aInterface, FWSimIOAdapter aAdapter, FWSimIOAdapter.FREQUENCE aFrequence, boolean aEnabled) returns a new hash map containing the header informationvoidfinalize()org.jdom2.Elementorg.jdom2.ElementgetEditFormXML(boolean aEnabled) returns the header informationorg.jdom2.ElementgetName()intgetVariable(String aID) gets FWSimVariable from the header informationbooleanbooleanvoidremoveVariable(String aID) be careful if using this method while it removes a field from the header informationvoidsetInterface(FWSimInterface<?> aInterface) voidsetOrderNumber(int orderNumber) toString()implementation returning the name of the component onlyprotected voidwrites a new header list to the elementVon Klasse geerbte Methoden java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden net.simplace.sim.util.FWSimFieldContainer
getContentType, getInputVariables, getOutputVariables, getVarMap, toXML
-
Felddetails
-
iJexlRule
-
iSession
-
iResourceElement
protected final org.jdom2.Element iResourceElementsource Element used for creation of the Adapter -
iName
Name from configuration -
iOrderNumber
protected int iOrderNumberorder number for the serial order of the components -
iInterface
SimInterface used to access the data. Adapter stays media independent. -
iHeaderVariables
Hash map of the HeaderVariables used for all data interfacing. Used for Input - Resources and Output - Results- Siehe auch:
-
iFieldcount
protected int iFieldcountNumber count of the fields accessible in this adapter -
iFrequence
FREQUENCE the data is written, accessed, used or updated in the different adapters -
iKeyMap
Key field of data in the adapter -
iSourceKey
Source field from SimVarMap where key is taken from to filter the data in the adapter -
iArrayMode
protected boolean iArrayModeSource field from SimVarMap where key is taken from to filter the data in the adapter -
iProcessTime
-
-
Konstruktordetails
-
FWSimIOAdapter
protected FWSimIOAdapter(org.jdom2.Element aResourceElement, FWSimSession aSession, int aOrderNumber) - Parameter:
aResourceElement-aSession-aOrderNumber-
-
FWSimIOAdapter
public FWSimIOAdapter(org.jdom2.Element aResourceElement, String aName, int aOrderNumber, FWSimInterface<?> aInterface, FWSimIOAdapter.FREQUENCE aFrequence, ProcessTime aProcessTime, FWSimSession aSession) - Parameter:
aResourceElement-aName-aOrderNumber-aInterface-aFrequence-aProcessTime-aSession-
-
FWSimIOAdapter
- Parameter:
aAdapter-aInterface-
-
-
Methodendetails
-
addVariable
be careful if using this method while it adds a field to the header information- Angegeben von:
addVariablein SchnittstelleFWSimFieldContainer- Parameter:
aVariable-- Siehe auch:
-
getVariable
gets FWSimVariable from the header information- Angegeben von:
getVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Gibt zurück:
- FWSimVariable for ID in Field Map
- Siehe auch:
-
removeVariable
be careful if using this method while it removes a field from the header information- Angegeben von:
removeVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Siehe auch:
-
getName
- Angegeben von:
getNamein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the name
-
getFrequence
- Angegeben von:
getFrequencein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the frequency
-
getJexlRule
- Gibt zurück:
- the rule
-
getOrderNumber
public int getOrderNumber()- Angegeben von:
getOrderNumberin SchnittstelleFWSimFieldContainer- Gibt zurück:
- the orderNumber
-
setOrderNumber
public void setOrderNumber(int orderNumber) - Parameter:
orderNumber- the orderNumber to set
-
getInterface
- Gibt zurück:
- FWSimInterface
-
setInterface
- Parameter:
aInterface-
-
getKeyMap
- Gibt zurück:
- the key
-
getHeaderVariables
- Gibt zurück:
- the headerVariables
-
createVariables
returns a new hash map containing the header information- Angegeben von:
createVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- variables from the field map
- Siehe auch:
-
addProcessTime
public void addProcessTime(long aProcessTime) adds the processTime- Parameter:
aProcessTime-
-
getFieldMap
returns the header information- Angegeben von:
getFieldMapin SchnittstelleFWSimFieldContainer- Gibt zurück:
- whole field map as created in createVariables()
- Siehe auch:
-
toString
implementation returning the name of the component only -
getHeaderXML
public org.jdom2.Element getHeaderXML()- Gibt zurück:
- XML Element of the Header information
-
isArrayMode
public boolean isArrayMode()- Gibt zurück:
- if the Adapter is used in ArrayMode
-
getCreateFormXML
public org.jdom2.Element getCreateFormXML()- Angegeben von:
getCreateFormXMLin SchnittstelleFWSimFieldContainer- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getEditFormXML
public org.jdom2.Element getEditFormXML(boolean aEnabled) - Angegeben von:
getEditFormXMLin SchnittstelleFWSimFieldContainer- Parameter:
aEnabled-- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
createFormFields
public static org.jdom2.Element createFormFields(FWSimVariable.CONTENT_TYPE aContentType, FWSimInterface<?> aInterface, FWSimIOAdapter aAdapter, FWSimIOAdapter.FREQUENCE aFrequence, boolean aEnabled) - Parameter:
aContentType-aInterface-aAdapter-aFrequence-aEnabled-- Gibt zurück:
- the created Element
-
writeHeaderList
protected void writeHeaderList()writes a new header list to the element -
finalize
-
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
-