hades.models.mips.gui
Class ShowMips

java.lang.Object
  extended byhades.models.mips.gui.ShowMips
All Implemented Interfaces:
java.awt.event.ActionListener, BreakPointHandler, java.util.EventListener, java.awt.event.ItemListener, java.awt.event.WindowListener

public class ShowMips
extends java.lang.Object
implements BreakPointHandler, java.awt.event.ItemListener, java.awt.event.ActionListener, java.awt.event.WindowListener

ShowMips - Show a frame containing the MIPS processor


Field Summary
protected  MemoryViewHandler copro0ViewHandler
           
protected  Core core
           
protected  CycleListener cycleListener
           
 java.awt.Frame frame
           
protected  MemoryViewHandler memViewHandler
           
protected  java.awt.MenuItem miClose
           
protected  java.awt.MenuItem miConfig
           
protected  java.awt.CheckboxMenuItem miDebugAccessMemory
           
protected  java.awt.CheckboxMenuItem miDebugCopro0
           
protected  java.awt.CheckboxMenuItem miDebugCore
           
protected  java.awt.CheckboxMenuItem miDebugDataCache
           
protected  java.awt.CheckboxMenuItem miDebugDecoder
           
protected  java.awt.CheckboxMenuItem miDebugException
           
 java.awt.CheckboxMenuItem miDebugFile
           
protected  java.awt.CheckboxMenuItem miDebugHadesInterface
           
protected  java.awt.CheckboxMenuItem miDebugInstrCache
           
protected  java.awt.CheckboxMenuItem miDebugInstrFrame
           
protected  java.awt.CheckboxMenuItem miDebugMemoryDispatcher
           
 java.awt.CheckboxMenuItem miDebugStdOut
           
protected  java.awt.MenuItem miInvalidate
           
protected  java.awt.MenuItem miNew
           
protected  java.awt.MenuItem miOpen
           
protected  java.awt.MenuItem miPhysical
           
protected  java.awt.MenuItem miSave
           
protected  java.awt.MenuItem miShowDCache
           
protected  java.awt.MenuItem miShowICache
           
protected  java.awt.MenuItem miVirtual
           
protected  MemoryViewHandler regViewHandler
           
protected  ResetHandler resetHandler
           
protected  ShowPipe showPipe
           
protected  java.awt.Button statisticButton
           
 
Constructor Summary
ShowMips(Core newCore, ResetHandler newResetHandler)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void clearMemory(Memory mem)
           
 void handleBreakPoint(BreakPointMemory bpMem, int adr, int reason)
          handle the breakpoint with info about the memory, the bp-address and the reason of the bp (see BreakPointMemory for constants)
 void hide()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
static void main(java.lang.String[] argv)
           
 void prepareMainWindow()
          prepare main window, part of the constructor
 void setCycleListener(CycleListener newCycleListener)
           
 void show()
           
 void update()
           
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

core

protected Core core

resetHandler

protected ResetHandler resetHandler

frame

public java.awt.Frame frame

cycleListener

protected CycleListener cycleListener

regViewHandler

protected MemoryViewHandler regViewHandler

memViewHandler

protected MemoryViewHandler memViewHandler

copro0ViewHandler

protected MemoryViewHandler copro0ViewHandler

showPipe

protected ShowPipe showPipe

miNew

protected java.awt.MenuItem miNew

miOpen

protected java.awt.MenuItem miOpen

miSave

protected java.awt.MenuItem miSave

miClose

protected java.awt.MenuItem miClose

miConfig

protected java.awt.MenuItem miConfig

miVirtual

protected java.awt.MenuItem miVirtual

miPhysical

protected java.awt.MenuItem miPhysical

miInvalidate

protected java.awt.MenuItem miInvalidate

miShowICache

protected java.awt.MenuItem miShowICache

miShowDCache

protected java.awt.MenuItem miShowDCache

miDebugStdOut

public java.awt.CheckboxMenuItem miDebugStdOut

miDebugFile

public java.awt.CheckboxMenuItem miDebugFile

miDebugCore

protected java.awt.CheckboxMenuItem miDebugCore

miDebugInstrFrame

protected java.awt.CheckboxMenuItem miDebugInstrFrame

miDebugDecoder

protected java.awt.CheckboxMenuItem miDebugDecoder

miDebugCopro0

protected java.awt.CheckboxMenuItem miDebugCopro0

miDebugException

protected java.awt.CheckboxMenuItem miDebugException

miDebugAccessMemory

protected java.awt.CheckboxMenuItem miDebugAccessMemory

miDebugMemoryDispatcher

protected java.awt.CheckboxMenuItem miDebugMemoryDispatcher

miDebugHadesInterface

protected java.awt.CheckboxMenuItem miDebugHadesInterface

miDebugInstrCache

protected java.awt.CheckboxMenuItem miDebugInstrCache

miDebugDataCache

protected java.awt.CheckboxMenuItem miDebugDataCache

statisticButton

protected java.awt.Button statisticButton
Constructor Detail

ShowMips

public ShowMips(Core newCore,
                ResetHandler newResetHandler)
Method Detail

prepareMainWindow

public void prepareMainWindow()
prepare main window, part of the constructor


hide

public void hide()

show

public void show()

update

public void update()

setCycleListener

public void setCycleListener(CycleListener newCycleListener)

handleBreakPoint

public void handleBreakPoint(BreakPointMemory bpMem,
                             int adr,
                             int reason)
Description copied from interface: BreakPointHandler
handle the breakpoint with info about the memory, the bp-address and the reason of the bp (see BreakPointMemory for constants)

Specified by:
handleBreakPoint in interface BreakPointHandler

main

public static void main(java.lang.String[] argv)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

clearMemory

public void clearMemory(Memory mem)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener