Klasse FWSimulationGenerator

java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
net.simplace.sim.control.FWSimulationGenerator
Alle implementierten Schnittstellen:
FWSimFieldContainer
Bekannte direkte Unterklassen:
DefaultSimulationGenerator, SimpleSimulationGenerator

public abstract class FWSimulationGenerator extends FWSimulationControlContainer
The simulation generator creates for existing project ( FWSimProject ) a range of simulations ( FWSimSimulation ). This abstract class has 2 implementations: SimpleSimulationGenerator: Final class used for FWSimProject.PROJECT_MODE.SIMULATION and FWSimVariable.CONTENT_TYPE.sim. It just delivers the (few) simulations in the selected project. DefaultSimulationGenerator: Class used for all FWSimProject.PROJECT_MODEs but FWSimVariable.CONTENT_TYPE.res. Use this class to override and create own SimGenerator plug-ins. Method
Ungültige Referenz
#generate(FWSimSimulation)
has to be implemented in extending classes.
Autor:
Andreas Enders
  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • createSimulationGenerator

      public static FWSimulationGenerator createSimulationGenerator(org.jdom2.Element aContainerElement, FWSimSession aSession, HashMap<String,FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType)
      factory method for Creation of the resource transformer
      Parameter:
      aContainerElement -
      aSession -
      aFieldMap -
      aContentType -
      Gibt zurück:
      the resource transformer
    • clearSimulations

      protected void clearSimulations()
      Clear the iSimulationsList
    • getSimulationsListSize

      protected int getSimulationsListSize()
      Get the size of iSimulationsList
      Gibt zurück:
      the count of simulations
    • getSimulation

      protected FWSimSimulation getSimulation(int index)
      Get simulation by index
      Parameter:
      index -
      Gibt zurück:
      the simulation with the index. if not available null
    • addSimulation

      protected boolean addSimulation(FWSimVarMap aVarMap)
      Add simulation to iSimulationsList
      Parameter:
      aVarMap -
      Gibt zurück:
      if the adding was successful
    • writeSimulation

      public void writeSimulation(HashMap<String,FWSimVariable<?>> aSimulationMap)
      Parameter:
      aSimulationMap -
    • updateSimulations

      public List<FWSimSimulation> updateSimulations(FWSimulationControlCache aCache, String aProjectID, int aStartNumber)
      Parameter:
      aCache -
      aProjectID -
      aStartNumber -
      aSelectedSimulation -
      aMaxEndNumber -
      Gibt zurück:
      the created Simulations
    • initializeProject

      protected ResultSet initializeProject(String aProjectID, FWSimulationControlCache aControlCache) throws SQLException
      Löst aus:
      SQLException
    • generate

      public abstract void generate(FWSimulationControlCache aControlCache, ResultSet aSimulationsResultSet) throws Exception
      abstract method generate that is called from outside when the user calls:
      Ungültige Referenz
      FWSimulationGenerator#updateSimulations(FWSimSimulation, String)
      Parameter:
      aControlCache -
      aSimulationsResultSet -
      Löst aus:
      SQLException
      Exception
    • canUpdate

      public boolean canUpdate(String aProjectName)
      Parameter:
      aProjectName -
      Gibt zurück:
      the canUpdate
    • setFinished

      protected void setFinished()
      Parameter:
      sets - SessionUpdate to false
    • setInitial

      public void setInitial()
      Parameter:
      sets - SessionUpdate to true
    • finalize

      public void finalize()
      Setzt außer Kraft:
      finalize in Klasse Object
    • reset

      public void reset()