public static class InvertedDisappearancePriorityConflictResolver.InvertedDisappearancePriorityConflictSet extends FixedPriorityConflictSet
Constructor and Description |
---|
InvertedDisappearancePriorityConflictSet(FixedPriorityConflictResolver resolver,
java.util.Map<RuleSpecification<?>,java.lang.Integer> priorities) |
InvertedDisappearancePriorityConflictSet(FixedPriorityConflictResolver resolver,
java.util.Map<RuleSpecification<?>,java.lang.Integer> priorities,
int defaultPriority) |
Modifier and Type | Method and Description |
---|---|
boolean |
addActivation(Activation<?> activation)
This method is called by the Agenda when an activation changes state and becomes or is still enabled.
|
protected java.lang.Integer |
getRulePriority(Activation<?> activation) |
boolean |
removeActivation(Activation<?> activation)
This method is called by the Agenda when an activation changes state and becomes or is still disabled.
|
addActivation, getConflictingActivations, getConflictResolver, getNextActivation, getNextActivations, getRulePriority, removeActivation, setPriority
public InvertedDisappearancePriorityConflictSet(FixedPriorityConflictResolver resolver, java.util.Map<RuleSpecification<?>,java.lang.Integer> priorities)
public InvertedDisappearancePriorityConflictSet(FixedPriorityConflictResolver resolver, java.util.Map<RuleSpecification<?>,java.lang.Integer> priorities, int defaultPriority)
protected java.lang.Integer getRulePriority(Activation<?> activation)
getRulePriority
in class FixedPriorityConflictSet
public boolean addActivation(Activation<?> activation)
ChangeableConflictSet
add
may be called
multiple times on an Activation already in the conflict set!addActivation
in interface ChangeableConflictSet
addActivation
in class FixedPriorityConflictSet
activation
- the activation that should be added to the conflict setpublic boolean removeActivation(Activation<?> activation)
ChangeableConflictSet
remove
may be called
on Activations that are not in the conflict set!removeActivation
in interface ChangeableConflictSet
removeActivation
in class FixedPriorityConflictSet
activation
- the activation that should be removed from the conflict set