Class ConcentrationDelta
- java.lang.Object
-
- bio.singa.simulation.model.modules.concentration.ConcentrationDelta
-
public class ConcentrationDelta extends Object
The delta object manages the change that will be applied to the concentration of a specificChemicalEntityin aCellSubsection.- Author:
- cl
-
-
Constructor Summary
Constructors Constructor Description ConcentrationDelta(UpdateModule module, CellSubsection cellSubsection, ChemicalEntity chemicalEntity, double value)Creates a new concentration delta.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcentrationDeltaadd(double summand)CellSubsectiongetCellSubsection()Returns the subsection.ChemicalEntitygetChemicalEntity()Returns the chemical entity.UpdateModulegetModule()Returns the module, that calculated this delta.doublegetValue()Returns the value of the change.ConcentrationDeltamultiply(double multiplicand)Multiplies (modifies) this delta with the given multiplicand.voidsetValue(double value)StringtoString()
-
-
-
Constructor Detail
-
ConcentrationDelta
public ConcentrationDelta(UpdateModule module, CellSubsection cellSubsection, ChemicalEntity chemicalEntity, double value)
Creates a new concentration delta.- Parameters:
module- The module the delta was calculated by.cellSubsection- The subsection the delta is applied tochemicalEntity- The chemical entity the delta is applied to.value- The actual value of the change.
-
-
Method Detail
-
getModule
public UpdateModule getModule()
Returns the module, that calculated this delta.- Returns:
- The module, that calculated this delta.
-
getCellSubsection
public CellSubsection getCellSubsection()
Returns the subsection.- Returns:
- The subsection.
-
getChemicalEntity
public ChemicalEntity getChemicalEntity()
Returns the chemical entity.- Returns:
- The chemical entity.
-
getValue
public double getValue()
Returns the value of the change.- Returns:
- The value of the change.
-
setValue
public void setValue(double value)
-
multiply
public ConcentrationDelta multiply(double multiplicand)
Multiplies (modifies) this delta with the given multiplicand.- Parameters:
multiplicand- The scalar that the delta is multiplied with.- Returns:
- This multiplied delta.
-
add
public ConcentrationDelta add(double summand)
-
-