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 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 (see performEvent(ArrayList)), otherwise its variables are reset (see resetVariables(ArrayList)).
      Returns:
      the result of the check (implementation specific)
    • performEvent

      boolean performEvent(ArrayList<FWSimVariable<?>> aActionList)
      Performs an action: sets the variables of the action according to their mode.
      Parameters:
      aActionList - management variables of the action
      Returns:
      true if the action was performed
    • toXML

      org.jdom2.Element toXML()
      Returns:
      the XML element configuring this management component
    • resetVariables

      boolean resetVariables(ArrayList<FWSimVariable<?>> aActionList)
      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)