|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.gui.components.controller.MainController
public final class MainController
The main controller of the GUI of the debugger. Contains the logical actions to perform based on events received from the main GUIs components.
| Constructor Summary | |
|---|---|
MainController(com.github.croesch.micro_debug.mic1.Mic1 proc,
MainView view,
com.github.croesch.micro_debug.debug.BreakpointManager bpm,
boolean updateAfterTick)
Constructs the main controller for the given main view. |
|
| Method Summary | |
|---|---|
boolean |
canContinue(int microLine,
int macroLine,
com.github.croesch.micro_debug.mic1.controlstore.MicroInstruction currentInstruction,
com.github.croesch.micro_debug.mic1.controlstore.MicroInstruction nextInstruction)
|
com.github.croesch.micro_debug.debug.BreakpointManager |
getBpm()
Returns the breakpoint model used by this controller. |
com.github.croesch.micro_debug.mic1.Mic1 |
getProcessor()
Returns the Mic1 processor being debugged by this debugger. |
void |
setInterrupted(boolean interrupt)
Sets if the running processor should be interrupted. |
void |
tickDone(com.github.croesch.micro_debug.mic1.controlstore.MicroInstruction instruction,
boolean macroCodeFetching)
|
void |
updateView()
Performs an update of the view components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MainController(com.github.croesch.micro_debug.mic1.Mic1 proc,
MainView view,
com.github.croesch.micro_debug.debug.BreakpointManager bpm,
boolean updateAfterTick)
proc - the processor to interpreteview - the view this controller controlls and interacts withbpm - the model for breakpoints of this debuggerupdateAfterTick - whether the view should be updated after each single tick of the processor| Method Detail |
|---|
@NotNull public com.github.croesch.micro_debug.debug.BreakpointManager getBpm()
BreakpointManager that is the model, managing the breakpoints of the debugger.
public boolean canContinue(int microLine,
int macroLine,
com.github.croesch.micro_debug.mic1.controlstore.MicroInstruction currentInstruction,
com.github.croesch.micro_debug.mic1.controlstore.MicroInstruction nextInstruction)
canContinue in interface com.github.croesch.micro_debug.mic1.api.IProcessorInterpreter
public void tickDone(com.github.croesch.micro_debug.mic1.controlstore.MicroInstruction instruction,
boolean macroCodeFetching)
tickDone in interface com.github.croesch.micro_debug.mic1.api.IProcessorInterpreterpublic void updateView()
@NotNull public com.github.croesch.micro_debug.mic1.Mic1 getProcessor()
Mic1 processor being debugged by this debugger.
public void setInterrupted(boolean interrupt)
interrupt - true, if the running processor should be interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||