Klasse FWSimSimulation

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

public final class FWSimSimulation extends Object implements Callable<FWSimVarMap>
A simulation is the runnable and configured simulation model. It runs in an own Thread implementing the Runnable interface. It consists of a Name, ProjectID of the including project, FWSimModel and a List of FWSimVariables that the simulation is able to store as start configuration.
Autor:
Andreas Enders
  • Konstruktordetails

    • FWSimSimulation

      public FWSimSimulation(FWSimVarMap aVarMap, FWSimModel aModel)
      Default constructor for the simulation object. Simulation signifies one run of the model containing all needed configurations. They can be run simultaneously if in same project.
      Parameter:
      aVarMap -
      aModel -
      aFilterListHeader - only initial Values in this filter list are stored as initial values
  • Methodendetails

    • call

      public FWSimVarMap call()
      called by the Thread to start it running
      Angegeben von:
      call in Schnittstelle Callable<FWSimVarMap>
      Siehe auch:
    • init

      public void init()
      Initialize a simulation run
    • finish

      public void finish()
      Finish a model run
    • registerResultCache

      public void registerResultCache(FWSimResultCache aCache)
      Parameter:
      aCache -
    • setValue

      public void setValue(String aColName, FWSimVariable.DATA_TYPE aDataType, Object aObject)
      sets value to the solution. Values can be used in modeling process
      Parameter:
      aColName -
      aDataType -
      aObject -
    • getVarMap

      public FWSimVarMap getVarMap()
      Gibt zurück:
      the SimVarMap of the implemented Model as a template
    • getName

      public String getName()
      Gibt zurück:
      the id of the simulation
    • getID

      public String getID()
      Gibt zurück:
      the iD
    • getVariableValue

      public Object getVariableValue(String aName)
      Parameter:
      aName -
      Gibt zurück:
      the Value of the end state (after model ended)
    • getResultCache

      public FWSimResultCache getResultCache(String aName)
      Parameter:
      aName -
      Gibt zurück:
      the Result references
    • getCacheNames

      public Set<String> getCacheNames()
      Gibt zurück:
      the Result Cache Names
    • getModel

      public FWSimModel getModel()
      Gibt zurück:
      the running Model
    • clone

      public FWSimSimulation clone(Integer aSimulationNumber)
      Parameter:
      aSimulationNumber -
      Gibt zurück:
      a clone of FWSimSimulation object
    • equals

      public boolean equals(Object aObj)
      Setzt außer Kraft:
      equals in Klasse Object
      Siehe auch:
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object