|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.Contract
drcl.inet.contract.RTConfig
The RouteConfiguration contract. This contract defines five services at the reactor:
RTEntryAddition
RTKey),
RTEntry) and
double).
Double.NaN to have the
entry not removed. In the case of a modification, zero lifetime
makes the reactor keep the previous lifetime setting.
Graft
Prune
RTEntriesRemoval
RTKey), and
RTEntry. In other cases,
an array of matched entries (drcl.inet.data.RTEntry[]) are returned.
RTEntriesRetrieval
add(...),
graft(...),
prune(...),
remove(...) and
retrieve(...)) from the specified port.
In addition, it provides a
convenient call getAllEntries(drcl.comp.Port) to get all the routing entries from
a specified port.
These methods are particularly useful in implementing
a (routing) protocol that is in charge of maintaining the routing table of
the node.
RTKey,
RTEntry| Nested Class Summary | |
static class |
RTConfig.Message
|
| Field Summary | |
static int |
ADD
The "add" command used in the "add an entry" service. |
static int |
ENTRY
|
static java.lang.Object |
EXTENSION_NO_CHANGE
|
static int |
GRAFT
The "graft" command used in the "graft" service. |
static RTConfig |
INSTANCE
|
static int |
KEY
|
static java.lang.String |
MATCH_ALL
The match-all argument used in the "remove" or "retrieve" service. |
static java.lang.String |
MATCH_EXACT
The exact match argument used in the "remove" or "retrieve" service. |
static java.lang.String |
MATCH_LONGEST
The longest match argument used in the "remove" or "retrieve" service. |
static int |
MATCH_TYPE
|
static java.lang.String |
MATCH_WILDCARD
The wildcard match argument used in the "remove" or "retrieve" service. |
static long |
NEXT_HOP_NO_CHANGE
|
static BitSet |
OUT_IFS_NO_CHANGE
|
static int |
PRUNE
The "prune" command used in the "prune" service. |
static int |
REMOVE
The "remove" command used in the "remove entries" service. |
static int |
RETRIEVE
The "retrieve" command used in the "retrieve entries" service. |
static int |
TIMEOUT
|
static double |
TIMEOUT_NO_CHANGE
|
static int |
TYPE
|
| Fields inherited from class drcl.comp.Contract |
Role_INITIATOR, Role_PEER, Role_REACTOR |
| Constructor Summary | |
RTConfig()
|
|
RTConfig(int role_)
|
|
| Method Summary | |
static void |
add(RTKey key_,
RTEntry entry_,
double timeout_,
Port out_)
|
static java.lang.Object |
createAddRequest(RTKey key_,
RTEntry entry_,
double timeout_)
|
static java.lang.Object |
createGetAllRequest()
|
static java.lang.Object |
createGraftRequest(RTKey key_,
BitSet bs_,
double timeout_)
|
static java.lang.Object |
createGraftRequest(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_)
|
static java.lang.Object |
createPruneRequest(RTKey key_,
BitSet bs_,
double timeout_)
|
static java.lang.Object |
createPruneRequest(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_)
|
static java.lang.Object |
createRemoveRequest(RTKey key_,
java.lang.String match_)
|
static java.lang.Object |
createRetrieveRequest(RTKey key_,
java.lang.String match_)
|
static java.lang.Object |
getAllEntries(Port out_)
|
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
java.lang.String |
getName()
|
static void |
graft(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_,
Port out_)
|
static void |
prune(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_,
Port out_)
|
static java.lang.Object |
remove(RTKey key_,
java.lang.String match_,
Port out_)
|
static java.lang.Object |
retrieve(RTKey key_,
java.lang.String match_,
Port out_)
|
| Methods inherited from class drcl.comp.Contract |
getRole, match, setRole |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final RTConfig INSTANCE
public static final long NEXT_HOP_NO_CHANGE
public static final BitSet OUT_IFS_NO_CHANGE
public static final java.lang.Object EXTENSION_NO_CHANGE
public static final double TIMEOUT_NO_CHANGE
public static final int ADD
public static final int GRAFT
public static final int PRUNE
public static final int REMOVE
public static final int RETRIEVE
public static final int TYPE
public static final int KEY
public static final int ENTRY
public static final int TIMEOUT
public static final int MATCH_TYPE
public static final java.lang.String MATCH_EXACT
public static final java.lang.String MATCH_LONGEST
MATCH_ALL,
Constant Field Valuespublic static final java.lang.String MATCH_ALL
public static final java.lang.String MATCH_WILDCARD
| Constructor Detail |
public RTConfig()
public RTConfig(int role_)
| Method Detail |
public java.lang.String getName()
getName in class Contractpublic java.lang.Object getContractContent()
Contract
getContractContent in class Contract
public static void add(RTKey key_,
RTEntry entry_,
double timeout_,
Port out_)
public static void graft(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_,
Port out_)
public static void prune(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_,
Port out_)
public static java.lang.Object remove(RTKey key_,
java.lang.String match_,
Port out_)
public static java.lang.Object retrieve(RTKey key_,
java.lang.String match_,
Port out_)
public static java.lang.Object getAllEntries(Port out_)
public static java.lang.Object createAddRequest(RTKey key_,
RTEntry entry_,
double timeout_)
public static java.lang.Object createGraftRequest(RTKey key_,
BitSet bs_,
double timeout_)
public static java.lang.Object createGraftRequest(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_)
public static java.lang.Object createPruneRequest(RTKey key_,
BitSet bs_,
double timeout_)
public static java.lang.Object createPruneRequest(RTKey key_,
BitSet bs_,
java.lang.Object extension_,
double timeout_)
public static java.lang.Object createRemoveRequest(RTKey key_,
java.lang.String match_)
public static java.lang.Object createRetrieveRequest(RTKey key_,
java.lang.String match_)
public static java.lang.Object createGetAllRequest()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||