Class CombinedLinkingRule
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.LinkingRule
,java.io.Serializable
public final class CombinedLinkingRule<T extends Object, P extends Position<P>> implements LinkingRule<T, P>
A meta-rule that combines multiple subRules. If any mandates a link, such link is created (union of all links).
-
-
Field Summary
Fields Modifier and Type Field Description private final List<LinkingRule<T, P>>
subRules
-
Constructor Summary
Constructors Constructor Description CombinedLinkingRule(List<LinkingRule<T, P>> subRules)
-
Method Summary
Modifier and Type Method Description final List<LinkingRule<T, P>>
getSubRules()
SimpleNeighborhood<T, P>
computeNeighborhood(Node<T> center, Environment<T, P> environment)
Boolean
isLocallyConsistent()
-
-
Constructor Detail
-
CombinedLinkingRule
CombinedLinkingRule(List<LinkingRule<T, P>> subRules)
-
-
Method Detail
-
getSubRules
final List<LinkingRule<T, P>> getSubRules()
-
computeNeighborhood
SimpleNeighborhood<T, P> computeNeighborhood(Node<T> center, Environment<T, P> environment)
-
isLocallyConsistent
Boolean isLocallyConsistent()
-
-
-
-