public abstract class Reaction extends ConcentrationBasedModule<SectionDeltaFunction>
ConcentrationBasedModules following the laws of chemical kinetics. The calculation
of the velocity is defined by the concrete implementation of this module.ReversibleReaction,
MichaelisMentenReaction,
NthOrderReaction| Modifier and Type | Class and Description |
|---|---|
static class |
Reaction.Builder<TopLevelType extends Reaction,BuilderType extends Reaction.Builder> |
supplier| Constructor and Description |
|---|
Reaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStochiometricReactant(Reactant stoichiometricReactant) |
protected List<ConcentrationDelta> |
calculateDeltas(ConcentrationContainer concentrationContainer)
Calculates all deltas for all reactants for the reaction.
|
abstract double |
calculateVelocity(ConcentrationContainer concentrationContainer)
Calculates the reaction velocity, depending on the kinetic law.
|
protected String |
collectProductsString() |
protected String |
collectSubstrateString() |
List<ChemicalEntity> |
getProductEntities()
Returns all products of this reaction.
|
List<Reactant> |
getProducts() |
String |
getReactionString()
Returns a nicely formatted string representation of the reaction.
|
List<Reactant> |
getStoichiometricReactants()
Returns the list of reactants for this reaction.
|
List<ChemicalEntity> |
getSubstrateEntities()
Returns all substrates of this reaction.
|
List<Reactant> |
getSubstrates() |
abstract void |
initialize() |
boolean |
isElementary()
Returns
true if this Reaction is considered elementary and false otherwise. |
void |
setElementary(boolean elementary)
Sets this Reaction as elementary.
|
boolean |
substratesAvailable(Updatable updatable) |
String |
toString() |
addDeltaFunction, addModuleToSimulation, addReferencedEntities, addReferencedEntity, calculateUpdates, checkFeatures, deltaIsValid, determineLargestLocalError, getApplicationCondition, getDeltaCutoff, getErrorCutoff, getFeature, getFeatures, getIdentifier, getReferencedEntities, getRequiredFeatures, getScaledFeature, getScaledFeature, getScope, getSimulation, getSpecificity, getState, getSupplier, handleDelta, onCompletion, onReset, optimizeTimeStep, resetState, scaleScalableFeatures, setApplicationCondition, setDeltaCutoff, setErrorCutoff, setFeature, setIdentifier, setSimulationpublic List<Reactant> getStoichiometricReactants()
public void addStochiometricReactant(Reactant stoichiometricReactant)
public boolean substratesAvailable(Updatable updatable)
public List<ChemicalEntity> getSubstrateEntities()
public List<ChemicalEntity> getProductEntities()
protected List<ConcentrationDelta> calculateDeltas(ConcentrationContainer concentrationContainer)
concentrationContainer - The concentration container to calculate the deltas for.public abstract double calculateVelocity(ConcentrationContainer concentrationContainer)
concentrationContainer - The concentration container to calculate the deltas for.public abstract void initialize()
public boolean isElementary()
true if this Reaction is considered elementary and false otherwise.true if this Reaction is considered elementary and false otherwise.public void setElementary(boolean elementary)
elementary - true if this Reaction is elementary and false otherwise.public String getReactionString()
protected String collectSubstrateString()
protected String collectProductsString()
public String toString()
toString in class ConcentrationBasedModule<SectionDeltaFunction>Copyright © 2019. All rights reserved.