-
- 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 final class LsaNeighborhoodCondition extends LsaStandardCondition
-
-
Constructor Summary
Constructors Constructor Description LsaNeighborhoodCondition(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment)
-
Method Summary
Modifier and Type Method Description LsaNeighborhoodConditioncloneCondition(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()StringtoString()-
Methods inherited from class it.unibo.alchemist.model.implementations.conditions.LsaStandardCondition
getPropensityContribution, isValid -
Methods inherited from class it.unibo.alchemist.model.implementations.conditions.LsaAbstractCondition
cloneCondition, 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
getContext, getPropensityContribution, isValid, reactionReady -
Methods inherited from class it.unibo.alchemist.model.interfaces.ILsaCondition
cloneCondition, filter -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LsaNeighborhoodCondition
LsaNeighborhoodCondition(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment)
- Parameters:
node- the nodemolecule- the moleculeenvironment- the environment
-
-
Method Detail
-
cloneCondition
LsaNeighborhoodCondition 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()
-
-
-
-