|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.net.Module
drcl.inet.Protocol
drcl.inet.core.Hello
Component that resides in a node and exchanges information with neighboring
nodes.
The information collectd is stored in the data structure defined in
InterfaceInfo. Other components may query for the neighbor
information by sending null to one of its port; in return,
the component sends back array of InterfaceInfo.
The component may run in two modes: dynamic or static. When in dynamic mode,
the neighbor information is maintained with soft-state approach, so that it
adapts to topology change. When topology is fixed, it would be better to
run it in static mode where information is exchanged once and the neighbor
information is never timed out. One may change the mode back and forth
during simulation at any time.
IFQuery,
InterfaceInfo,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Fields inherited from class drcl.net.Module |
downPort, PortGroup_DOWN, PortGroup_UP, upPort |
| Fields inherited from interface drcl.inet.core.InetCoreConstants |
CONFIG_PORT_ID, PULL_PORT_ID |
| Constructor Summary | |
Hello()
|
|
Hello(java.lang.String id_)
|
|
| Method Summary | |
InterfaceInfo |
_getInterfaceInfo(int ifIndex_)
Returns the information of a specific interface. |
void |
_setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
Sets the information of a specific interface. |
void |
_setInterfaceInfo(int ifindex_,
NetAddress local_,
NetAddress peer_)
Sets the information of a specific interface. |
void |
_setMTUs(int mtu_)
Sets the default MTU value. |
void |
clear()
Clears the neighbor database. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
static double |
getHelloRemovalTimeout()
|
static double |
getHelloTimeout()
|
InterfaceInfo[] |
getInterfaceInfos()
Returns the information of all interfaces. |
java.lang.String |
getName()
Returns the (informational) name of the component. |
java.lang.String |
info()
Returns information regarding this component. |
boolean |
isStaticEnabled()
Returns true if the static mode is enabled. |
void |
reset()
Resets the component for being used anew. |
static void |
setHelloRemovalTimeout(double timeout_)
|
void |
setInterfaceInfos(InterfaceInfo[] aa_)
Sets the interface information for all interfaces. |
void |
setStaticEnabled(boolean v_)
Enables/disables the static mode. |
| Methods inherited from class drcl.net.Module |
cancelTimeout, setTimeout, setTimeoutAt |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Hello()
public Hello(java.lang.String id_)
| Method Detail |
public java.lang.String getName()
Component
getName in class Componentpublic static final void setHelloRemovalTimeout(double timeout_)
public static final double getHelloRemovalTimeout()
public static final double getHelloTimeout()
public void reset()
Component
reset in class Componentpublic void clear()
public void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Protocolpublic void setStaticEnabled(boolean v_)
public boolean isStaticEnabled()
public java.lang.String info()
Component
info in class Component
public void _setInterfaceInfo(int ifindex_,
NetAddress local_,
NetAddress peer_)
public void _setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
public InterfaceInfo _getInterfaceInfo(int ifIndex_)
public InterfaceInfo[] getInterfaceInfos()
public void setInterfaceInfos(InterfaceInfo[] aa_)
public void _setMTUs(int mtu_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||