Class ConcentrationDelta


  • public class ConcentrationDelta
    extends Object
    The delta object manages the change that will be applied to the concentration of a specific ChemicalEntity in a CellSubsection.
    Author:
    cl
    • 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 to
        chemicalEntity - 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.