inria.net.lrmp
Class LrmpEntity

java.lang.Object
  |
  +--inria.util.Entity
        |
        +--inria.net.lrmp.LrmpEntity
Direct Known Subclasses:
LrmpSender

public class LrmpEntity
extends Entity

encapsulates the information about an LRMP entity. This object is created and managed internally by LRMP.


Field Summary
protected  int distance
          approximative number of hops from local site.
protected  int rtt
          round trip time in millis.
protected static long SequenceModulo
           
 
Fields inherited from class inria.util.Entity
id
 
Method Summary
 boolean equals(LrmpEntity e)
          Compares with an Lrmp entity for equality.
 java.net.InetAddress getAddress()
          Returns the network address.
 long getLastTimeHeard()
          Returns the last time when this entity was heard.
 int getNackCount()
          Returns the number of NACK packets heard from this entity.
 int getRTT()
          Returns the round trip time, in milliseconds.
protected  void incNack()
           
protected  void reset()
           
protected  void setAddress(java.net.InetAddress netaddr)
           
protected  void setID(int id)
          Sets the entity ID.
protected  void setLastTimeHeard(long t)
           
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class inria.util.Entity
equals, getID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SequenceModulo

protected static final long SequenceModulo

rtt

protected int rtt
round trip time in millis.

distance

protected int distance
approximative number of hops from local site.
Method Detail

reset

protected void reset()

setAddress

protected void setAddress(java.net.InetAddress netaddr)

setID

protected void setID(int id)
Sets the entity ID.

getAddress

public java.net.InetAddress getAddress()
Returns the network address.

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Object

getNackCount

public int getNackCount()
Returns the number of NACK packets heard from this entity.

getRTT

public int getRTT()
Returns the round trip time, in milliseconds.

incNack

protected void incNack()

getLastTimeHeard

public long getLastTimeHeard()
Returns the last time when this entity was heard.

equals

public boolean equals(LrmpEntity e)
Compares with an Lrmp entity for equality. Two entities are equal if they have the same identifier.

setLastTimeHeard

protected void setLastTimeHeard(long t)


JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.