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

Class attached to a Yaposh engine debugged in NetBeans. This class creates various java breakpoints in the Yaposh engine and listens, when engine does trigger them, e.g. it has breakpoint that listens for EngineLog.pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath) and when some path is reached, it notifys listeners.

Author:
Honza

Constructor Summary
YaposhEngine(EngineThread engineThread)
          Create the engine.
 
Method Summary
 boolean addBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path, boolean single)
          Add breakpoint at the node at @path and notify listeners.
 void disconnect(String reason, boolean error)
          Disconnect from the debugged engine.
 void initialize()
          Create ServerManager and add all needed breakpoints to the engine.
 boolean removeBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
          Remove breakpoint at node found at @path.
 
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)
Create the engine.

Parameters:
engineThread - Thread of the debugged Yaposh engine.
Method Detail

initialize

public void initialize()
Create ServerManager and add all needed breakpoints to the engine. Notify listeners of engine that we are now connected to the engine.


disconnect

public void disconnect(String reason,
                       boolean error)
Disconnect from the debugged engine. Disconnect the ServerManager and remove breakpoints from the debugged Yaposh engine. Notify listeners that we are now disconnected from the engine.

Parameters:
reason - Why are we disconnecting, passed to listeners
error - Are we disconnecting because of error? Pass to listeners.

addBreakpoint

public boolean addBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path,
                             boolean single)
Add breakpoint at the node at @path and notify listeners.

Parameters:
path - Path at which we want to add breakpoint.
single - Is it a single breakpoint or permanent?
Returns:
If added breakpoint was new one

removeBreakpoint

public boolean removeBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Remove breakpoint at node found at @path.

Parameters:
path - Path where is breakpoint we want to remove
Returns:
Was there was a breakpoint at @path?


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