Class FieldSupplier
- java.lang.Object
-
- bio.singa.simulation.model.modules.concentration.FieldSupplier
-
public class FieldSupplier extends Object
The field supplier manages all files required for different behaviours of a module.- Author:
- cl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFullDelta(ConcentrationDeltaIdentifier deltaIdentifier, ConcentrationDelta delta)voidaddHalfDelta(ConcentrationDeltaIdentifier deltaIdentifier, ConcentrationDelta delta)voidclearDeltas()Clears all full end half deltas.ChemicalEntitygetCurrentEntity()Returns the current chemical entity.Map<ConcentrationDeltaIdentifier,ConcentrationDelta>getCurrentFullDeltas()Returns all currently available full deltas.Map<ConcentrationDeltaIdentifier,ConcentrationDelta>getCurrentHalfDeltas()Returns all currently available half deltas.CellSubsectiongetCurrentSubsection()Returns the current subsection.UpdatablegetCurrentUpdatable()Returns the current updatable.NumericalErrorgetLargestLocalError()Returns the largest error as of yet.booleanisStrutCalculation()Returns the current state of calculations.voidresetError()Resets the error to the minimal error.voidsetCurrentEntity(ChemicalEntity entity)Sets the current chemical entity.voidsetCurrentSubsection(CellSubsection subsection)Sets the current subsection.voidsetCurrentUpdatable(Updatable updatable)Sets the current updatable.voidsetLargestLocalError(NumericalError largestLocalError)Sets the largest error as of yet.voidsetStrutCalculation(boolean strutCalculation)Sets the current state of calculation.StringtoString()
-
-
-
Method Detail
-
getCurrentUpdatable
public Updatable getCurrentUpdatable()
Returns the current updatable.- Returns:
- The current updatable.
-
setCurrentUpdatable
public void setCurrentUpdatable(Updatable updatable)
Sets the current updatable.- Parameters:
updatable- The current updatable.
-
getCurrentSubsection
public CellSubsection getCurrentSubsection()
Returns the current subsection.- Returns:
- The current subsection.
-
setCurrentSubsection
public void setCurrentSubsection(CellSubsection subsection)
Sets the current subsection.- Parameters:
subsection- The current subsection.
-
getCurrentEntity
public ChemicalEntity getCurrentEntity()
Returns the current chemical entity.- Returns:
- The current chemical entity.
-
setCurrentEntity
public void setCurrentEntity(ChemicalEntity entity)
Sets the current chemical entity.- Parameters:
entity- The current chemical entity.
-
getCurrentFullDeltas
public Map<ConcentrationDeltaIdentifier,ConcentrationDelta> getCurrentFullDeltas()
Returns all currently available full deltas.- Returns:
- All currently available full deltas.
-
addFullDelta
public void addFullDelta(ConcentrationDeltaIdentifier deltaIdentifier, ConcentrationDelta delta)
-
getCurrentHalfDeltas
public Map<ConcentrationDeltaIdentifier,ConcentrationDelta> getCurrentHalfDeltas()
Returns all currently available half deltas.- Returns:
- All currently available half deltas.
-
addHalfDelta
public void addHalfDelta(ConcentrationDeltaIdentifier deltaIdentifier, ConcentrationDelta delta)
-
getLargestLocalError
public NumericalError getLargestLocalError()
Returns the largest error as of yet.- Returns:
- the largest error as of yet.
-
setLargestLocalError
public void setLargestLocalError(NumericalError largestLocalError)
Sets the largest error as of yet.- Parameters:
largestLocalError- the largest error as of yet.
-
resetError
public void resetError()
Resets the error to the minimal error.
-
isStrutCalculation
public boolean isStrutCalculation()
Returns the current state of calculations.- Returns:
- True if currently strut points (half deltas) are calculated.
-
setStrutCalculation
public void setStrutCalculation(boolean strutCalculation)
Sets the current state of calculation.- Parameters:
strutCalculation- The current state of calculation.
-
clearDeltas
public void clearDeltas()
Clears all full end half deltas.
-
-