Class GenericMoleculeUnderLevel
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,java.io.Serializable
public final class GenericMoleculeUnderLevel<T extends Number> extends GenericMoleculePresent<T>
-
-
Constructor Summary
Constructors Constructor Description GenericMoleculeUnderLevel(Node<T> n, Molecule mol, T quantity)
-
Method Summary
Modifier and Type Method Description boolean
isValid()
GenericMoleculeUnderLevel<T>
cloneCondition(Node<T> node, Reaction<T> r)
double
getPropensityContribution()
-
Methods inherited from class it.unibo.alchemist.model.biochemistry.conditions.GenericMoleculePresent
getContext, getMolecule, getQuantity, toString
-
Methods inherited from class it.unibo.alchemist.model.conditions.AbstractCondition
cloneCondition, getInboundDependencies, getNode, toString
-
Methods inherited from class it.unibo.alchemist.model.Condition
getContext, getPropensityContribution, isValid, reactionReady
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isValid
boolean isValid()
- Returns:
true if the concentration of the molecule is lower the value.
-
cloneCondition
GenericMoleculeUnderLevel<T> cloneCondition(Node<T> node, Reaction<T> r)
-
getPropensityContribution
double getPropensityContribution()
- Returns:
the propensity influence computed as max(0, T-[M]), where T is the threshold chosen and [M] is the current concentration of the molecule
-
-
-
-