-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.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 MoleculegetMolecule()Allows to access the molecule. ContextgetContext()booleanisValid()StringtoString()GenericMoleculePresent<T>cloneCondition(Node<T> node, Reaction<T> reaction)doublegetPropensityContribution()Propensity influence is computed through the binomial coefficient. TgetQuantity()Allows to access the threshold. -
Methods inherited from class it.unibo.alchemist.model.implementations.conditions.AbstractCondition
getInboundDependencies, getNode -
Methods inherited from class it.unibo.alchemist.model.interfaces.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.
-
getContext
Context getContext()
-
isValid
boolean isValid()
-
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.
-
getQuantity
T getQuantity()
Allows to access the threshold.
-
-
-
-