Package net.simplace.sim.control
Class FWSimulationControlCache
java.lang.Object
net.simplace.sim.io.FWSimCache
net.simplace.sim.control.FWSimulationControlCache
- All Implemented Interfaces:
FWSimFieldContainer
- Author:
- lap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intthe current count of simulations in that projectprotected intthe current count of update simulations cycle in that projectFields inherited from class net.simplace.sim.io.FWSimCache
iArrayMode, iCache, iFieldcount, iFrequence, iHeaderVariables, iName, iOrderNumber, iVariablesIndexes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProject(String aProjectID) voidadds 1 to the current simulation countvoidadds 1 to the current simulation countvoidadds 1 to the current update simulation countvoidcalculateFractionFinished(long aCompletedTaskCount) org.jdom2.Elementintintorg.jdom2.ElementgetEditFormXML(boolean aEnabled) doubleintintString[]intvoidkeepIterationData(Boolean aKeepFlag) voidvoidvoidputAllVariables(LinkedHashMap<String, FWSimVariable<?>> aFieldMap) voidvoidresets the current simulation count to 0voidresets the current simulation count to 0voidresets the current update simulation count to 0voidsetCalibrationMode(FWSimSession.CALIBRATION_MODE aCalibrationMode) voidsetFractionFinished(double aFractionFinished) voidsetProjectCount(int aProjectCount) voidsetSelectedSimulations(String[] aSelectedSimulations) voidsetSimulationCount(int aSimulationCount) voidstartProject(String aProjectID) org.jdom2.ElementtoXML()Methods inherited from class net.simplace.sim.io.FWSimCache
addVariable, checkCondition, createVariables, getCache, getContentType, getFieldcount, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVariableIndex, getVariables, isArrayMode, isConditionCheck, removeVariable, setCacheMap
-
Field Details
-
iCurrentSimulationCount
protected int iCurrentSimulationCountthe current count of simulations in that project -
iCurrentUpdateSimulationCount
protected int iCurrentUpdateSimulationCountthe current count of update simulations cycle in that project
-
-
Constructor Details
-
FWSimulationControlCache
- 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
-
keepIterationData
-
getIteration
-
newIteration
public void newIteration() -
resetIteration
public void resetIteration() -
getProjectIDs
-
getProjectCount
public int getProjectCount()- Returns:
- the project count
-
getFirstProjectID
- Returns:
- the firstProjectID
-
startProject
- Parameters:
aProjectID- the current ProjectID
-
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
- Returns:
- the lastProjectID
-
getPrevProjectID
- Returns:
- the lastProjectID
-
addProject
-
getSession
- Returns:
- the session
-
clearProjectIDs
-
getCalibrationMode
-
setCalibrationMode
-
getSelectedSimulations
-
getSelectedSimulationsVar
-
setSelectedSimulations
-
putAllVariables
-
loadProjectData
- Throws:
SQLException
-
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
- Returns:
- number in the order of Components
-
getSynchronizeRule
- Returns:
-
getSynchronizeFrequence
- Returns:
-
calculateFractionFinished
public void calculateFractionFinished(long aCompletedTaskCount) - Parameters:
aCompletedTaskCount-
-