Class SimulationDebugTarget
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- de.uka.ipd.sdq.codegen.simucontroller.debug.SimulationDebugElement
-
- de.uka.ipd.sdq.codegen.simucontroller.debug.SimulationDebugTarget
-
- All Implemented Interfaces:
Observer
,IAdaptable
,IBreakpointListener
,IDebugElement
,IDebugTarget
,IDisconnect
,IMemoryBlockRetrieval
,ISuspendResume
,ITerminate
,Adapter
public class SimulationDebugTarget extends SimulationDebugElement implements IDebugTarget, Observer
Class to support SimuCom debugging interactions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.codegen.simucontroller.debug.SimulationDebugElement
launch, myDebugTarget
-
-
Constructor Summary
Constructors Constructor Description SimulationDebugTarget(ILaunch launch, DockModel dock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
breakpointAdded(IBreakpoint breakpoint)
void
breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta)
void
breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta)
boolean
canDisconnect()
boolean
canResume()
boolean
canSuspend()
boolean
canTerminate()
void
disconnect()
void
dispose()
IMemoryBlock
getMemoryBlock(long startAddress, long length)
String
getName()
IProcess
getProcess()
IThread[]
getThreads()
boolean
hasThreads()
boolean
isDisconnected()
boolean
isSuspended()
boolean
isTerminated()
void
notifyChanged(Notification notification)
void
resume()
boolean
supportsBreakpoint(IBreakpoint breakpoint)
boolean
supportsStorageRetrieval()
void
suspend()
void
terminate()
void
update(Observable o, Object arg)
-
Methods inherited from class de.uka.ipd.sdq.codegen.simucontroller.debug.SimulationDebugElement
fireEvent, fireEvent, getAdapter, getDebugTarget, getLaunch, getModelIdentifier, getTarget, isAdapterForType, setTarget
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement
getDebugTarget, getLaunch, getModelIdentifier
-
-
-
-
Method Detail
-
getName
public String getName() throws DebugException
- Specified by:
getName
in interfaceIDebugTarget
- Throws:
DebugException
-
getProcess
public IProcess getProcess()
- Specified by:
getProcess
in interfaceIDebugTarget
-
getThreads
public IThread[] getThreads() throws DebugException
- Specified by:
getThreads
in interfaceIDebugTarget
- Throws:
DebugException
-
hasThreads
public boolean hasThreads() throws DebugException
- Specified by:
hasThreads
in interfaceIDebugTarget
- Throws:
DebugException
-
supportsBreakpoint
public boolean supportsBreakpoint(IBreakpoint breakpoint)
- Specified by:
supportsBreakpoint
in interfaceIDebugTarget
-
canTerminate
public boolean canTerminate()
- Specified by:
canTerminate
in interfaceITerminate
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfaceITerminate
-
terminate
public void terminate() throws DebugException
- Specified by:
terminate
in interfaceITerminate
- Throws:
DebugException
-
canResume
public boolean canResume()
- Specified by:
canResume
in interfaceISuspendResume
-
canSuspend
public boolean canSuspend()
- Specified by:
canSuspend
in interfaceISuspendResume
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interfaceISuspendResume
-
resume
public void resume() throws DebugException
- Specified by:
resume
in interfaceISuspendResume
- Throws:
DebugException
-
suspend
public void suspend() throws DebugException
- Specified by:
suspend
in interfaceISuspendResume
- Throws:
DebugException
-
breakpointAdded
public void breakpointAdded(IBreakpoint breakpoint)
- Specified by:
breakpointAdded
in interfaceIBreakpointListener
-
breakpointChanged
public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta)
- Specified by:
breakpointChanged
in interfaceIBreakpointListener
-
breakpointRemoved
public void breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta)
- Specified by:
breakpointRemoved
in interfaceIBreakpointListener
-
canDisconnect
public boolean canDisconnect()
- Specified by:
canDisconnect
in interfaceIDisconnect
-
disconnect
public void disconnect() throws DebugException
- Specified by:
disconnect
in interfaceIDisconnect
- Throws:
DebugException
-
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnected
in interfaceIDisconnect
-
getMemoryBlock
public IMemoryBlock getMemoryBlock(long startAddress, long length) throws DebugException
- Specified by:
getMemoryBlock
in interfaceIMemoryBlockRetrieval
- Throws:
DebugException
-
supportsStorageRetrieval
public boolean supportsStorageRetrieval()
- Specified by:
supportsStorageRetrieval
in interfaceIMemoryBlockRetrieval
-
dispose
public void dispose()
-
update
public void update(Observable o, Object arg)
-
notifyChanged
public void notifyChanged(Notification notification)
- Specified by:
notifyChanged
in interfaceAdapter
- Specified by:
notifyChanged
in classSimulationDebugElement
-
-