|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.sposh.dbg.engine.AbstractDebugEngine
public abstract class AbstractDebugEngine
Abstract class implementing IDebugEngine that is implementing some
common things, like listeners.
| Constructor Summary | |
|---|---|
AbstractDebugEngine()
|
|
| Method Summary | |
|---|---|
boolean |
addListener(IDebugEngineListener listener)
Add listener for changes in state of the engine, it is synchronized. |
protected IDebugEngineListener[] |
getListeners()
For internal use, get array of listeners that won't be affected by the changes of set of listener |
protected void |
notifyConnected()
Notify listeners that engine is connected and can now add breakpoints. |
protected void |
notifyDisconnected(String message,
boolean error)
Notify listeners that engine has been disconnected from the JVM. |
protected void |
notifyEvaluationFinished()
Notify listeners that evaluation phase of engine has been finished |
protected void |
notifyEvaluationReached()
Notify listeners that evaluation phase of engine has been reached |
protected void |
notifyPathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Notify listeners that engine is about to fire a path. |
protected void |
notifyPlanRecieved(String name,
cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Notify all listeners that plan has been recieved |
boolean |
removeListener(IDebugEngineListener listener)
Remove listener from set of listeners of this engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.sposh.dbg.engine.IDebugEngine |
|---|
addBreakpoint, disconnect, initialize, removeBreakpoint |
| Constructor Detail |
|---|
public AbstractDebugEngine()
| Method Detail |
|---|
public final boolean addListener(IDebugEngineListener listener)
addListener in interface IDebugEnginelistener - new listener to add, not null
public final boolean removeListener(IDebugEngineListener listener)
removeListener in interface IDebugEnginelistener - listener to remove
protected final IDebugEngineListener[] getListeners()
protected final void notifyConnected()
protected final void notifyPlanRecieved(String name,
cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
name - name of the engine that is running this planplan - String representation of plan (e.g. POSH or Shade)protected final void notifyEvaluationReached()
protected final void notifyEvaluationFinished()
protected final void notifyPathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
path - Path that is about to be fired
protected final void notifyDisconnected(String message,
boolean error)
message - Optional message to display the user.error - Was debugger disconnected because of an error or was it OK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||