public static final class LifoConflictResolver.LifoConflictSet extends java.lang.Object implements ChangeableConflictSet
Constructor and Description |
---|
LifoConflictSet(LifoConflictResolver resolver) |
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.
|
java.util.Set<Activation<?>> |
getConflictingActivations() |
ConflictResolver |
getConflictResolver() |
Activation<?> |
getNextActivation() |
java.util.Set<Activation<?>> |
getNextActivations() |
boolean |
removeActivation(Activation<?> activation)
This method is called by the Agenda when an activation changes state and becomes or is still disabled.
|
public LifoConflictSet(LifoConflictResolver resolver)
public ConflictResolver getConflictResolver()
getConflictResolver
in interface ConflictSet
public Activation<?> getNextActivation()
getNextActivation
in interface ConflictSet
public java.util.Set<Activation<?>> getNextActivations()
getNextActivations
in interface ConflictSet
public java.util.Set<Activation<?>> getConflictingActivations()
getConflictingActivations
in interface ConflictSet
public boolean addActivation(Activation<?> activation)
ChangeableConflictSet
add
may be called
multiple times on an Activation already in the conflict set!addActivation
in interface ChangeableConflictSet
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
activation
- the activation that should be removed from the conflict set