Class StudyStep
java.lang.Object
com.amalgamasimulation.studies.core.StudyStep
- Direct Known Subclasses:
ScenarioStudyStep,Study
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidabstract voidchangeReplicationsCount(int newReplicationsCount) children()Returns immediate children of this study step.doubleReturns the result of the depth-first traversal of the study step tree, starting with the current study step.intintdoubleintbooleanhasReattachableRemoteRuns(Predicate<ShortId> remoteRunAwarenessChecker) Returns true if any ofdescendants()represents a run that had been executed remotely before this study was saved to a file.booleanabstract Stringname()parent()voidreattachToRemoteRuns(Predicate<ShortId> remoteRunAwarenessChecker, BiFunction<ShortId, Integer, Run<?>> runSupplier, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) Creates remote runs 'attached' to remotely running experiments that had been submitted to the Cloud Server earlier.voidremoveChild(StudyStep childToRemove) intvoidrun(BiFunction<org.eclipse.emf.ecore.EObject, Integer, Run<?>> runSupplier, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler)
-
Constructor Details
-
StudyStep
-
-
Method Details
-
name
-
completedFraction
public double completedFraction() -
errorsFraction
public double errorsFraction() -
isRunning
public boolean isRunning() -
elapsedTimeMillis
public int elapsedTimeMillis() -
errorsCount
public int errorsCount() -
childrenReplicationSteps
-
correctChildrenResults
-
estimatedRemainingTimeMillis
public int estimatedRemainingTimeMillis() -
run
-
hasReattachableRemoteRuns
Returns true if any ofdescendants()represents a run that had been executed remotely before this study was saved to a file. -
reattachToRemoteRuns
public void reattachToRemoteRuns(Predicate<ShortId> remoteRunAwarenessChecker, BiFunction<ShortId, Integer, Run<?>> runSupplier, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) Creates remote runs 'attached' to remotely running experiments that had been submitted to the Cloud Server earlier.- Parameters:
remoteRunAwarenessChecker- checks that the Cloud Server knows a run with the provided idrunSupplier- creates a run attached to the remotely executing runcancellationMonitor- object to check if user has requested a stoprunCompletionHandler- callback to be called when a Run is completed
-
parentStudy
-
parent
-
children
Returns immediate children of this study step. -
descendants
Returns the result of the depth-first traversal of the study step tree, starting with the current study step.- See Also:
-
replicationsCount
public int replicationsCount() -
parentScenarioStudyStep
-
addChild
-
addChild
-
removeChild
-
changeReplicationsCount
public abstract void changeReplicationsCount(int newReplicationsCount)
-