Klasse FWSimModel

java.lang.Object
net.simplace.sim.model.FWSimModel
Alle implementierten Schnittstellen:
Callable<FWSimVarMap>

public class FWSimModel extends Object implements Callable<FWSimVarMap>
Implemented as Callable so that more than one can be run in same time Can access resources via Resource Manager Singleton Manages the VarMap Manages the state in time and the settings of the model run Can write outputs via Output Manager Singleton Implemented simulation modules Model parts are implemented from abstract simulation modules (init, clone (mit reset), process)
Autor:
Andreas Enders
  • Konstruktordetails

  • Methodendetails

    • init

      public void init()
      Initialize Model and the FWSimComponent registered in this model
    • call

      public FWSimVarMap call()
      Angegeben von:
      call in Schnittstelle Callable<FWSimVarMap>
      Siehe auch:
    • step

      public boolean step()
      Run all model components for one day, step time and return new current date The current date from the FWSimVarMap
      Gibt zurück:
      is simulation continuing
    • clone

      public FWSimModel clone(FWSimVarMap aMap)
      Parameter:
      aMap -
      Gibt zurück:
      the cloned model instance using an already cloned new VarMap
    • reset

      public void reset(FWSimVarMap aNextVarMap)
      Parameter:
      aNextVarMap -
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Siehe auch:
    • getCurrentDate

      public LocalDateTime getCurrentDate()
      Gibt zurück:
      the current model date
    • getStartDate

      public LocalDateTime getStartDate()
      Gibt zurück:
      start date
    • getEndDate

      public LocalDateTime getEndDate()
      Gibt zurück:
      end date
    • getSimComponent

      public FWSimComponent getSimComponent(String aComponentName)
      Parameter:
      aComponentName -
      Gibt zurück:
      the SimComponent instance registered within this model
    • getFieldMap

      public HashMap<String,FWSimVariable<?>> getFieldMap()
      Gibt zurück:
      the global fieldMap - same for all model instances
    • getVarMap

      public FWSimVarMap getVarMap()
      Gibt zurück:
      the individual VarMap - different for each model instance
    • getSimComponents

      public List<FWSimComponent> getSimComponents()
      Gibt zurück:
      all FWSimComponent registered within this model
    • getSimLinks

      Gibt zurück:
      a Map including all SimLinks