DRCL J-Sim API

drcl.inet.protocol.aodv
Class AODV_RTEntry

java.lang.Object
  extended bydrcl.inet.protocol.aodv.AODV_RTEntry

public class AODV_RTEntry
extends java.lang.Object

AODV_RTEntry.java AODV routing Entry dedicated for AODV usage. Note the routing entry is kept in AODV classes for some special operations for AODV such as local repairs. The content of the routing table should be consistent with the routing table kept in the core (core.RT).

Author:
Wei-peng Chen
See Also:
AODV

Field Summary
 int rt_req_cnt
          number of route requests
 double rt_req_timeout
          when I can send another req
 
Method Summary
 void pc_delete()
           
 void pc_delete(long id)
           
 boolean pc_empty()
           
 void pc_insert(long id)
           
 long pc_lookup(long id)
           
 void rt_down()
          Disable the routing entry
 void rt_update(int seqnum, int metric, long nexthop)
          rt_update: update the routing entry
 void rt_update(int seqnum, int metric, long nexthop, double expire_time)
          rt_update: update the routing entry
 boolean set_expire(double new_expire)
          return true, if it really modifies rt_expire
 java.lang.String toString()
          express the content of the routing entry
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rt_req_timeout

public double rt_req_timeout
when I can send another req


rt_req_cnt

public int rt_req_cnt
number of route requests

Method Detail

pc_insert

public void pc_insert(long id)

pc_lookup

public long pc_lookup(long id)

pc_delete

public void pc_delete(long id)

pc_delete

public void pc_delete()

pc_empty

public boolean pc_empty()

rt_down

public void rt_down()
Disable the routing entry


rt_update

public void rt_update(int seqnum,
                      int metric,
                      long nexthop,
                      double expire_time)
rt_update: update the routing entry


rt_update

public void rt_update(int seqnum,
                      int metric,
                      long nexthop)
rt_update: update the routing entry


set_expire

public boolean set_expire(double new_expire)
return true, if it really modifies rt_expire


toString

public java.lang.String toString()
express the content of the routing entry


DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~