Class FWSimulationController

java.lang.Object
net.simplace.sim.control.FWSimulationController

public class FWSimulationController extends Object
SimulationController initializes the project part of the simulations. It can be asked for - project mode of simulation FWSimProject.PROJECT_MODE. - field map of project data - Map of the FWSimProjects with name as key. - FWSimVariable.CONTENT_TYPE of the project information (res or sim) SimulationController can perform the reading of the configuration either from simple xml or resources (XML, Database, CSV).
Author:
Andreas Enders
  • Field Details

  • Constructor Details

  • Method Details

    • initProjectData

      public void initProjectData(FileData aProjectXMLFile) throws SimProjectException
      Default constructor from XML first step: create structure of the data to be placed in the database second step: prepare the database
      Parameters:
      aProjectXMLFile - Element containing project information - if null test-project will be created
      aSession - FWSimSession
      Throws:
      SimProjectException
    • iterate

      public boolean iterate(String aProjectID)
    • generate

      public void generate(String aProjectID)
      generates the simulations for the session
      Parameters:
      aProjectID -
    • select

      public void select(FWSimProject aProject)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • getProjectIDs

      public Set<String> getProjectIDs()
      Returns:
      the linked map of all projects
    • getProject

      public FWSimProject getProject(String aProject)
      Parameters:
      aProject -
      Returns:
      newly created SimProject for the given ID
    • getFieldMap

      public HashMap<String,FWSimVariable<?>> getFieldMap()
      Returns:
      the field map of all projects
    • getProjectMode

      public FWSimProject.PROJECT_MODE getProjectMode()
      Returns:
      project mode
    • getCurrentProjectID

      public String getCurrentProjectID()
    • getMaxIterationCount

      public int getMaxIterationCount()