DRCL JavaSim API

drcl.inet.contract
Class RTLookup

java.lang.Object
  |
  +--drcl.comp.Contract
        |
        +--drcl.inet.contract.RTLookup

public class RTLookup
extends Contract

The RouteLookup contract. This contract defines the following service at the reactor:

RouteLookup
The initiator sends a key (RTKey) and the reactor returns the outgoing interfaces (int[]) of the entry, the key of which has the longest match to the given key.
This class also provides a static method (lookup(RTKey, Port)) to facilitate conducting the above service from the specified port. The method is particularly useful in implementing a protocol that needs to look up the routing entry.

Version:
1.0, 10/17/2000
Author:
Hung-ying Tyan
See Also:
for the description of different matches., RTKey, RTEntry

Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
RTLookup()
           
RTLookup(int role_)
           
 
Method Summary
 java.lang.Object getContractContent()
          Returns the content of this contract (format?).
 java.lang.String getName()
           
static int[] lookup(RTKey key_, Port out_)
           
 
Methods inherited from class drcl.comp.Contract
getRole, match, setRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTLookup

public RTLookup()

RTLookup

public RTLookup(int role_)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class Contract

getContractContent

public java.lang.Object getContractContent()
Description copied from class: Contract
Returns the content of this contract (format?).
Overrides:
getContractContent in class Contract

lookup

public static int[] lookup(RTKey key_,
                           Port out_)

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~