Class FWSimComponent

java.lang.Object
net.simplace.sim.model.FWSimComponent
All Implemented Interfaces:
FWSimFieldContainer
Direct Known Subclasses:
DefaultManagement, FWAnalyticsSimComponent, FWSimComponentGroup, FWSimpleSimComponent

public abstract class FWSimComponent extends Object implements FWSimFieldContainer
Author:
Andreas Enders FWSimComponent is the smallest definable unit of a model It overrides the abstract FWSimFieldContainer with methods init, clone (with reset) and process It contains the algorithms of the scientific model Has to be documented in detail Simulation Modules are similar to the so called ?strategies? in ACE. They can be encapsulated with SimObjects and used in ACE as in SMILE Model Engine. Each FWSimComponent should have its own Unit Test, Input Forms and Result Forms
  • Field Details

    • iName

      protected String iName
      Name of component
    • iVarMap

      protected FWSimVarMap iVarMap
      Centrally used VarMap reference
    • iFieldMap

      protected HashMap<String,FWSimVariable<?>> iFieldMap
      initial field map as given by the createVariables()-Method in the SimComponent implementation
    • iInputMap

      protected HashMap<String,String> iInputMap
      registered links of the SimComponent implementation
    • iSimModel

      protected FWSimModel iSimModel
      SimModel reference - can be seen as the thread the component is accessed in
    • iSimComponentElement

      protected org.jdom2.Element iSimComponentElement
      original SimComponent configuration element (jdom)
    • iOrderNumber

      protected int iOrderNumber
      order number for the serial order of the components
    • iFrequence

      protected FWSimIOAdapter.FREQUENCE iFrequence
      frequence to check if component is executed or not
    • iJexlRule

      protected JexlRuleScript iJexlRule
      rule to check if component is executed or not
    • isComponentGroup

      protected final boolean isComponentGroup
      Info about ComponentGroup
    • iMasterComponentGroup

      protected FWSimComponentGroup iMasterComponentGroup
      If component is part of a SimComponent Group Main Component mentioned here
  • Constructor Details

    • FWSimComponent

      protected FWSimComponent()
      Main constructor for use with Class.forName()
      Throws:
      RuntimeException
    • FWSimComponent

      protected FWSimComponent(String aName, HashMap<String,FWSimVariable<?>> aFieldMap, HashMap<String,String> aInputMap, org.jdom2.Element aSimComponentElement, FWSimVarMap aVarMap, int aOrderNumber)
      called via clone
      Parameters:
      aName -
      aFieldMap -
      aInputMap -
      aSimComponentElement -
      aVarMap -
      aOrderNumber -
  • Method Details