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
Modifier and TypeFieldDescriptionprotected int
the current count of simulations in that projectprotected int
the 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProject
(String aProjectID) void
adds 1 to the current simulation countvoid
adds 1 to the current simulation countvoid
adds 1 to the current update simulation countvoid
calculateFractionFinished
(long aCompletedTaskCount) org.jdom2.Element
int
int
org.jdom2.Element
getEditFormXML
(boolean aEnabled) double
int
int
String[]
int
void
keepIterationData
(Boolean aKeepFlag) void
void
void
putAllVariables
(LinkedHashMap<String, FWSimVariable<?>> aFieldMap) void
void
resets the current simulation count to 0void
resets the current simulation count to 0void
resets the current update simulation count to 0void
setCalibrationMode
(FWSimSession.CALIBRATION_MODE aCalibrationMode) void
setFractionFinished
(double aFractionFinished) void
setProjectCount
(int aProjectCount) void
setSelectedSimulations
(String[] aSelectedSimulations) void
setSimulationCount
(int aSimulationCount) void
startProject
(String aProjectID) org.jdom2.Element
toXML()
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
-
-