Klasse FWSimProject

java.lang.Object
net.simplace.sim.FWSimProject

public final class FWSimProject extends Object
Projects signify the ensemble of several simulation runs, that have same resources (e.g. files, database) but different settings in the FWSimVariables. A project is defined in the (if provided) project.proj.xml-File. For Test mode no project file is provided. The project settings are taken from the solution (see constructor FWSimProject (FWSimSolution). Three types of simulations are supported: FWSimProject.PROJECT_MODE.SIMULATION: Test simulations without project or simple project runs for given project configuration FWSimProject.PROJECT_MODE.SENSITIVITY: Project creates List of FWSimSimulation via plug-in FWSimulationGenerator and runs them accordingly FWSimProject.PROJECT_MODE.CALIBRATION: Like SENSITIVITY but additional FWSimulationSelector selecting one simulation that fits most to the plug-in selector's algorithm. Additionally projects can be initialized by simple XML-Configuration or by resources given in the .proj.xml-File structure. The XML-Grammar is defined in FWSimProject.dtd and has to be met to make the project working.
Autor:
Andreas Enders
  • Konstruktordetails

  • Methodendetails

    • initProject

      public static List<FWSimSimulation> initProject(List<FWSimSimulation> aSimulationList) throws Exception
      initializes the Simulations with updating Simulations, resources and registering resources for enabling the memory output.
      Parameter:
      aSimulationList -
      Gibt zurück:
      the list of simulations that have been initialized
      Löst aus:
      Exception
    • toXML

      public org.jdom2.Element toXML()
      Gibt zurück:
      the project Element
    • updateSimulations

      public List<FWSimSimulation> updateSimulations(FWSimulationControlCache aControlCache) throws Exception
      Parameter:
      aControlCache -
      aSelectedSimulation -
      Gibt zurück:
      the list of Simulations to be performed or null if project readily run.
      Löst aus:
      Exception
    • setSimulations

      public void setSimulations(List<FWSimSimulation> aSimulations)
      Manually set the simulations to the project - will not automatically be filled with the updateSimulations-Method
      Parameter:
      aSimulations -
    • getSimulations

      public List<FWSimSimulation> getSimulations()
      Gibt zurück:
      returns the simulations only, when they are manually set to the project before
    • getID

      public String getID()
      Gibt zurück:
      the ID of the Project
    • getProjectMode

      public final FWSimProject.PROJECT_MODE getProjectMode()
      Gibt zurück:
      s the project mode from upper enum
    • setProjectMode

      public final void setProjectMode(FWSimProject.PROJECT_MODE mode)
      Parameter:
      mode - sets the project mode
    • toString

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

      public int getSimulationCount()
      Gibt zurück:
      s the number of Simulations in this Project. If not initialized returns -1.
    • canUpdate

      public boolean canUpdate()
      Gibt zurück:
      if the generator has more simulations in this project session run to be performed before selection
    • getFieldMap

      public HashMap<String,FWSimVariable<?>> getFieldMap()
      Gibt zurück:
      the field map of the project
    • getSyncVarMap

      public FWSimVarMap getSyncVarMap()
      Gibt zurück: