Interface FWSimManagementComponent
- All Known Implementing Classes:
DefaultManagement
public interface FWSimManagementComponent
A management component executes actions depending on rules: each
action has a rule and a list of
mgm variables that are set when the rule is true (see FWSimVariable.MODE_TYPE RESET, SET, ITE).- Author:
- Andreas Enders
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates the rules of all actions: for each true rule the action is performed (seeperformEvent(ArrayList)), otherwise its variables are reset (seeresetVariables(ArrayList)).voidReads the actions (rules and their management variables) from the configuration.booleanperformEvent(ArrayList<FWSimVariable<?>> aActionList) Performs an action: sets the variables of the action according to their mode.booleanresetVariables(ArrayList<FWSimVariable<?>> aActionList) Resets the variables of an action whose rule is false (for mode ITE: back to the default value).org.jdom2.ElementtoXML()
-
Method Details
-
fillActionMap
void fillActionMap()Reads the actions (rules and their management variables) from the configuration. -
checkForAction
boolean checkForAction()Evaluates the rules of all actions: for each true rule the action is performed (seeperformEvent(ArrayList)), otherwise its variables are reset (seeresetVariables(ArrayList)).- Returns:
- the result of the check (implementation specific)
-
performEvent
Performs an action: sets the variables of the action according to their mode.- Parameters:
aActionList- management variables of the action- Returns:
trueif the action was performed
-
toXML
org.jdom2.Element toXML()- Returns:
- the XML element configuring this management component
-
resetVariables
Resets the variables of an action whose rule is false (for mode ITE: back to the default value).- Parameters:
aActionList- management variables of the action- Returns:
- the result of the reset (implementation specific)
-