cz.cuni.amis.pogamut.sposh.dbg.engine
Interface IDebugEngineListener

Package class diagram package IDebugEngineListener
All Known Implementing Classes:
DashWindow

public interface IDebugEngineListener

This is an interface for displayer of debugging. Component that implements this will be notified about reaching the evaluating phase of some AI engine (for now, only POSH), connection, disconnection and other stuff.
IMPORTANT: All these methods are supposed to be called on EDT ( swing thread, because some listeners will draw onto the screen).

Author:
Honza

Method Summary
 void breakpointAdded(LapBreakpoint bp)
          Notify listeners about new breakpoint
 void breakpointRemoved(LapBreakpoint bp)
          Notify listeners that breakpoint was removed
 void connected()
          This method is called when debugger has successfully connected to the engine.
 void disconnected(String message, boolean error)
          When debugger crashes or user asks to be disconnected, it will sooner or later cause this.
 void evaluationFinished()
          Debugger is about to leave PoshEngine.evaluatePlan(cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor).
 void evaluationReached()
          Debugger has reached PoshEngine.evaluatePlan(cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor).
 void pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
          Notify about path that is about to be fired.
 void planRecieved(String name, cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
          Called when plan was recieved.
 

Method Detail

connected

void connected()
This method is called when debugger has successfully connected to the engine.


planRecieved

void planRecieved(String name,
                  cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Called when plan was recieved.

Parameters:
name - name used to identify the instance of the engine that is running this plan
plan - String representation of plan (e.g. POSH or Shade)

evaluationReached

void evaluationReached()
Debugger has reached PoshEngine.evaluatePlan(cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor).


pathReached

void pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Notify about path that is about to be fired.


evaluationFinished

void evaluationFinished()
Debugger is about to leave PoshEngine.evaluatePlan(cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor).


breakpointAdded

void breakpointAdded(LapBreakpoint bp)
Notify listeners about new breakpoint

Parameters:
bp - New breakpoint

breakpointRemoved

void breakpointRemoved(LapBreakpoint bp)
Notify listeners that breakpoint was removed

Parameters:
bp - removed breakpoint

disconnected

void disconnected(String message,
                  boolean error)
When debugger crashes or user asks to be disconnected, it will sooner or later cause this.

Parameters:
message - Optional message to display the user.
error - Was debugger disconnected because of an error or was it OK.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.