gui.transact
Class TrState

java.lang.Object
  extended by gui.transact.TrState
Direct Known Subclasses:
TrAvailable, TrExitApp, TrInitDialClient, TrInitDialServ, TrInitGlobalProcesses, TrInitSpeech, TrPlayBack, TrReady, TrRecognise

public abstract class TrState
extends java.lang.Object

This abstract class is the top of a hierarchy of transaction state classes.


Field Summary
private  boolean tasksCompleted
           
 
Constructor Summary
TrState()
           
 
Method Summary
protected  boolean isTasksCompleted()
           
abstract  void nextStep(Transaction tr)
          Subclasses must decide which state follows when the user asks for executing the next step of the transaction
abstract  void runTasks(Transaction tr)
          Subclasses must decide what to do when the user asks for executing the tasks required inside this state of the transaction.
protected  void setTasksCompleted(boolean tasksCompleted)
           
 java.lang.String status()
          Return a textual description of this state.
 void stopStateProcs(Transaction tr)
          Subclasses must override this method in order to stop the processes started by the corresponding state tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tasksCompleted

private boolean tasksCompleted
Constructor Detail

TrState

public TrState()
Method Detail

isTasksCompleted

protected boolean isTasksCompleted()

setTasksCompleted

protected void setTasksCompleted(boolean tasksCompleted)

runTasks

public abstract void runTasks(Transaction tr)
Subclasses must decide what to do when the user asks for executing the tasks required inside this state of the transaction.


nextStep

public abstract void nextStep(Transaction tr)
Subclasses must decide which state follows when the user asks for executing the next step of the transaction


stopStateProcs

public void stopStateProcs(Transaction tr)
Subclasses must override this method in order to stop the processes started by the corresponding state tasks. Stub method by default so that subclasses can ignore this if irrelevant.


status

public java.lang.String status()
Return a textual description of this state.

Returns:
a textual description of this state