|
J-Sim v1.2.1-p7 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.inet.Node
The container class for a network node.
In the INET framework, a node consists of the
core service layer (CSL) and the "upper" protocol layer (UPL).
UPL contains transport protocols, applications and other modules.
The structure in this layer is not defined in the framework, so components in this layer
may form an arbitrary graph. CSL provides a set of well-defined services (that are common
in most network architectures) to modules in the UPL.
In some sense, CSL encapsulates the functionality of all the network layer, the link layer
and the physical layer.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Constructor Summary | |
Node()
|
|
Node(java.lang.String id_)
|
|
| Method Summary | |
void |
add(Component c_,
java.lang.String llpid_,
int port_)
|
void |
addAddress(long addr_)
Adds a network address to this node. |
void |
addRTEntry(RTKey key_,
RTEntry entry_,
double timeout_)
Adds an RT entry to this node. |
protected void |
componentAdded(Component child_)
Notified when a component is added. |
static Node |
create(long nodeAddr_)
|
double |
getBandwidth(int ifIndex_)
Returns the bandwidth of the ifindex_th interface. |
java.lang.String |
getBufferMode(int ifIndex_)
Returns the buffer operation mode. |
int |
getBufferSize(int ifIndex_)
Returns the buffer size of the ifindex_th interface. |
CoreServiceLayer |
getCSL()
|
long |
getDefaultAddress()
Returns the default network address of this node. |
InterfaceInfo |
getInterfaceInfo(int ifIndex_)
Returns the interface information of the ifindex_th interface. |
InterfaceInfo[] |
getInterfaceInfos()
Returns the interface information of all the interfaces. |
double |
getLinkPropDelay(int ifIndex_)
Returns the emulated link propagation delay. |
int |
getMTU(int ifIndex_)
/** Returns the MTU of the specified interface. |
int |
getNumOfInterfaces()
Returns the number of interfaces including virtual ones. |
int |
getNumOfPhysicalInterfaces()
Returns the number of physical interfaces |
boolean |
hasRoutingCapability()
|
java.lang.String |
info()
Returns information regarding this component. |
boolean |
isLinkEmulationEnabled(int ifIndex_)
|
protected void |
portAdded(Port mine_)
Notified when a port is added. |
void |
propagates(Address addr_)
Propagates the address scheme through this node. |
void |
removeAddress(long addr_)
Removes a network address from this node. |
void |
removeRTEntry(RTKey key_)
Removes an RT entry from this node. |
RTEntry[] |
retrieveAllRTEntries()
Retrieves all RT entries from this node. |
java.lang.Object |
retrieveRTEntry(RTKey key_,
java.lang.String matchMethod_)
Retrieves an RT entry/RT entries from this node. |
void |
setBandwidth(double bw_)
Sets the bandwidth of all the interfaces. |
void |
setBandwidth(int ifindex_,
double bw_)
Sets the bandwidth of the ifindex_th interface. |
void |
setBuffer(int ifindex_,
int bs_,
java.lang.String mode_)
Sets the buffer size of the ifindex_th interface. |
void |
setBuffer(int bs_,
java.lang.String mode_)
Sets the buffer size of all the interfaces. |
void |
setBufferMode(int ifIndex_,
java.lang.String mode_)
Sets the buffer mode of the specified interface. |
void |
setBufferMode(java.lang.String mode_)
Sets the buffer mode of all the interfaces. |
void |
setBufferSize(int bs_)
Sets the buffer size of all the interfaces. |
void |
setBufferSize(int ifindex_,
int bs_)
Sets the buffer size of the ifindex_th interface. |
void |
setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
Sets the interface information of the ifindex_th interface. |
void |
setInterfaceInfos(InterfaceInfo[] aa_)
Sets the interface information of all the interfaces. |
void |
setLinkEmulationEnabled(int ifIndex_,
boolean enabled_)
|
void |
setLinkPropDelay(int ifIndex_,
double delay_)
Sets the emulated link propagation delay. |
void |
setMTU(int ifindex_,
int mtu_)
Sets the MTU of the specified interface. |
void |
setMTUs(int mtu_)
Sets the MTU of all the interfaces. |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Node()
public Node(java.lang.String id_)
| Method Detail |
public java.lang.String info()
Component
info in class Componentpublic static Node create(long nodeAddr_)
public CoreServiceLayer getCSL()
public boolean hasRoutingCapability()
public long getDefaultAddress()
public void addAddress(long addr_)
public void removeAddress(long addr_)
public void setBandwidth(int ifindex_,
double bw_)
public void setBandwidth(double bw_)
public double getBandwidth(int ifIndex_)
public void setBufferSize(int ifindex_,
int bs_)
bs_ - buffer size in bytes or packets depending on the mode.public void setBufferSize(int bs_)
bs_ - buffer size in bytes or packets depending on the mode.
public void setBuffer(int bs_,
java.lang.String mode_)
bs_ - buffer size in bytes or packets depending on the mode.mode_ - can be either "packet" or "byte".
public void setBuffer(int ifindex_,
int bs_,
java.lang.String mode_)
bs_ - buffer size in bytes or packets depending on the mode.mode_ - can be either "packet" or "byte".public void setBufferMode(java.lang.String mode_)
mode_ - can be either "packet" or "byte".
public void setBufferMode(int ifIndex_,
java.lang.String mode_)
mode_ - can be either "packet" or "byte".public int getBufferSize(int ifIndex_)
getBufferMode(int)public java.lang.String getBufferMode(int ifIndex_)
public void setMTU(int ifindex_,
int mtu_)
public void setMTUs(int mtu_)
public int getMTU(int ifIndex_)
public void setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
InterfaceInfopublic InterfaceInfo getInterfaceInfo(int ifIndex_)
InterfaceInfopublic InterfaceInfo[] getInterfaceInfos()
InterfaceInfopublic void setInterfaceInfos(InterfaceInfo[] aa_)
InterfaceInfopublic int getNumOfInterfaces()
public int getNumOfPhysicalInterfaces()
public void addRTEntry(RTKey key_,
RTEntry entry_,
double timeout_)
RTKey,
RTEntrypublic void removeRTEntry(RTKey key_)
RTKey,
RTEntry
public java.lang.Object retrieveRTEntry(RTKey key_,
java.lang.String matchMethod_)
RTEntry[] if matchMethod_ is MATCH_ALL
or MATCH_WILDCARD.RTKey,
RTEntrypublic RTEntry[] retrieveAllRTEntries()
RTEntry[].RTKey,
RTEntry
public void setLinkPropDelay(int ifIndex_,
double delay_)
public double getLinkPropDelay(int ifIndex_)
public void setLinkEmulationEnabled(int ifIndex_,
boolean enabled_)
public boolean isLinkEmulationEnabled(int ifIndex_)
protected void componentAdded(Component child_)
componentAdded in class Componentprotected void portAdded(Port mine_)
portAdded in class Component
public void add(Component c_,
java.lang.String llpid_,
int port_)
public void propagates(Address addr_)
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||