-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Condition,it.unibo.alchemist.model.interfaces.Condition,it.unibo.alchemist.model.interfaces.ILsaCondition,java.io.Serializable
public class LsaStandardCondition extends LsaAbstractCondition
simple LSA-condition (example: <grad,X,1>). Search an instance of a template in a node. The LSAMolecule matched, if exist, will not be deleted from the node Lsa-space . It can be deleted from the reaction, if necessary.
-
-
Constructor Summary
Constructors Constructor Description LsaStandardCondition(ILsaMolecule mol, ILsaNode n)Builds an LsaStandardCondition.
-
Method Summary
Modifier and Type Method Description LsaStandardConditioncloneCondition(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> r)booleanfilter(List<Map<HashString, ITreeNode<out Object>>> matchesList, List<ILsaNode> validNodes, List<Map<ILsaNode, List<ILsaMolecule>>> retrieved)When this method is called, the condition must filter the current matches and allowed nodes. ContextgetContext()final doublegetPropensityContribution()final booleanisValid()StringtoString()-
Methods inherited from class it.unibo.alchemist.model.implementations.conditions.LsaAbstractCondition
getNode -
Methods inherited from class it.unibo.alchemist.model.implementations.conditions.AbstractCondition
cloneCondition, getInboundDependencies, getNode, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.Condition
reactionReady -
Methods inherited from class it.unibo.alchemist.model.interfaces.ILsaCondition
cloneCondition -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LsaStandardCondition
LsaStandardCondition(ILsaMolecule mol, ILsaNode n)
Builds an LsaStandardCondition.- Parameters:
mol- the molecole whose presence must be testedn- the node in which this condition will act
-
-
Method Detail
-
cloneCondition
LsaStandardCondition cloneCondition(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> r)
-
filter
boolean filter(List<Map<HashString, ITreeNode<out Object>>> matchesList, List<ILsaNode> validNodes, List<Map<ILsaNode, List<ILsaMolecule>>> retrieved)
When this method is called, the condition must filter the current matches and allowed nodes.
-
getContext
Context getContext()
-
getPropensityContribution
final double getPropensityContribution()
-
isValid
final boolean isValid()
-
-
-
-