Package net.simplace.sim.components
Klasse DefaultManagement
java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.DefaultManagement
- Alle implementierten Schnittstellen:
FWSimManagementComponent,FWSimFieldContainer
Management works with configuration like
true
${vCropName}
true
actions can be taken from resources, too. reserved name for this is
actions
- 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 MultiHashMap<JexlRuleScript, FWSimVariable<?>> ActionMap for components that override thisVon Klasse geerbte Felder net.simplace.sim.model.FWSimComponent
iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungcalled by class.forName()DefaultManagement(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, MultiHashMap<JexlRuleScript, FWSimVariable<?>> aActionMap, List<String> aFieldModifiedList, List<String> aResetFieldList, FWSimVarMap aVarMap, int aOrderNumber) /** called by test and clone -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidbind()The model initialization function.booleanprotected FWSimComponentclone(FWSimVarMap aVarMap) clone management without reading all params again.creates output variables from action variablesvoidfills the action MapfillTestVariables(int aParamIndex, FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.protected voidinit()fill action map from configuration elementbooleanperformEvent(ArrayList<FWSimVariable<?>> aActionList) protected voidprocess()checks all rules and updates the fieldsbooleanresetVariables(ArrayList<FWSimVariable<?>> aActionList) voidstart()runs the process mehtod (protected visibility).org.jdom2.ElementtoXML()Name of the ComponentVon Klasse geerbte Methoden net.simplace.sim.model.FWSimComponent
addVariable, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getCreateFormXML, getDescription, getEditFormXML, 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
-
Felddetails
-
iActionMap
ActionMap for components that override this
-
-
Konstruktordetails
-
DefaultManagement
public DefaultManagement(String aName, HashMap<String, FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, MultiHashMap<JexlRuleScript, FWSimVariable<?>> aActionMap, List<String> aFieldModifiedList, List<String> aResetFieldList, FWSimVarMap aVarMap, int aOrderNumber) /** called by test and clone- Parameter:
aName-aFieldMap-aInputMap-aSimComponentElement-aActionMap-aVarMap-aOrderNumber-
-
DefaultManagement
public DefaultManagement()called by class.forName()
-
-
Methodendetails
-
getActionMap
- Gibt zurück:
- the actionMap
-
bind
protected void bind()Beschreibung aus Klasse kopiert:FWSimComponentThe model initialization function. Will be called only once, before running the model using process().- Setzt außer Kraft:
bindin KlasseFWSimComponent
-
fillActionMap
public void fillActionMap()Beschreibung aus Schnittstelle kopiert:FWSimManagementComponentfills the action Map- Angegeben von:
fillActionMapin SchnittstelleFWSimManagementComponent- Siehe auch:
-
createVariables
creates output variables from action variables- Angegeben von:
createVariablesin SchnittstelleFWSimFieldContainer- Angegeben von:
createVariablesin KlasseFWSimComponent- Gibt zurück:
- variables from the field map
- Siehe auch:
-
init
protected void init()fill action map from configuration element- Angegeben von:
initin KlasseFWSimComponent- Siehe auch:
-
start
public void start()runs the process mehtod (protected visibility). -
process
protected void process()checks all rules and updates the fields- Angegeben von:
processin KlasseFWSimComponent- Siehe auch:
-
clone
clone management without reading all params again.- Angegeben von:
clonein KlasseFWSimComponent- Parameter:
aVarMap-- Gibt zurück:
- the deep clone of the SimComponent
- Siehe auch:
-
getContentType
- Angegeben von:
getContentTypein SchnittstelleFWSimFieldContainer- Setzt außer Kraft:
getContentTypein KlasseFWSimComponent- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
checkForAction
public boolean checkForAction()- Angegeben von:
checkForActionin SchnittstelleFWSimManagementComponent- Gibt zurück:
- boolean if Action has to be performed
- Siehe auch:
-
performEvent
- Angegeben von:
performEventin SchnittstelleFWSimManagementComponent- Parameter:
aActionList-- Gibt zurück:
- boolean if Event was successful
- Siehe auch:
-
getLinkedVariableNames
-
resetVariables
- Angegeben von:
resetVariablesin SchnittstelleFWSimManagementComponent- Parameter:
aActionList-- Gibt zurück:
- true if successful
- Siehe auch:
-
toXML
public org.jdom2.Element toXML()Name of the Component- Angegeben von:
toXMLin SchnittstelleFWSimFieldContainer- Angegeben von:
toXMLin SchnittstelleFWSimManagementComponent- 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:
-