public abstract class Reaction extends AbstractSectionSpecificModule implements Featureable
ChemicalEntitys used in a Reaction are
encapsulated to Reactants to define stoichiometry and ReactantRole. The implementations of
Reaction have to specify how to calculate the actual acceleration of a reaction.| Modifier and Type | Field and Description |
|---|---|
protected Set<Class<? extends Feature>> |
availableFeatures |
halfTime| Constructor and Description |
|---|
Reaction() |
Reaction(Simulation simulation) |
| Modifier and Type | Method and Description |
|---|---|
List<Delta> |
calculateDeltas(ConcentrationContainer concentrationContainer) |
abstract double |
calculateVelocity(ConcentrationContainer concentrationContainer) |
protected double |
determineConcentration(ConcentrationContainer concentrationContainer,
ReactantRole role)
Determines the concentration of reactants that influence the velocity of the reaction.
|
Set<Class<? extends Feature>> |
getAvailableFeatures() |
String |
getDisplayString() |
<FeatureType extends Feature> |
getFeature(Class<FeatureType> featureTypeClass) |
Collection<Feature<?>> |
getFeatures() |
List<ChemicalEntity> |
getProducts() |
protected <FeatureContent> |
getScaledFeature(Class<? extends ScalableFeature<FeatureContent>> featureClass) |
List<StoichiometricReactant> |
getStoichiometricReactants()
Returns the list of reactants for this reaction.
|
List<ChemicalEntity> |
getSubstrates() |
<FeatureType extends Feature> |
hasFeature(Class<FeatureType> featureTypeClass) |
boolean |
isElementary()
Returns
true if this Reaction is considered elementary and false otherwise. |
void |
setElementary(boolean elementary)
Sets this Reaction as elementary.
|
<FeatureType extends Feature> |
setFeature(Class<FeatureType> featureTypeClass) |
<FeatureType extends Feature> |
setFeature(FeatureType feature) |
void |
setStoichiometricReactants(List<StoichiometricReactant> stoichiometricReactants)
Sets the list of reactants for this reaction.
|
addDeltaFunction, applyAlways, determineAllDeltas, determineDeltas, determineDeltasForNode, getCurrentCellSection, getCurrentNode, getFeature, getLargestLocalError, getSimulation, onlyApplyIf, resetLargestLocalError, setSimulationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanBeFeaturedWith, scaleScalableFeaturespublic Reaction(Simulation simulation)
public Reaction()
public List<StoichiometricReactant> getStoichiometricReactants()
public void setStoichiometricReactants(List<StoichiometricReactant> stoichiometricReactants)
stoichiometricReactants - The list of reactants for this reaction.public List<ChemicalEntity> getSubstrates()
public List<ChemicalEntity> getProducts()
protected double determineConcentration(ConcentrationContainer concentrationContainer, ReactantRole role)
concentrationContainer - The container, where the concentrations are collected.role - The role that is to be summarized (ReactantRole.INCREASING for Products and ReactantRole.DECREASING for Substrates).public List<Delta> calculateDeltas(ConcentrationContainer concentrationContainer)
public abstract double calculateVelocity(ConcentrationContainer concentrationContainer)
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 getDisplayString()
public Collection<Feature<?>> getFeatures()
getFeatures in interface Featureablepublic <FeatureType extends Feature> FeatureType getFeature(Class<FeatureType> featureTypeClass)
getFeature in interface Featureableprotected <FeatureContent> FeatureContent getScaledFeature(Class<? extends ScalableFeature<FeatureContent>> featureClass)
public <FeatureType extends Feature> void setFeature(Class<FeatureType> featureTypeClass)
setFeature in interface Featureablepublic <FeatureType extends Feature> void setFeature(FeatureType feature)
setFeature in interface Featureablepublic <FeatureType extends Feature> boolean hasFeature(Class<FeatureType> featureTypeClass)
hasFeature in interface Featureablepublic Set<Class<? extends Feature>> getAvailableFeatures()
getAvailableFeatures in interface FeatureableCopyright © 2017. All rights reserved.