public class DependentUpdate extends Object implements UpdateScope
ConcentrationBasedModules require an integer state of basically all updatables in a
simulation. First all updates for all updatables are calculated. Afterwards all half step concentrations are
determined and further all errors are calculated, looking for the Updatable with the largest
LocalError (e.g. Diffusion).| Constructor and Description |
|---|
DependentUpdate(ConcentrationBasedModule<?> module)
Initializes the update scope for the corresponding module.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearPotentialDeltas(Updatable updatable)
Clears all concentration deltas that may be assigned to the given updatable.
|
ConcentrationContainer |
getHalfStepConcentration(Updatable updatable)
Return the half step concentration of a node after the full update has been calculated for the full step and the
resulting delta is known.
|
void |
processAllUpdatables(Collection<Updatable> updatables)
Processes all given updatables.
|
void |
processUpdatable(Updatable updatable)
Calculates the given updatable.
|
public DependentUpdate(ConcentrationBasedModule<?> module)
module - The module.public void processAllUpdatables(Collection<Updatable> updatables)
UpdateScopeprocessAllUpdatables in interface UpdateScopeupdatables - The updatables to be processed.public void processUpdatable(Updatable updatable)
UpdateScopeprocessUpdatable in interface UpdateScopeupdatable - The updatable.public void clearPotentialDeltas(Updatable updatable)
UpdateScopeclearPotentialDeltas in interface UpdateScopeupdatable - The updatable.public ConcentrationContainer getHalfStepConcentration(Updatable updatable)
UpdateScopegetHalfStepConcentration in interface UpdateScopeupdatable - The updatable.Copyright © 2019. All rights reserved.