|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.runtime.controller.DefaultController
org.jactr.core.runtime.controller.debug.DebugController
public class DebugController
support production break points that block the model when the marked productions are instantiated and selected for firing. it also supports a few other break point types
| Constructor Summary | |
|---|---|
DebugController()
|
|
| Method Summary | |
|---|---|
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(); |
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 |
void |
detach()
detach the runtime - called by the runtime during ACTRRuntime.setController(null); |
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)
|
| Methods inherited from class org.jactr.core.runtime.controller.DefaultController |
|---|
complete, getRunningModels, getSuspendedModels, getTerminatedModels, isRunning, isSuspended, resume, start, start, stop, suspend, terminate, waitForCompletion, waitForResumption, waitForStart, waitForSuspension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jactr.core.runtime.controller.IController |
|---|
complete, getRunningModels, getSuspendedModels, getTerminatedModels, isRunning, isSuspended, resume, start, start, stop, suspend, terminate, waitForCompletion, waitForResumption, waitForStart, waitForSuspension |
| Constructor Detail |
|---|
public DebugController()
| Method Detail |
|---|
public void addListener(IBreakpointListener listener,
java.util.concurrent.Executor executor)
IDebugController
addListener in interface IDebugControllerIDebugController.addListener(org.jactr.core.runtime.controller.debug.event.IBreakpointListener,
java.util.concurrent.Executor)public void removeListener(IBreakpointListener listener)
IDebugController
removeListener in interface IDebugControllerIDebugController.removeListener(org.jactr.core.runtime.controller.debug.event.IBreakpointListener)public void attach()
IController
attach in interface IControllerattach in class DefaultControllerpublic void detach()
IController
detach in interface IControllerdetach in class DefaultControllerpublic void clearBreakpoints()
IDebugController
clearBreakpoints in interface IDebugControllerIDebugController.clearBreakpoints()
public void clearBreakpoints(IModel model,
BreakpointType type)
IDebugController
clearBreakpoints in interface IDebugControllerIDebugController.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
addBreakpoint in interface IDebugControllerIDebugController.addBreakpoint(org.jactr.core.model.IModel,
org.jactr.core.runtime.controller.debug.BreakpointType,
java.lang.Object)
public void removeBreakpoint(IModel model,
BreakpointType type,
java.lang.Object value)
IDebugController
removeBreakpoint in interface IDebugControllerIDebugController.removeBreakpoint(org.jactr.core.model.IModel,
org.jactr.core.runtime.controller.debug.BreakpointType,
java.lang.Object)
public boolean isBreakpoint(IModel model,
BreakpointType type,
java.lang.Object value)
IDebugController
isBreakpoint in interface IDebugControllerIDebugController.isBreakpoint(org.jactr.core.model.IModel,
org.jactr.core.runtime.controller.debug.BreakpointType,
java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||