Class FWSimulationControlCache

java.lang.Object
net.simplace.sim.io.FWSimCache
net.simplace.sim.control.FWSimulationControlCache
All Implemented Interfaces:
FWSimFieldContainer

public class FWSimulationControlCache extends FWSimCache
Author:
lap
  • Field Details

    • iCurrentSimulationCount

      protected int iCurrentSimulationCount
      the current count of simulations in that project
    • iCurrentUpdateSimulationCount

      protected int iCurrentUpdateSimulationCount
      the current count of update simulations cycle in that project
  • Constructor Details

    • FWSimulationControlCache

      public FWSimulationControlCache(FWSimSession aSession)
      Parameters:
      aSession -
  • Method Details

    • toXML

      public org.jdom2.Element toXML()
      Returns:
      a xml element with all the settings of this component()
    • getCreateFormXML

      public org.jdom2.Element getCreateFormXML()
      Returns:
      a xml element with all the settings of this component()
    • getEditFormXML

      public org.jdom2.Element getEditFormXML(boolean aEnabled)
      Returns:
      a xml element with all the settings of this component()
    • keepIterationData

      public Boolean keepIterationData()
    • keepIterationData

      public void keepIterationData(Boolean aKeepFlag)
    • getIteration

      public FWSimVariable<Integer> getIteration()
    • newIteration

      public void newIteration()
    • resetIteration

      public void resetIteration()
    • getProjectIDs

      public LinkedHashSet<String> getProjectIDs()
    • getProjectCount

      public int getProjectCount()
      Returns:
      the project count
    • getFirstProjectID

      public String getFirstProjectID()
      Returns:
      the firstProjectID
    • startProject

      public void startProject(String aProjectID)
      Parameters:
      aProjectID - the current ProjectID
    • getCurrentProjectID

      public String getCurrentProjectID()
      Returns:
      the currentProjectID
    • getCurrentProjectCount

      public int getCurrentProjectCount()
      Returns:
      the currentSimulationCount
    • addProjectCount

      public void addProjectCount()
      adds 1 to the current simulation count
    • setProjectCount

      public void setProjectCount(int aProjectCount)
      Parameters:
      aProjectCount -
    • resetProjectCount

      public void resetProjectCount()
      resets the current simulation count to 0
    • getLastProjectID

      public String getLastProjectID()
      Returns:
      the lastProjectID
    • getPrevProjectID

      public String getPrevProjectID()
      Returns:
      the lastProjectID
    • addProject

      public void addProject(String aProjectID)
    • getSession

      public FWSimSession getSession()
      Returns:
      the session
    • clearProjectIDs

      public LinkedHashSet<String> clearProjectIDs()
    • getCalibrationMode

      public FWSimSession.CALIBRATION_MODE getCalibrationMode()
    • setCalibrationMode

      public void setCalibrationMode(FWSimSession.CALIBRATION_MODE aCalibrationMode)
    • getSelectedSimulations

      public String[] getSelectedSimulations()
    • getSelectedSimulationsVar

      public FWSimVariable<String[]> getSelectedSimulationsVar()
    • setSelectedSimulations

      public void setSelectedSimulations(String[] aSelectedSimulations)
    • putAllVariables

      public void putAllVariables(LinkedHashMap<String,FWSimVariable<?>> aFieldMap)
    • loadProjectData

      public void loadProjectData() throws SQLException
      Throws:
      SQLException
    • getControlMap

      public FWSimVarMap getControlMap()
    • getCurrentSimulationCount

      public int getCurrentSimulationCount()
      Returns:
      the currentSimulationCount
    • addSimulationCount

      public void addSimulationCount()
      adds 1 to the current simulation count
    • setSimulationCount

      public void setSimulationCount(int aSimulationCount)
      Parameters:
      aSimulationCount -
    • resetSimulationCount

      public void resetSimulationCount()
      resets the current simulation count to 0
    • getUpdateSimulationCount

      public int getUpdateSimulationCount()
      Returns:
      the currentSimulationCount
    • addUpdateSimulationCount

      public void addUpdateSimulationCount()
      adds 1 to the current update simulation count
    • resetUpdateSimulationCount

      public void resetUpdateSimulationCount()
      resets the current update simulation count to 0
    • getPercentFinished

      public int getPercentFinished()
      Returns:
      the percentFinished [0-100]
    • getFractionFinished

      public double getFractionFinished()
      Returns:
      the fractionFinished [0-1]
    • setFractionFinished

      public void setFractionFinished(double aFractionFinished)
      Parameters:
      aFractionFinished - the finished part of the simulation experiment [0-1]
    • getVarMap

      public FWSimVarMap getVarMap()
      Returns:
      number in the order of Components
    • getSynchronizeRule

      public String getSynchronizeRule()
      Returns:
    • getSynchronizeFrequence

      public FWSimIOAdapter.FREQUENCE getSynchronizeFrequence()
      Returns:
    • calculateFractionFinished

      public void calculateFractionFinished(long aCompletedTaskCount)
      Parameters:
      aCompletedTaskCount -