cz.cuni.amis.dash
Class YaposhEngine

Package class diagram package YaposhEngine
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.dbg.engine.AbstractDebugEngine
      extended by cz.cuni.amis.dash.YaposhEngine
All Implemented Interfaces:
IDebugEngine

public final class YaposhEngine
extends AbstractDebugEngine

Author:
Honza

Constructor Summary
YaposhEngine(EngineThread engineThread)
           
 
Method Summary
 boolean addBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path, boolean single)
          Add a breakpoint to the primitive at the specified path.
 void disconnect(String reason, boolean error)
          Disconnect engine, stop the info, remove breakpoint, clean after yourself and notify displayer.
 void initialize()
          Initialize the engine, once initialized, you can do some useful stuff, like disconnecting, adding breakpoints and being notified about evaluation of the executing plan.
 boolean removeBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
          Remove breakpoint from the debugged plan.
 
Methods inherited from class cz.cuni.amis.pogamut.sposh.dbg.engine.AbstractDebugEngine
addListener, getListeners, notifyConnected, notifyDisconnected, notifyEvaluationFinished, notifyEvaluationReached, notifyPathReached, notifyPlanRecieved, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YaposhEngine

public YaposhEngine(EngineThread engineThread)
Method Detail

initialize

public void initialize()
Description copied from interface: IDebugEngine
Initialize the engine, once initialized, you can do some useful stuff, like disconnecting, adding breakpoints and being notified about evaluation of the executing plan. This method should use some means to notify things like IDebuggerListener, that is has been initialized, so they can reflect new reality.


disconnect

public void disconnect(String reason,
                       boolean error)
Description copied from interface: IDebugEngine
Disconnect engine, stop the info, remove breakpoint, clean after yourself and notify displayer.

Parameters:
reason - What is the reason the debugger is being disconnected, the reason will be passed to other listeners later, so it may be displayed to the user.
error - Should debugger disconnect because of an error (e.g. someone got DashPath incompatible with recieved plan).

addBreakpoint

public boolean addBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path,
                             boolean single)
Description copied from interface: IDebugEngine
Add a breakpoint to the primitive at the specified path.

Parameters:
path - path to the breakpointed element
Returns:
was there already breakpoint?

removeBreakpoint

public boolean removeBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Description copied from interface: IDebugEngine
Remove breakpoint from the debugged plan.

Parameters:
path - path to the breakpoint
Returns:
was there a breakpoint at the spevified path?


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