com.sun.spot.peripheral.radio.mhrp.aodv.routing
Class RoutingEntry
java.lang.Object
com.sun.spot.peripheral.radio.mhrp.aodv.routing.RoutingEntry
- All Implemented Interfaces:
- Comparable
public class RoutingEntry
- extends Object
- implements Comparable
- Version:
- 0.1
- Author:
- Allen Ajit George
|
Constructor Summary |
RoutingEntry()
constructs a new routing entry |
key
public Long key
sequenceNumber
public int sequenceNumber
nextHopMACAddress
public Long nextHopMACAddress
expiryTime
public long expiryTime
hopCount
public int hopCount
routeCost
public int routeCost
activityFlag
public boolean activityFlag
routeUsers
public Vector routeUsers
RoutingEntry
public RoutingEntry()
- constructs a new routing entry
compare
public int compare(Object object)
- compares to routing entries
- Specified by:
compare in interface Comparable
- Parameters:
object - entry with which this entry is to be compared
- Returns:
- expiration -1 if the expiry time of this entry is lower than the one
of the one that was passed as argument, 0 if they are equal, 1 if it is greater
toString
public String toString()
- Description copied from class:
Object
- Returns a string representation of the object. In general, the
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
- Overrides:
toString in class Object
- Returns:
- a string representation of the object.
Copyright © 2007 Sun Microsystems, Inc. All Rights Reserved.