public class SemiDependentUpdate extends Object implements UpdateScope
ConcentrationBasedModules require the integer state of a subset of updatables.
For example MembraneDiffusion might happen between a Vesicle and an AutomatonNode, therefore
at least two updatables are changed during calculation. Half step deltas can be calculated independently but, more
half deltas need to be stored to evaluate the error of the computation.| Constructor and Description |
|---|
SemiDependentUpdate(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 SemiDependentUpdate(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 © 2018. All rights reserved.