|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetSimulator
Abstract base class for implementing custom network simulators.
Field Summary | |
---|---|
static long |
LOST
|
Method Summary | |
---|---|
long |
send(int senderID,
int receiverID,
long sendTime)
Simulate the sending of a message m by giving the message's delivery time, possibly losing it. |
Field Detail |
---|
static final long LOST
Method Detail |
---|
long send(int senderID, int receiverID, long sendTime)
senderID
- sender of the messagereceiverID
- receiver of the messagesendTime
- clock time (in nanoseconds) when the message was sent
LOST
if lost
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |