edu.cornell.cs.sam.ui
Class SamGUI.BreakpointList

java.lang.Object
  extended by edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Enclosing class:
SamGUI

public static class SamGUI.BreakpointList
extends java.lang.Object

Stores breakpoints and provides convenience functions We currently use a hashtable for fast access with key=PC of break and value=Boolean(true)


Field Summary
protected  java.util.HashMap<java.lang.Integer,java.lang.Boolean> breakpoints
          Stores the breakpoints
 
Constructor Summary
SamGUI.BreakpointList()
           
 
Method Summary
 void addBreakpoint(int pc)
          Adds a PC to the list of breakpoints
 void addBreakpoints(SamGUI.BreakpointList l)
          Adds a list of breakpoints
 boolean checkBreakpoint(int pc)
          Checks if the PC provided is a breakpoint
 void deleteAll()
          Clears all of the breakpoints
 void deleteBreakpoint(int pc)
          Deletes the pc from the list of breakpoints
 void deleteBreakpoints(SamGUI.BreakpointList l)
          Deletes a list of breakpoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

breakpoints

protected java.util.HashMap<java.lang.Integer,java.lang.Boolean> breakpoints
Stores the breakpoints

Constructor Detail

SamGUI.BreakpointList

public SamGUI.BreakpointList()
Method Detail

addBreakpoint

public void addBreakpoint(int pc)
Adds a PC to the list of breakpoints

Parameters:
pc - The PC at which to break

addBreakpoints

public void addBreakpoints(SamGUI.BreakpointList l)
Adds a list of breakpoints

Parameters:
l - the list of breakpoints to add

checkBreakpoint

public boolean checkBreakpoint(int pc)
Checks if the PC provided is a breakpoint

Parameters:
pc - The PC to check
Returns:
true if pc is a breakpoint, false otherwise

deleteBreakpoint

public void deleteBreakpoint(int pc)
Deletes the pc from the list of breakpoints

Parameters:
pc - The PC to delete

deleteBreakpoints

public void deleteBreakpoints(SamGUI.BreakpointList l)
Deletes a list of breakpoints

Parameters:
l - The list of brakpoints to delete

deleteAll

public void deleteAll()
Clears all of the breakpoints