Klasse FWSimSession

java.lang.Object
net.simplace.sim.FWSimSession

public final class FWSimSession extends Object
Autor:
Andreas Enders
  • Konstruktordetails

    • FWSimSession

      public FWSimSession(org.jdom2.Element aSolutionElement, FWSimVarMap aVarMap, Object[][] aParameters, String aSessionName, FileData aSolutionFile)
      Parameter:
      aSolutionElement -
      aVarMap -
      aSessionName -
      aSolutionFile -
      aApplicationMode -
    • FWSimSession

      public FWSimSession(FWSimSolution aSolution, FileData aSolutionFile)
      Parameter:
      aSolution -
      aSolutionFile -
      aApplicationMode -
  • Methodendetails

    • getSolutionFile

      public FileData getSolutionFile()
      Gibt zurück:
    • getProjectFile

      public FileData getProjectFile()
      Gibt zurück:
    • getDataFrame

      public FWSimDataframe getDataFrame()
      Gibt zurück:
    • initProjects

      public void initProjects(FWSimVarMap aVarMap)
      Parameter:
      aVarMap -
    • getSolution

      public FWSimSolution getSolution()
      Gibt zurück:
      the solution
    • getPoolInterface

      public DatabaseInterface getPoolInterface()
      Gibt zurück:
      the pool interface
    • getSessionID

      public String getSessionID()
      Gibt zurück:
      a unique session id for unique folders etc.
    • getProjectControler

      public FWSimulationController getProjectControler()
      Gibt zurück:
      the project controller
    • getProjectList

      public List<FWSimProject> getProjectList()
      Gibt zurück:
      list of the projects
    • getProject

      public FWSimProject getProject(String aProjectID)
      Parameter:
      aProjectID -
      Gibt zurück:
      the Project
    • run

      public ArrayList<FWSimProject> run() throws Exception
      Gibt zurück:
      The readily run projects
      Löst aus:
      Exception
    • postprocess

      public void postprocess()
    • getOutputManager

      public FWSimOutputManager getOutputManager()
      Gibt zurück:
      the output manager
    • getPostProcessManager

      public FWSimPostProcessManager getPostProcessManager()
      Gibt zurück:
      the output manager
    • getResourceManager

      public FWSimResourceManager getResourceManager()
      Gibt zurück:
      the Resource manager
    • getSyncManager

      public FWSimSyncManager getSyncManager()
      Gibt zurück:
      the Sync manager
    • getChecker

      public FWCheckHelper getChecker()
      Gibt zurück:
      the used checker for this session
    • runProject

      public List<FWSimSimulation> runProject(FWSimProject aProject) throws Exception
      Make sure that output writers are running and system is shut down after running all projects
      Parameter:
      aProject - to be run
      Gibt zurück:
      the list of simulations of this project
      Löst aus:
      Exception
    • runSimulations

      public void runSimulations(List<FWSimSimulation> aSimulationList, boolean aSelectSimulation) throws Exception
      Make sure that output writers are running and system is shut down after running all projects
      Parameter:
      aSimulationList -
      aSelectSimulation -
      aProject - to be run
      Löst aus:
      Exception
    • registerModelListener

      public void registerModelListener(FWSimulationListener aModelListener)
      Model listener gets Model Event with the current Model
      Parameter:
      aModelListener -
    • removeModelListener

      public void removeModelListener(FWSimulationListener aModelListener)
      Model listener gets Model Event with the current Model
      Parameter:
      aModelListener -
    • getModelListeners

      public List<FWSimulationListener> getModelListeners()
      Gibt zurück:
      the modelListeners
    • handleModelErrorEvent

      public void handleModelErrorEvent(FWSimulationErrorEvent aModelEvent)
      Parameter:
      aModelEvent -
    • simulationStarted

      public void simulationStarted(FWSimSimulation aFWSimSimulation, Integer aPercentage)
      Parameter:
      aFWSimSimulation -
      aPercentage -
    • simulationEnded

      public void simulationEnded(FWSimSimulation aFWSimSimulation, Integer aPercentage)
      Parameter:
      aFWSimSimulation - If you use "modelEnded" to remove the actual listener you can be sure that "ConcurrentModificationException" is prevented.
      aPercentage -
    • projectEnded

      public void projectEnded(FWSimProject aFWSimProject, Integer aPercentage)
      Parameter:
      aFWSimProject -
      aPercentage - If you use "modelEnded" to remove the actual listener you can be sure that "ConcurrentModificationException" is prevented.
    • iterationEnded

      public void iterationEnded(FWSimulationControlCache aControlCache)
      Parameter:
      aControlCache -
      aPercentage - If you use "modelEnded" to remove the actual listener you can be sure that "ConcurrentModificationException" is prevented.
    • finalize

      public void finalize() throws Exception
      If when simulation ended finalize sets simulation to inactive
      Setzt außer Kraft:
      finalize in Klasse Object
      Löst aus:
      Exception
    • clone

      public FWSimSession clone()
      If when simulation ended finalize sets simulation to inactive
      Setzt außer Kraft:
      clone in Klasse Object
    • isActive

      public boolean isActive()
      Gibt zurück:
      the isActive
    • setInActive

      public void setInActive()
      sets simulation to inactive
    • setActive

      public void setActive()
      sets simulation to active
    • getControlCache

      public FWSimulationControlCache getControlCache()
      sets simulation to active
      Gibt zurück:
      The Control cache
    • toString

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