Uses of Class
com.amalgamasimulation.utils.ShortId
Packages that use ShortId
Package
Description
This package contains classes for headless (console) applications that can
launch studies.
This package contains classes for console and desktop applications that can
launch studies remotely on the Amalgama Cloud Server.
-
Uses of ShortId in com.amalgamasimulation.desktop.ui.studies
Methods in com.amalgamasimulation.desktop.ui.studies with parameters of type ShortIdModifier and TypeMethodDescriptionbooleanDefaultRemoteRunHelper.checkRemoteRunIsKnown(ShortId id) Run<?> DefaultRemoteRunHelper.createReattachedRemoteRun(ShortId id, int seed) -
Uses of ShortId in com.amalgamasimulation.studies.core
Fields in com.amalgamasimulation.studies.core declared as ShortIdMethods in com.amalgamasimulation.studies.core that return ShortIdModifier and TypeMethodDescriptionReplicationStudyStep.id()Run.id()StudyStep.id()ReplicationStudyStep.loadedId()Methods in com.amalgamasimulation.studies.core with parameters of type ShortIdModifier and TypeMethodDescriptionbooleanIRemoteRunHelper.checkRemoteRunIsKnown(ShortId id) Is there an experiment on the server with the provided run id?Run<?> IRemoteRunHelper.createReattachedRemoteRun(ShortId id, int seed) How to create a run that represents a previously launched remote experiment with the given run id?Method parameters in com.amalgamasimulation.studies.core with type arguments of type ShortIdModifier and TypeMethodDescriptionbooleanStudyStep.hasReattachableRemoteRuns(Predicate<ShortId> remoteRunAwarenessChecker) Returns true if any ofStudyStep.descendants()represents a run that had been executed remotely before this study was saved to a file.voidStudyStep.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.voidStudyStep.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.voidReplicationStudyStep.tryReattachToServerRun(BiFunction<ShortId, Integer, Run<?>> runSupplier, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) Constructors in com.amalgamasimulation.studies.core with parameters of type ShortIdModifierConstructorDescriptionLocalRun(ShortId id, S scenario, int seed, ModelCreator<S, M> modelCreator, Function<M, SimulationRunResult> resultGenerator) ReplicationStudyStep(ScenarioStudyStep parent, int seed, ShortId id) Called for a ReplicationStudyStep loaded from a study file.ReplicationStudyStep(ScenarioStudyStep parent, int seed, ShortId id, Result 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.protected -
Uses of ShortId in com.amalgamasimulation.studies.headlessapp
Methods in com.amalgamasimulation.studies.headlessapp with parameters of type ShortIdModifier and TypeMethodDescriptionbooleanHeadlessApplication.deleteTask(ShortId runId) booleanIHeadlessApplication.deleteTask(ShortId runId) Delete a task.Return the result of the task execution.voidvoidGracefully stop a started task, or cancel a submitted but not yet started task.booleanHeadlessApplication.submitTask(ShortId runId, String scenarioPath, int seed) booleanIHeadlessApplication.submitTask(ShortId runId, String scenarioPath, int seed) Submit a new simulation task.booleanHeadlessApplication.taskIsKnown(ShortId runId) booleanIHeadlessApplication.taskIsKnown(ShortId runId) Returns true if the application has a task with this runId. -
Uses of ShortId in com.amalgamasimulation.studies.headlessapp.dto
Methods in com.amalgamasimulation.studies.headlessapp.dto that return ShortIdModifier and TypeMethodDescriptionProgressItem.runId()Returns the value of therunIdrecord component.Constructors in com.amalgamasimulation.studies.headlessapp.dto with parameters of type ShortIdModifierConstructorDescriptionProgressItem(ShortId runId, double completedFraction, Run.Status status, boolean cancelledBeforeStart) Creates an instance of aProgressItemrecord class. -
Uses of ShortId in com.amalgamasimulation.studies.remote
Methods in com.amalgamasimulation.studies.remote with parameters of type ShortIdModifier and TypeMethodDescriptionbooleanRemoteRunHelper.checkRemoteRunIsKnown(ShortId id) RemoteRunHelper.createReattachedRemoteRun(ShortId id, int seed) Constructors in com.amalgamasimulation.studies.remote with parameters of type ShortId -
Uses of ShortId in com.amalgamasimulation.utils
Methods in com.amalgamasimulation.utils that return ShortId