gui.transact
Class TrRecognise

java.lang.Object
  extended by gui.transact.TrState
      extended by gui.transact.TrRecognise

public class TrRecognise
extends TrState


Field Summary
static java.util.logging.Logger logger
           
 
Constructor Summary
TrRecognise()
           
 
Method Summary
private  java.lang.String getHelpFromDialServ(Transaction tr)
           
private  void invokeDialServ(net.sf.regulus.NBestRegResult nbest, Transaction tr)
          Communicates with the dialogue server (prolog implem) in order to : 1) get the selected interpretation (from the initial n-best list provided by the recognizer); 2) and then to obtain help sentences.
 void nextStep(Transaction tr)
          Subclasses must decide which state follows when the user asks for executing the next step of the transaction
private  void processRecRequest(Transaction tr)
          Communicates with the Regulus server in order to process the recognition request.
 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.
 
Methods inherited from class gui.transact.TrState
isTasksCompleted, setTasksCompleted, status, stopStateProcs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static java.util.logging.Logger logger
Constructor Detail

TrRecognise

public TrRecognise()
Method Detail

runTasks

public void runTasks(Transaction tr)
Description copied from class: TrState
Subclasses must decide what to do when the user asks for executing the tasks required inside this state of the transaction.

Specified by:
runTasks in class TrState

nextStep

public void nextStep(Transaction tr)
Description copied from class: TrState
Subclasses must decide which state follows when the user asks for executing the next step of the transaction

Specified by:
nextStep in class TrState

processRecRequest

private void processRecRequest(Transaction tr)
Communicates with the Regulus server in order to process the recognition request.


invokeDialServ

private void invokeDialServ(net.sf.regulus.NBestRegResult nbest,
                            Transaction tr)
Communicates with the dialogue server (prolog implem) in order to : 1) get the selected interpretation (from the initial n-best list provided by the recognizer); 2) and then to obtain help sentences.

Parameters:
nbest - - the list of n-best recognition hypotheses

getHelpFromDialServ

private java.lang.String getHelpFromDialServ(Transaction tr)