SunSPOT API V2.0


com.sun.spot.peripheral.radio.mhrp.aodv.routing
Class RoutingEntry

java.lang.Object
  extended by 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

Field Summary
 boolean activityFlag
           
 long expiryTime
           
 int hopCount
           
 Long key
           
 Long nextHopMACAddress
           
 int routeCost
           
 Vector routeUsers
           
 int sequenceNumber
           
 
Constructor Summary
RoutingEntry()
          constructs a new routing entry
 
Method Summary
 int compare(Object object)
          compares to routing entries
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

RoutingEntry

public RoutingEntry()
constructs a new routing entry

Method Detail

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.

SunSPOT API V2.0


Copyright © 2007 Sun Microsystems, Inc. All Rights Reserved.