Package net.simplace.sim.components
Klasse FWSimpleSimComponent
java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.FWSimpleSimComponent
- Alle implementierten Schnittstellen:
IntegratableComponent,FWSimFieldContainer
- Autor:
- Andreas Enders
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen net.simplace.sim.model.FWSimComponent
FWSimComponent.TEST_STATE -
Feldübersicht
Von Klasse geerbte Felder net.simplace.sim.model.FWSimComponent
iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFWSimpleSimComponent(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber) FWSimpleSimComponent(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, LinkedList<FWSimVariable<?>> aProcessAlgorithmsMap, LinkedList<FWSimVariable<?>> aIntegrateAlgorithmsMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidbind()The model initialization function.protected FWSimComponentclone(FWSimVarMap aVarMap) called only once when the SimComponent is created.fillTestVariables(int aParamIndex, FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.final org.jdom2.ElementgetEditFormXML(boolean aEnabled) protected voidinit()The model initialization function.voidThe model integration function.protected voidprocess()The main model calculation function.voidorg.jdom2.ElementtoXML()Von Klasse geerbte Methoden net.simplace.sim.model.FWSimComponent
addVariable, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getContentType, getCreateFormXML, getDescription, getFieldMap, getFrequence, getFrequenceRuleScript, getInputs, getInputVariables, getMasterComponentGroup, getName, getOrderNumber, getOutputVariables, getVariable, getVariableField, getVarMap, initialize, isConditionCheck, isVariableAvailable, performLinks, performLinks, readInputs, removeVariable, reset, runComponentTest, setVariablesDefault, toComponentLinkingXML, toDocXML, toGroupXML, toOutputDefinitionXML, toResourcesDataXML, toResourcesDefinitionXML, toString, writeVarInfos
-
Konstruktordetails
-
FWSimpleSimComponent
public FWSimpleSimComponent(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber) - Parameter:
aName-aFieldMap-aInputMap-aSimComponentElement-aVarMap-aOrderNumber-
-
FWSimpleSimComponent
public FWSimpleSimComponent() -
FWSimpleSimComponent
public FWSimpleSimComponent(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, LinkedList<FWSimVariable<?>> aProcessAlgorithmsMap, LinkedList<FWSimVariable<?>> aIntegrateAlgorithmsMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber) - Parameter:
aName-aFieldMap-aProcessAlgorithmsMap-aIntegrateAlgorithmsMap-aInputMap-aSimComponentElement-aVarMap-aOrderNumber-
-
-
Methodendetails
-
createVariables
Beschreibung aus Klasse kopiert:FWSimComponentcalled only once when the SimComponent is created. Hereby the FieldMap is filled with the interfacing fields.- Angegeben von:
createVariablesin SchnittstelleFWSimFieldContainer- Angegeben von:
createVariablesin KlasseFWSimComponent- Gibt zurück:
- variables from the field map
- Siehe auch:
-
bind
protected void bind()The model initialization function. Will be called only once, before running the model using process().- Setzt außer Kraft:
bindin KlasseFWSimComponent
-
init
protected void init()Beschreibung aus Klasse kopiert:FWSimComponentThe model initialization function. Will be called only once, before running the model using process().- Angegeben von:
initin KlasseFWSimComponent
-
process
protected void process()Beschreibung aus Klasse kopiert:FWSimComponentThe main model calculation function. Is guaranteed to be called once per module-specific time step.- Angegeben von:
processin KlasseFWSimComponent
-
postIntegrate
public void postIntegrate()Beschreibung aus Schnittstelle kopiert:IntegratableComponentThe model integration function. Is guaranteed to be called once per module-specific time step.- Angegeben von:
postIntegratein SchnittstelleIntegratableComponent
-
getLinkedVariableNames
- Gibt zurück:
- the linkedVariableNames
-
getProcessAlgorithms
- Gibt zurück:
- the processAlgorithms
-
getIntegrateAlgorithms
- Gibt zurück:
- the integrateAlgorithms
-
showFields
public void showFields() -
getEditFormXML
public final org.jdom2.Element getEditFormXML(boolean aEnabled) - Angegeben von:
getEditFormXMLin SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
getEditFormXMLin KlasseFWSimComponent- Parameter:
aEnabled-- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
toXML
public org.jdom2.Element toXML()- Angegeben von:
toXMLin SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
toXMLin KlasseFWSimComponent- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
fillTestVariables
public HashMap<String,FWSimVariable<?>> fillTestVariables(int aParamIndex, FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm. aParamIndex: Used to set up different test cases. Start with 0 - result check with 1 aso- Angegeben von:
fillTestVariablesin KlasseFWSimComponent- Parameter:
aDefineOrCheck- : Use TEST_STATE.DEFINE for defining the test default values and TEST_STATE.CHECK for the accepted results- Siehe auch:
-
clone
- Angegeben von:
clonein KlasseFWSimComponent- Parameter:
aVarMap-- Gibt zurück:
- the deep clone of the SimComponent
-