Class LsaNeighborhoodCondition
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,it.unibo.alchemist.model.sapere.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 LsaNeighborhoodCondition
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()
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.LsaStandardCondition
getPropensityContribution, isValid
-
Methods inherited from class it.unibo.alchemist.model.sapere.conditions.LsaAbstractCondition
cloneCondition, getNode
-
Methods inherited from class it.unibo.alchemist.model.sapere.ILsaCondition
cloneCondition, filter
-
Methods inherited from class it.unibo.alchemist.model.Condition
getContext, getPropensityContribution, isValid, reactionReady
-
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()
-
-
-
-