|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object communication.CommunicationElement communication.UnreliableCommElt
public class UnreliableCommElt
Unreliable element: send a message without the possibility to know if it has been received by the other element or has been lost.
Nested Class Summary | |
---|---|
protected class |
UnreliableCommElt.Sender
Thread that wait a given delay before sending a message |
Nested classes/interfaces inherited from class communication.CommunicationElement |
---|
CommunicationElement.Receiver |
Field Summary |
---|
Fields inherited from class communication.CommunicationElement |
---|
crashLevel, debugFault, msgBuffer, myPid, packetLostLevel, randGen, tcp, transmissionDelayLowerBound, transmissionDelayUpperBound |
Constructor Summary | |
---|---|
UnreliableCommElt()
|
|
UnreliableCommElt(int port)
|
Method Summary | |
---|---|
protected void |
physicalSendMessage(Message msg,
ProcessIdentifier senderId)
Method called to "physically" send a message through TCP sockets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnreliableCommElt() throws CommunicationException
CommunicationException
public UnreliableCommElt(int port) throws CommunicationException
port
-
CommunicationException
Method Detail |
---|
protected void physicalSendMessage(Message msg, ProcessIdentifier senderId) throws CommunicationException
CommunicationElement
physicalSendMessage
in class CommunicationElement
msg
- the message to be sent (including the receiver id)senderId
- the id of the sender
CommunicationException
- in case of communication problem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |