public class ConcentrationDelta extends Object
ChemicalEntity in
a CellSubsection.| Constructor and Description |
|---|
ConcentrationDelta(UpdateModule module,
CellSubsection cellSubsection,
ChemicalEntity chemicalEntity,
double value)
Creates a new concentration delta.
|
| Modifier and Type | Method and Description |
|---|---|
ConcentrationDelta |
add(double summand) |
CellSubsection |
getCellSubsection()
Returns the subsection.
|
ChemicalEntity |
getChemicalEntity()
Returns the chemical entity.
|
UpdateModule |
getModule()
Returns the module, that calculated this delta.
|
double |
getValue()
Returns the value of the change.
|
ConcentrationDelta |
multiply(double multiplicand)
Multiplies (modifies) this delta with the given multiplicand.
|
void |
setValue(double value) |
String |
toString() |
public ConcentrationDelta(UpdateModule module, CellSubsection cellSubsection, ChemicalEntity chemicalEntity, double value)
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.public UpdateModule getModule()
public CellSubsection getCellSubsection()
public ChemicalEntity getChemicalEntity()
public double getValue()
public void setValue(double value)
public ConcentrationDelta multiply(double multiplicand)
multiplicand - The scalar that the delta is multiplied with.public ConcentrationDelta add(double summand)
Copyright © 2019. All rights reserved.