gui.transact
Class TrInitDialClient

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

public class TrInitDialClient
extends TrState


Field Summary
private  ClientCom dialogClient
           
static java.util.logging.Logger logger
           
 
Constructor Summary
TrInitDialClient()
           
 
Method Summary
private  ClientCom connectToDialogueServer(java.lang.String host, int serverPort, java.nio.charset.Charset charSet)
          Creates a client of the dialogue server and sends a client connection request.
private  void disconnectFromDialogueServer()
          Sends to the dialogue server the message "client_shutdown" which closes the client connection and also kills the dialogue server process.
 void nextStep(Transaction tr)
          Subclasses must decide which state follows when the user asks for executing the next step of the transaction
 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.
 void stopStateProcs(Transaction tr)
          Stops the processes started by tasks of TrInitDialClient state.
 
Methods inherited from class gui.transact.TrState
isTasksCompleted, setTasksCompleted, status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final java.util.logging.Logger logger

dialogClient

private ClientCom dialogClient
Constructor Detail

TrInitDialClient

public TrInitDialClient()
Method Detail

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

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

stopStateProcs

public void stopStateProcs(Transaction tr)
Stops the processes started by tasks of TrInitDialClient state.

Overrides:
stopStateProcs in class TrState

connectToDialogueServer

private ClientCom connectToDialogueServer(java.lang.String host,
                                          int serverPort,
                                          java.nio.charset.Charset charSet)
Creates a client of the dialogue server and sends a client connection request.


disconnectFromDialogueServer

private void disconnectFromDialogueServer()
Sends to the dialogue server the message "client_shutdown" which closes the client connection and also kills the dialogue server process.

Parameters:
ClientCom - cc