public class ConcentrationDeltaManager extends Object
| Constructor and Description |
|---|
ConcentrationDeltaManager(ConcentrationContainer initialConcentrations)
Creates a new Concentration Delta Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPotentialDelta(ConcentrationDelta potentialDelta)
Adds a potential delta to this updatable.
|
void |
applyDeltas()
Applies all final deltas and clears the delta list.
|
void |
backupConcentrations() |
void |
clearPotentialDeltas()
Clears the list of potential deltas.
|
void |
clearPotentialDeltasBut(UpdateModule module)
Clears the list of potential deltas retaining updates from a specific module.
|
void |
determineComparisionConcentrations() |
double |
determineGlobalNumericalError() |
ConcentrationContainer |
getConcentrationContainer()
Returns the current concentration container.
|
List<ConcentrationDelta> |
getFinalDeltas()
Returns all deltas that are going to be applied to this node.
|
ConcentrationContainer |
getOriginalConcentrations() |
List<ConcentrationDelta> |
getPotentialDeltas()
Returns all potential deltas that should be applied.
|
boolean |
hasDeltas() |
boolean |
isConcentrationFixed()
Returns true if the concentration is fixed - no deltas are applied.
|
boolean |
isObserved()
Returns true if the concentrations are observed.
|
void |
revertToOriginalConcentrations() |
void |
setConcentrationContainer(ConcentrationContainer concentrations)
Sets the current concentration container.
|
void |
setConcentrationFixed(boolean concentrationFixed)
Sets the concentration to be fixed - no deltas will be applied.
|
void |
setInterimAndUpdateCurrentConcentrations() |
void |
setObserved(boolean observed)
Sets the concentrations to be observed, this additional requires seting up a
UpdateEventListener. |
void |
shiftDeltas()
Shifts the deltas from the potential delta list to the final delta list.
|
public ConcentrationDeltaManager(ConcentrationContainer initialConcentrations)
initialConcentrations - The initial concentrations.public ConcentrationContainer getConcentrationContainer()
public void setConcentrationContainer(ConcentrationContainer concentrations)
concentrations - The current concentration container.public ConcentrationContainer getOriginalConcentrations()
public boolean isObserved()
public void setObserved(boolean observed)
UpdateEventListener.observed - True if th concentrations should be observed.public boolean isConcentrationFixed()
public void setConcentrationFixed(boolean concentrationFixed)
concentrationFixed - True if the concentration should be fixed.public boolean hasDeltas()
public void setInterimAndUpdateCurrentConcentrations()
public void determineComparisionConcentrations()
public double determineGlobalNumericalError()
public List<ConcentrationDelta> getFinalDeltas()
public List<ConcentrationDelta> getPotentialDeltas()
public void addPotentialDelta(ConcentrationDelta potentialDelta)
potentialDelta - The potential delta.public void backupConcentrations()
public void revertToOriginalConcentrations()
public void clearPotentialDeltas()
shiftDeltas() or after rejecting a
time step.public void clearPotentialDeltasBut(UpdateModule module)
shiftDeltas() or after rejecting a time step.module - The module.public void shiftDeltas()
public void applyDeltas()
Copyright © 2019. All rights reserved.