Class GenericMoleculePresent
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,java.io.Serializable
public class GenericMoleculePresent<T extends Number> extends AbstractCondition<T>
This class implements a condition which checks if a molecule is present or not.
-
-
Constructor Summary
Constructors Constructor Description GenericMoleculePresent(Node<T> n, Molecule mol, T quantity)
Builds a new condition, which checks if the molecule exists or not inside the node n.
-
Method Summary
Modifier and Type Method Description Molecule
getMolecule()
Allows to access the molecule. Context
getContext()
boolean
isValid()
String
toString()
GenericMoleculePresent<T>
cloneCondition(Node<T> node, Reaction<T> reaction)
double
getPropensityContribution()
Propensity influence is computed through the binomial coefficient. T
getQuantity()
Allows to access the threshold. -
Methods inherited from class it.unibo.alchemist.model.conditions.AbstractCondition
getInboundDependencies, getNode
-
Methods inherited from class it.unibo.alchemist.model.Condition
reactionReady
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GenericMoleculePresent
GenericMoleculePresent(Node<T> n, Molecule mol, T quantity)
Builds a new condition, which checks if the molecule exists or not inside the node n.- Parameters:
n
- the current nodemol
- the molecule whose presence should be checkedquantity
- the amount of molecules which should be present.
-
-
Method Detail
-
getMolecule
Molecule getMolecule()
Allows to access the molecule.
- Returns:
the current molecule
-
getContext
Context getContext()
-
isValid
boolean isValid()
- Returns:
true if the concentration of the molecule is higher or equal the value.
-
cloneCondition
GenericMoleculePresent<T> cloneCondition(Node<T> node, Reaction<T> reaction)
-
getPropensityContribution
double getPropensityContribution()
Propensity influence is computed through the binomial coefficient. See Bernardo, Degano, Zavattaro - Formal Methods for Computational Systems Biology for the formulae.
- Returns:
the propensity influence
-
getQuantity
T getQuantity()
Allows to access the threshold.
- Returns:
the current threshold
-
-
-
-