public class RuleSystemExecutor
extends java.lang.Object
implements jadex.commons.ISteppable
Modifier and Type | Field and Description |
---|---|
protected jadex.commons.ICommand[] |
breakpointcommands
The breakpoint commands.
|
protected java.util.Set |
breakpoints
The breakpoints (i.e.
|
protected boolean |
dostep
Flag indicating that a single step should be performed.
|
protected jadex.commons.concurrent.Executor |
executor
The executor.
|
protected RuleSystem |
rulesystem
The agenda.
|
protected boolean |
stepmode
The stepmode flag.
|
Constructor and Description |
---|
RuleSystemExecutor(RuleSystem rulesystem,
boolean stepmode)
Executor for rule systems.
|
RuleSystemExecutor(RuleSystem rulesystem,
boolean stepmode,
jadex.commons.concurrent.IThreadPool threadpool)
Executor for rule systems.
|
Modifier and Type | Method and Description |
---|---|
void |
addBreakpoint(java.lang.Object rule)
Add a breakpoint to the interpreter.
|
void |
addBreakpointCommand(jadex.commons.ICommand command)
Add a command to be executed, when a breakpoint is reached.
|
void |
doStep()
Execute a step.
|
RuleSystem |
getRulesystem()
Get the rule system.
|
boolean |
isBreakpoint(java.lang.Object rule)
Check if a rule is a breakpoint for the interpreter.
|
boolean |
isStepmode()
Test if in stepmode.
|
void |
removeBreakpoint(java.lang.Object rule)
Remove a breakpoint from the interpreter.
|
void |
setStepmode(boolean stepmode)
Set the stepmode.
|
protected boolean stepmode
protected boolean dostep
protected RuleSystem rulesystem
protected jadex.commons.concurrent.Executor executor
protected java.util.Set breakpoints
protected jadex.commons.ICommand[] breakpointcommands
public RuleSystemExecutor(RuleSystem rulesystem, boolean stepmode)
public RuleSystemExecutor(RuleSystem rulesystem, boolean stepmode, jadex.commons.concurrent.IThreadPool threadpool)
public void doStep()
doStep
in interface jadex.commons.ISteppable
public void setStepmode(boolean stepmode)
setStepmode
in interface jadex.commons.ISteppable
stepmode
- True for stepmode.public boolean isStepmode()
isStepmode
in interface jadex.commons.ISteppable
public void addBreakpoint(java.lang.Object rule)
addBreakpoint
in interface jadex.commons.ISteppable
public void removeBreakpoint(java.lang.Object rule)
removeBreakpoint
in interface jadex.commons.ISteppable
public boolean isBreakpoint(java.lang.Object rule)
isBreakpoint
in interface jadex.commons.ISteppable
public void addBreakpointCommand(jadex.commons.ICommand command)
addBreakpointCommand
in interface jadex.commons.ISteppable
public RuleSystem getRulesystem()