|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drcl.comp.Contract
|
+--drcl.inet.contract.RTLookup
The RouteLookup contract. This contract defines the following service at the reactor:
RouteLookup
RTKey)
and the reactor returns the outgoing interfaces (int[])
of the entry, the key of which has
the longest match to the given key.
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.
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 |
public RTLookup()
public RTLookup(int role_)
| Method Detail |
public java.lang.String getName()
getName in class Contractpublic java.lang.Object getContractContent()
ContractgetContractContent in class Contract
public static int[] lookup(RTKey key_,
Port out_)
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||