Class ReplicationStudyStep
java.lang.Object
com.amalgamasimulation.studies.core.StudyStep
com.amalgamasimulation.studies.core.ScenarioStudyStep
com.amalgamasimulation.studies.core.ReplicationStudyStep
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReplicationStudyStep(ScenarioStudyStep parent, int seed) Called for a new step added at runtime, and also for a step loaded from a study file which had not been launched before the study was saved to a file.ReplicationStudyStep(ScenarioStudyStep parent, int seed, ShortId id) Called for a ReplicationStudyStep loaded from a study file.ReplicationStudyStep(ScenarioStudyStep parent, int seed, ShortId id, SimulationRunResult result) Called for a ReplicationStudyStep loaded from a study file.
The run id is known, because this step had been launched before its study was saved to a file.
The study step also has simulation results.
The 'run' field is initialized with aLoadedRuninstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidchangeReplicationsCount(int newReplicationsCount) doubleintintdoublebooleanid()loadedId()name()intvoidreset()results()voidrun(BiFunction<org.eclipse.emf.ecore.EObject, Integer, Run<?>> runSupplier, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) org.eclipse.emf.ecore.EObjectscenario()intseed()voidsetCancellationMonitor(Supplier<Boolean> cancellationMonitor) voidsetCompletionActionHandler(Runnable completionActionHandler) voidvoidsetInExecutionQueue(boolean isInExecutionQueue) voidstop()voidtryReattachToServerRun(BiFunction<ShortId, Integer, Run<?>> runSupplier, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) Methods inherited from class com.amalgamasimulation.studies.core.StudyStep
addChild, children, correctChildrenResults, descendants, estimatedRemainingTimeMillis, hasReattachableRemoteRuns, isRunning, parent, parentScenarioStudyStep, parentStudy, reattachToRemoteRuns, removeChild
-
Field Details
-
ZERO_ID
-
-
Constructor Details
-
ReplicationStudyStep
Called for a new step added at runtime, and also for a step loaded from a study file which had not been launched before the study was saved to a file. -
ReplicationStudyStep
Called for a ReplicationStudyStep loaded from a study file.
The run id is known, because this step had been launched before its study was saved to a file.
The study step has no result yet.The 'run' field will be initialized later in the
tryReattachToServerRun(BiFunction, Supplier, Runnable)method. -
ReplicationStudyStep
public ReplicationStudyStep(ScenarioStudyStep parent, int seed, ShortId id, SimulationRunResult result) Called for a ReplicationStudyStep loaded from a study file.
The run id is known, because this step had been launched before its study was saved to a file.
The study step also has simulation results.
The 'run' field is initialized with aLoadedRuninstance.
-
-
Method Details
-
setCancellationMonitor
-
setCompletionActionHandler
-
id
-
loadedId
-
seed
public int seed() -
stop
public void stop() -
reset
public void reset() -
childrenReplicationSteps
- Overrides:
childrenReplicationStepsin classStudyStep
-
errorsCount
public int errorsCount()- Overrides:
errorsCountin classStudyStep
-
results
- Overrides:
resultsin classScenarioStudyStep
-
elapsedTimeMillis
public int elapsedTimeMillis()- Overrides:
elapsedTimeMillisin classStudyStep
-
errorsFraction
public double errorsFraction()- Overrides:
errorsFractionin classStudyStep
-
completedFraction
public double completedFraction()- Overrides:
completedFractionin classStudyStep
-
addChild
-
replicationsCount
public int replicationsCount()- Overrides:
replicationsCountin classScenarioStudyStep
-
run
-
tryReattachToServerRun
-
hasCorrectResult
public boolean hasCorrectResult() -
setCompletionHandled
public void setCompletionHandled() -
setInExecutionQueue
public void setInExecutionQueue(boolean isInExecutionQueue) -
runStatus
-
scenario
public org.eclipse.emf.ecore.EObject scenario()- Specified by:
scenarioin classScenarioStudyStep
-
name
-
changeReplicationsCount
public void changeReplicationsCount(int newReplicationsCount) - Overrides:
changeReplicationsCountin classScenarioStudyStep
-