Class UpdateScheduler
- java.lang.Object
-
- bio.singa.simulation.model.simulation.UpdateScheduler
-
public class UpdateScheduler extends Object
- Author:
- cl
-
-
Constructor Summary
Constructors Constructor Description UpdateScheduler(Simulation simulation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModule(UpdateModule module)CountDownLatchgetCountDownLatch()ErrorManagergetErrorManager()Deque<UpdateModule>getModules()doublegetMoleculeFraction()intgetNumberOfModules()SimulationgetSimulation()List<Updatable>getUpdatables()voidinitialize()booleaninterrupt()Returns true if the calling module was the first to call the method, therefore being allowed to optimize the time step.booleanisSkipDisplacementChecks()voidnextEpoch()voidsetSkipDisplacementChecks(boolean skipDisplacementChecks)voidshutdownExecutorService()
-
-
-
Constructor Detail
-
UpdateScheduler
public UpdateScheduler(Simulation simulation)
-
-
Method Detail
-
initialize
public void initialize()
-
getMoleculeFraction
public double getMoleculeFraction()
-
nextEpoch
public void nextEpoch()
-
shutdownExecutorService
public void shutdownExecutorService()
-
getCountDownLatch
public CountDownLatch getCountDownLatch()
-
getModules
public Deque<UpdateModule> getModules()
-
addModule
public void addModule(UpdateModule module)
-
getNumberOfModules
public int getNumberOfModules()
-
getSimulation
public Simulation getSimulation()
-
interrupt
public boolean interrupt()
Returns true if the calling module was the first to call the method, therefore being allowed to optimize the time step.- Returns:
- True if the calling module was the first to call the method.
-
getErrorManager
public ErrorManager getErrorManager()
-
isSkipDisplacementChecks
public boolean isSkipDisplacementChecks()
-
setSkipDisplacementChecks
public void setSkipDisplacementChecks(boolean skipDisplacementChecks)
-
-