|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cvm.se.communication.CommunicationProcess
public class CommunicationProcess
This is the process in charge of controlling a single communication. Each Communication Process controls the negotiation, renegotiation, and the communication status. Each communication process is composed of 2 concurrent sub processes, one for negotiation/renegotiation and one for communication.
Constructor Summary | |
---|---|
CommunicationProcess(java.lang.String sProcID)
|
|
CommunicationProcess(java.lang.String sProcID,
ControlSchema schema)
|
Method Summary | |
---|---|
void |
AnalyzeSchema()
This function analzes the schema, makes the required changes, and removes any lost participant. |
ControlSchema |
getConnSchema()
|
ControlSchema |
getCurrentConnectionSchema()
Returns the current connection schema |
NegotiationObject |
getNegObj()
Returns negotiation object for last control schema. |
void |
handleCommunication(ControlSchema schemaUCI)
This function receives the control schema from UCI. |
void |
handleCommunictationUpdate()
|
void |
handleDataSchema(DataSchema data)
This method handles all the operations dealing with the data schema for this process. |
void |
handleIncommingNegotiation(NegotiationSchema negSchema)
This function handles incoming negotiation shemas. |
boolean |
isBIsAlive()
|
void |
KillProcess()
This function kills this communication process. |
void |
registerControlSchema(ControlSchema schema)
Register control schema for the communication process. |
void |
registerSchema(NegotiationSchema negSchema)
This function registers every schema received only when all the schemas are received, it signals the start of negotiation. |
void |
SendSchema(ControlSchema schema)
This function encapsulates the schema into the negotiation schema object, and sends it to each of the participant. |
void |
setBIsAlive(boolean isAlive)
|
void |
signalProcessKill()
|
void |
StartProcess()
This function starts the communication process. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommunicationProcess(java.lang.String sProcID)
public CommunicationProcess(java.lang.String sProcID, ControlSchema schema)
Method Detail |
---|
public void StartProcess()
public void KillProcess()
public void signalProcessKill()
public boolean isBIsAlive()
public void setBIsAlive(boolean isAlive)
public void SendSchema(ControlSchema schema)
schema
- Object with the information to send.public void AnalyzeSchema()
public void registerSchema(NegotiationSchema negSchema)
negSchema
- Negotiation schema received from other users.public void handleIncommingNegotiation(NegotiationSchema negSchema)
negSchema
- negotation schema.public void handleCommunication(ControlSchema schemaUCI)
schemaUCI
- public void registerControlSchema(ControlSchema schema)
schema
- public void handleCommunictationUpdate()
public void handleDataSchema(DataSchema data)
data
- public ControlSchema getCurrentConnectionSchema()
public ControlSchema getConnSchema()
public NegotiationObject getNegObj()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |