public class RETEConflictSet extends Object
Note, implementation is not thread-safe. Would be easy to make it so but concurrent adds to InfModel are not supported anyway.
Constructor and Description |
---|
RETEConflictSet(RETERuleContext context,
boolean isMonotonic)
Construct an empty conflict set, noting whether the overall rule system is monotonic or not
|
Modifier and Type | Method and Description |
---|---|
void |
add(Rule rule,
BindingEnvironment env,
boolean isAdd)
Record a request for a rule firing.
|
static void |
execute(RETERuleContext context,
boolean isAdd)
Execute a single rule firing.
|
boolean |
fireOne()
Pick on pending rule from the conflict set and fire it.
|
boolean |
isEmpty()
Return true if there are no more rules awaiting firing.
|
public RETEConflictSet(RETERuleContext context, boolean isMonotonic)
public void add(Rule rule, BindingEnvironment env, boolean isAdd)
public boolean isEmpty()
public boolean fireOne()
public static void execute(RETERuleContext context, boolean isAdd)
Licenced under the Apache License, Version 2.0