SunSPOT API V5.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

A single entry in the routing table

Version:
0.1
Author:
Allen Ajit George

Field Summary
 boolean activityFlag
          is the route currently being used by someone
 long expiryTime
          timestamp for deleting this route from the table, if unused
 int hopCount
          number of hops to the destination
 Long key
          Lookup key for this table.
 Long nextHopMACAddress
          address of next hop along this route
 int routeCost
          AODV costing metric
 Vector routeUsers
          list of those actively using this route entry
 int sequenceNumber
          AODV sequence number
 
Constructor Summary
RoutingEntry()
          constructs a new routing entry
 
Method Summary
 int compare(Object object)
          compares two routing entries
 String toString()
          create and return a string representation of this object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public Long key
Lookup key for this table. Usually keyed on destination address


sequenceNumber

public int sequenceNumber
AODV sequence number


nextHopMACAddress

public Long nextHopMACAddress
address of next hop along this route


expiryTime

public long expiryTime
timestamp for deleting this route from the table, if unused


hopCount

public int hopCount
number of hops to the destination


routeCost

public int routeCost
AODV costing metric


activityFlag

public boolean activityFlag
is the route currently being used by someone


routeUsers

public Vector routeUsers
list of those actively using this route entry

Constructor Detail

RoutingEntry

public RoutingEntry()
constructs a new routing entry

Method Detail

compare

public int compare(Object object)
compares two 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()
create and return a string representation of this object

Overrides:
toString in class Object
Returns:
this object as a string

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.