Package it.unibo.alchemist.model.sapere
Interface ILsaCondition
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,java.io.Serializable
public interface ILsaCondition implements Condition<T>
-
-
Method Summary
Modifier and Type Method Description abstract boolean
filter(List<Map<HashString, ITreeNode<out Object>>> matches, List<ILsaNode> validNodes, List<Map<ILsaNode, List<ILsaMolecule>>> retrieved)
When this method is called, the condition must filter the current matches and allowed nodes. abstract ILsaCondition
cloneCondition(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
abstract ILsaNode
getNode()
-
-
Method Detail
-
filter
abstract boolean filter(List<Map<HashString, ITreeNode<out Object>>> matches, List<ILsaNode> validNodes, List<Map<ILsaNode, List<ILsaMolecule>>> retrieved)
When this method is called, the condition must filter the current matches and allowed nodes.
- Parameters:
matches
- current matches.validNodes
- the list of the valid neighbors.retrieved
- the list of the the molecules removed for each node for each possible binding- Returns:
true if the condition is valid, false otherwise
-
cloneCondition
abstract ILsaCondition cloneCondition(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
-
-
-
-