public class DebugController extends DefaultController implements IDebugController
_lock
Constructor and Description |
---|
DebugController() |
Modifier and Type | Method and Description |
---|---|
void |
addBreakpoint(IModel model,
BreakpointType type,
java.lang.Object value)
add a breakpoint
|
void |
addListener(IBreakpointListener listener,
java.util.concurrent.Executor executor)
when a break point is reached, the breakpoint listeners are called
|
void |
attach()
attach to the runtime - called by the runtime during
ACTRRuntime.setController();
|
protected void |
breakpointReached(IModel model,
BreakpointType type,
java.lang.Object value)
actually suspend the model.
|
protected void |
checkForBreakpoint(IModel model,
BreakpointType type,
java.lang.Object value)
will check to see if value represents a valid break point of type within
model and block after calling breakpointReached
|
void |
clearBreakpoints()
clear all of the break points permitting uninterrupted execution,
unless an exception occurs
|
void |
clearBreakpoints(IModel model,
BreakpointType type)
clear the specified breakpoints
|
protected IProceduralModuleListener |
createProceduralListener() |
void |
detach()
detach the runtime - called by the runtime during
ACTRRuntime.setController(null);
|
protected void |
fireBreakpointReachedEvent(IModel model,
BreakpointType type,
java.lang.Object details) |
protected IProceduralModuleListener |
getProceduralListener() |
boolean |
isBreakpoint(IModel model,
BreakpointType type,
java.lang.Object value)
is this object a breakpoint
|
void |
removeBreakpoint(IModel model,
BreakpointType type,
java.lang.Object value)
remove a breakpoint
|
void |
removeListener(IBreakpointListener listener)
remove said listener
|
void |
setEnabled(IProduction production,
boolean enabled) |
complete, createModelRunnable, destroyModelRunnable, getRunningModels, getSuspendedModels, getTerminatedModels, isRunning, isSuspended, resume, start, start, startModel, stop, suspend, suspendLocally, terminate, waitForCompletion, waitForResumption, waitForStart, waitForSuspension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
complete, getRunningModels, getSuspendedModels, getTerminatedModels, isRunning, isSuspended, resume, start, start, stop, suspend, terminate, waitForCompletion, waitForResumption, waitForStart, waitForSuspension
public void addListener(IBreakpointListener listener, java.util.concurrent.Executor executor)
IDebugController
addListener
in interface IDebugController
IDebugController.addListener(org.jactr.core.runtime.controller.debug.event.IBreakpointListener,
java.util.concurrent.Executor)
public void removeListener(IBreakpointListener listener)
IDebugController
removeListener
in interface IDebugController
IDebugController.removeListener(org.jactr.core.runtime.controller.debug.event.IBreakpointListener)
protected IProceduralModuleListener getProceduralListener()
protected IProceduralModuleListener createProceduralListener()
public void attach()
IController
attach
in interface IController
attach
in class DefaultController
public void detach()
IController
detach
in interface IController
detach
in class DefaultController
public void clearBreakpoints()
IDebugController
clearBreakpoints
in interface IDebugController
IDebugController.clearBreakpoints()
public void clearBreakpoints(IModel model, BreakpointType type)
IDebugController
clearBreakpoints
in interface IDebugController
IDebugController.clearBreakpoints(org.jactr.core.model.IModel,
org.jactr.core.runtime.controller.debug.BreakpointType)
public void setEnabled(IProduction production, boolean enabled)
setEnabled
in interface IDebugController
public void addBreakpoint(IModel model, BreakpointType type, java.lang.Object value)
IDebugController
public void removeBreakpoint(IModel model, BreakpointType type, java.lang.Object value)
IDebugController
public boolean isBreakpoint(IModel model, BreakpointType type, java.lang.Object value)
IDebugController
isBreakpoint
in interface IDebugController
IDebugController.isBreakpoint(org.jactr.core.model.IModel,
org.jactr.core.runtime.controller.debug.BreakpointType,
java.lang.Object)
protected void checkForBreakpoint(IModel model, BreakpointType type, java.lang.Object value)
model
- type
- value
- protected void breakpointReached(IModel model, BreakpointType type, java.lang.Object value)
model
- type
- value
- protected void fireBreakpointReachedEvent(IModel model, BreakpointType type, java.lang.Object details)