|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The TRAMSimulator interface enables use of simulators to test the TRAM protocol.
Method Summary | |
void |
headChange(int port,
int headPort)
informs the simulator of a node's head change |
void |
levelChange(int port,
int level)
informs the simulator of a node's rxLevel change |
void |
memberCountChange(int port,
int memberCount)
informs the simulator of a node's member count change |
void |
simulateMulticastData(java.net.DatagramPacket dp,
int ttl)
passes the multicast data packet to the simulator |
void |
simulateMulticastPacket(java.net.DatagramPacket dp,
int type,
int ttl)
passes the multicast packet to the simulator |
void |
simulateUnicastPacket(java.net.DatagramPacket dp)
passes the unicast packet to the simulator |
void |
stateChange(int port,
byte hState)
informs the simulator of a node's state change |
Method Detail |
public void headChange(int port, int headPort)
port
- the port associated with this nodeheadPort
- the port of the node's new headpublic void levelChange(int port, int level)
port
- the port associated with this nodelevel
- the nex level of the nodepublic void memberCountChange(int port, int memberCount)
port
- the port associated with this nodecount
- the member count of the nodepublic void simulateMulticastData(java.net.DatagramPacket dp, int ttl)
packet
- the multicast data packetttl
- the ttl of the packetpublic void simulateMulticastPacket(java.net.DatagramPacket dp, int type, int ttl)
packet
- the multicast datagram packettype
- the TRAM subtype of the packetttl
- the ttl of the packetpublic void simulateUnicastPacket(java.net.DatagramPacket dp)
packet
- the unicast datagram packetpublic void stateChange(int port, byte hState)
port
- the port associated with this nodestate
- the new state of this node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.