cvm.se.communication
Class CommunicationObject

java.lang.Object
  extended by cvm.se.communication.CommunicationObject

public class CommunicationObject
extends java.lang.Object

This class handles all the opration that must be performed on the communication.

Author:
Frank Hernandez

Method Summary
 void handleCommunication()
          This is the main communication state machine for the communication process.
 void handleCommunicationUpdate()
          Takes care of what changes to make for the given update.
 void handleNegotiationEnd()
          This method encapsulates must of the operations that must be done at the end of negotiation.
 void queueDataSchema(DataSchema data)
          Enqueues the data schemas to be sent after negotiation is complete.
 void signalProcessKill()
           
 void updateCurrentConnectionSchema(ControlSchema current)
          This updates the current connection schema after negotiation is done.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handleCommunication

public void handleCommunication()
                         throws java.lang.InterruptedException
This is the main communication state machine for the communication process.

Throws:
java.lang.InterruptedException

handleCommunicationUpdate

public void handleCommunicationUpdate()
Takes care of what changes to make for the given update. As of now it does nothing.


queueDataSchema

public void queueDataSchema(DataSchema data)
Enqueues the data schemas to be sent after negotiation is complete.

Parameters:
data -

handleNegotiationEnd

public void handleNegotiationEnd()
This method encapsulates must of the operations that must be done at the end of negotiation.


updateCurrentConnectionSchema

public void updateCurrentConnectionSchema(ControlSchema current)
This updates the current connection schema after negotiation is done.

Parameters:
current -

signalProcessKill

public void signalProcessKill()