Class LsaStandardCondition
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,it.unibo.alchemist.model.sapere.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 LsaStandardCondition
cloneCondition(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> r)
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. Context
getContext()
final double
getPropensityContribution()
final boolean
isValid()
String
toString()
-
Methods inherited from class it.unibo.alchemist.model.conditions.AbstractCondition
cloneCondition, getInboundDependencies, getNode, toString
-
Methods inherited from class it.unibo.alchemist.model.sapere.conditions.LsaAbstractCondition
getNode
-
Methods inherited from class it.unibo.alchemist.model.sapere.ILsaCondition
cloneCondition
-
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
-
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()
-
-
-
-