Package net.simplace.sim.model
Klasse FWSimComponentGroup
java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.model.FWSimComponentGroup
- 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
FelderModifizierer und TypFeldBeschreibungprotected final LinkedList<FWSimComponent> protected Stringprotected booleanprotected org.jdom2.Elementprotected StringVon Klasse geerbte Felder net.simplace.sim.model.FWSimComponent
iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungEmpty constructor reads the configuration of the component groupFWSimComponentGroup(String aGroupName) /** Empty constructor reads the configuration of the component groupprotectedFWSimComponentGroup(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber, LinkedList<FWSimComponent> aComponentList, HashMap<String, String> aInternalInputLinkMap, HashMap<String, String> aInternalOutputLinkMap) clone constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected FWSimComponentclone(FWSimVarMap aVarMap) final voidcreate()create will instantiate the sim components encapsulated in this classfinal HashMap<String, FWSimVariable<?>> 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.protected final voidinit()The model initialization function.voidperforms the internal input links between the internal and external SimComponents has to be called AFTER all external links are performedprotected voidperformLinks(HashMap<String, String> aLinkMap) voidperforms the internal output links between the internal and external SimComponents has to be called before all external links are performedfinal voidThe model integration function.protected final voidprocess()The main model calculation function.protected voidreads the component list to the simulation element - should be called from readComponentList();protected voidreadConfiguration(String aConfigurationXMLPath) reads the component list to the simulation element - should be called from readComponentList();org.jdom2.ElementtoDocXML()Von Klasse geerbte Methoden net.simplace.sim.model.FWSimComponent
addVariable, bind, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getContentType, getCreateFormXML, getDescription, getEditFormXML, getFieldMap, getFrequence, getFrequenceRuleScript, getInputs, getInputVariables, getMasterComponentGroup, getName, getOrderNumber, getOutputVariables, getVariable, getVariableField, getVarMap, initialize, isConditionCheck, isVariableAvailable, performLinks, readInputs, removeVariable, reset, runComponentTest, setVariablesDefault, toComponentLinkingXML, toGroupXML, toOutputDefinitionXML, toResourcesDataXML, toResourcesDefinitionXML, toString, toXML, writeVarInfos
-
Felddetails
-
iComponentMapping
-
iComponentList
-
iSimGroupElement
protected org.jdom2.Element iSimGroupElement -
iInternalInputLinkMap
-
iInternalOutputLinkMap
-
iConfigurationXMLPath
-
iSimpleName
-
iIsIntagratable
protected boolean iIsIntagratable
-
-
Konstruktordetails
-
FWSimComponentGroup
public FWSimComponentGroup()Empty constructor reads the configuration of the component group -
FWSimComponentGroup
/** Empty constructor reads the configuration of the component group -
FWSimComponentGroup
protected FWSimComponentGroup(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber, LinkedList<FWSimComponent> aComponentList, HashMap<String, String> aInternalInputLinkMap, HashMap<String, String> aInternalOutputLinkMap) clone constructor- Parameter:
aName-aFieldMap-aInputMap-aSimComponentElement-aVarMap-aOrderNumber-aComponentList-aInternalInputLinkMap-aInternalOutputLinkMap-aInternalLinkMap-
-
-
Methodendetails
-
readConfiguration
protected void readConfiguration()reads the component list to the simulation element - should be called from readComponentList();- Parameter:
aConfigurationXMLPath-
-
readConfiguration
reads the component list to the simulation element - should be called from readComponentList();- Parameter:
aConfigurationXMLPath-
-
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:
-
getComponentList
- Gibt zurück:
- the componentList
-
getComponentMapping
- Gibt zurück:
- the componentMapping
-
getInternalInputLinkMap
- Gibt zurück:
- the internalInputLinkMap
-
getInternalOutputLinkMap
- Gibt zurück:
- the internalOutputLinkMap
-
performOutputLinks
performs the internal output links between the internal and external SimComponents has to be called before all external links are performed- Löst aus:
SimLinkInvalidException
-
performLinks
- Setzt außer Kraft:
performLinksin KlasseFWSimComponent- Parameter:
aLinkMap- with key = destination and value = source!- Löst aus:
SimLinkInvalidException
-
performInputLinks
performs the internal input links between the internal and external SimComponents has to be called AFTER all external links are performed- Löst aus:
SimLinkInvalidException
-
init
protected final 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 final 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 final 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
-
create
create will instantiate the sim components encapsulated in this class- Löst aus:
SimLinkInvalidException
-
getSimpleName
-
toDocXML
public org.jdom2.Element toDocXML()- Setzt außer Kraft:
toDocXMLin KlasseFWSimComponent- Gibt zurück:
- Element of this document
- 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
-