frysk.stepping
Class State

java.lang.Object
  extended by frysk.stepping.State
Direct Known Subclasses:
InstructionStepState, InstructionStepThroughState, LineStepState, NextInstructionStepState, NextInstructionStepTestState, RunningState, StepAdvanceState, StepOutState, StepOverState, StepOverTestState, StepTerminatedState, StoppedState

public abstract class State
extends Object

State interface for the stepping state machine.


Field Summary
(package private)  Task task
           
 
Constructor Summary
State()
           
 
Method Summary
abstract  State handleUpdate(TaskStepEngine tse)
          Handles updates from the SteppingEngine.SteppingObserver.
abstract  boolean isAlive()
          Returns whether or not this State a Task which has just died.
abstract  boolean isStopped()
          Returns whether or not this State represents a stopped Task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

task

Task task
Constructor Detail

State

public State()
Method Detail

handleUpdate

public abstract State handleUpdate(TaskStepEngine tse)
Handles updates from the SteppingEngine.SteppingObserver. Performs state transitions if necessary.

Returns:
state The State of task after the SteppingObserver update

isStopped

public abstract boolean isStopped()
Returns whether or not this State represents a stopped Task.

Returns:
true If the Task is stopped

isAlive

public abstract boolean isAlive()
Returns whether or not this State a Task which has just died.

Returns:
true If the Task is alive