|
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.inet.CoreServiceLayer
drcl.inet.core.CoreServiceLayer
The container class for constructing a network node.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Constructor Summary | |
CoreServiceLayer()
|
|
CoreServiceLayer(java.lang.String id_)
|
|
| Method Summary | |
void |
addAddress(long addr_)
Adds an identity to this core service layer. |
void |
addRTEntry(RTKey key_,
RTEntry entry_,
double timeout_)
Adds a routing entry to this core service layer. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
double |
getBandwidth(int ifindex_)
Returns the bandwidth of the specified interface. |
java.lang.String |
getBufferMode(int ifindex_)
|
int |
getBufferSize(int ifindex_)
Returns the buffer size of the specified interface. |
long |
getDefaultAddress()
Returns the default identity in this core service layer. |
InterfaceInfo |
getInterfaceInfo(int ifindex_)
Returns the interface information of the specified interface. |
InterfaceInfo[] |
getInterfaceInfos()
Returns all the interface information in an array. |
double |
getLinkPropDelay(int ifindex_)
Returns the emulated link propagation delay. |
int |
getMTU(int ifindex_)
Returns the MTU of the specified interface. |
Port[][] |
getNAMPacketEventPorts()
Returns the ports that output packets that are to be enqueued in and dequeued/dropped from the buffer. |
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_)
|
void |
removeAddress(long addr_)
Removes an identity from this core service layer. |
void |
removeRTEntry(RTKey key_)
Removes a routing entry from this core service layer. |
RTEntry[] |
retrieveAllRTEntries()
Retrieves all RT entries from this core service layer. |
java.lang.Object |
retrieveRTEntry(RTKey key_,
java.lang.String matchMethod_)
Retrieves an RT entry/RT entries from this core service layer. |
void |
setBandwidth(double bw_)
Sets the bandwidth of all the interfaces. |
void |
setBandwidth(int ifindex_,
double bw_)
Sets the bandwidth of the specified interface. |
void |
setBuffer(int ifindex_,
int bs_,
java.lang.String mode_)
Sets the buffer size of the specified 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 specified interface. |
void |
setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
Sets the interface information at the specified 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 MTUs of all interfaces. |
void |
setupVIF(int vifindex_,
long peer_,
int mtu_)
|
void |
setupVIF(int vifindex_,
long src_,
long peer_,
int mtu_)
|
| 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 CoreServiceLayer()
public CoreServiceLayer(java.lang.String id_)
| Method Detail |
public java.lang.String info()
Component
info in class CoreServiceLayerpublic boolean hasRoutingCapability()
hasRoutingCapability in class CoreServiceLayerpublic void addAddress(long addr_)
CoreServiceLayer
addAddress in class CoreServiceLayerpublic long getDefaultAddress()
CoreServiceLayer
getDefaultAddress in class CoreServiceLayerpublic void removeAddress(long addr_)
CoreServiceLayer
removeAddress in class CoreServiceLayer
public void setBandwidth(int ifindex_,
double bw_)
CoreServiceLayer
setBandwidth in class CoreServiceLayerpublic void setBandwidth(double bw_)
CoreServiceLayer
setBandwidth in class CoreServiceLayerpublic double getBandwidth(int ifindex_)
CoreServiceLayer
getBandwidth in class CoreServiceLayerpublic void setBufferSize(int bs_)
CoreServiceLayer
setBufferSize in class CoreServiceLayerbs_ - buffer size in bytes or packets depending on the mode.
public void setBuffer(int bs_,
java.lang.String mode_)
CoreServiceLayer
setBuffer in class CoreServiceLayerbs_ - buffer size in bytes or packets depending on the mode.mode_ - can be either "packet" or "byte"
public void setBufferSize(int ifindex_,
int bs_)
CoreServiceLayer
setBufferSize in class CoreServiceLayerbs_ - buffer size in bytes or packets depending on the mode.
public void setBuffer(int ifindex_,
int bs_,
java.lang.String mode_)
CoreServiceLayer
setBuffer in class CoreServiceLayerbs_ - buffer size in bytes or packets depending on the mode.mode_ - can be either "packet" or "byte"public void setBufferMode(java.lang.String mode_)
CoreServiceLayer
setBufferMode in class CoreServiceLayermode_ - can be either "packet" or "byte".
public void setBufferMode(int ifindex_,
java.lang.String mode_)
CoreServiceLayer
setBufferMode in class CoreServiceLayermode_ - can be either "packet" or "byte".public java.lang.String getBufferMode(int ifindex_)
getBufferMode in class CoreServiceLayerpublic int getBufferSize(int ifindex_)
CoreServiceLayer
getBufferSize in class CoreServiceLayerCoreServiceLayer.getBufferMode(int)
public void setLinkEmulationEnabled(int ifindex_,
boolean enabled_)
setLinkEmulationEnabled in class CoreServiceLayerpublic boolean isLinkEmulationEnabled(int ifindex_)
isLinkEmulationEnabled in class CoreServiceLayer
public void setLinkPropDelay(int ifindex_,
double delay_)
setLinkPropDelay in class CoreServiceLayerpublic double getLinkPropDelay(int ifindex_)
getLinkPropDelay in class CoreServiceLayer
public void setMTU(int ifindex_,
int mtu_)
CoreServiceLayer
setMTU in class CoreServiceLayerpublic void setMTUs(int mtu_)
CoreServiceLayer
setMTUs in class CoreServiceLayerpublic int getMTU(int ifindex_)
CoreServiceLayer
getMTU in class CoreServiceLayer
public void setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
CoreServiceLayer
setInterfaceInfo in class CoreServiceLayerpublic void setInterfaceInfos(InterfaceInfo[] aa_)
CoreServiceLayer
setInterfaceInfos in class CoreServiceLayerpublic InterfaceInfo getInterfaceInfo(int ifindex_)
CoreServiceLayer
getInterfaceInfo in class CoreServiceLayerpublic InterfaceInfo[] getInterfaceInfos()
CoreServiceLayer
getInterfaceInfos in class CoreServiceLayerpublic int getNumOfInterfaces()
CoreServiceLayer
getNumOfInterfaces in class CoreServiceLayerpublic int getNumOfPhysicalInterfaces()
CoreServiceLayer
getNumOfPhysicalInterfaces in class CoreServiceLayer
public void addRTEntry(RTKey key_,
RTEntry entry_,
double timeout_)
CoreServiceLayer
addRTEntry in class CoreServiceLayerpublic void removeRTEntry(RTKey key_)
CoreServiceLayer
removeRTEntry in class CoreServiceLayer
public java.lang.Object retrieveRTEntry(RTKey key_,
java.lang.String matchMethod_)
CoreServiceLayer
retrieveRTEntry in class CoreServiceLayerRTEntry[] if matchMethod_ is
MATCH_ALL
or MATCH_WILDCARD.RTKey,
RTEntry,
Mappublic RTEntry[] retrieveAllRTEntries()
CoreServiceLayer
retrieveAllRTEntries in class CoreServiceLayerRTEntry[].RTKey,
RTEntry
public void setupVIF(int vifindex_,
long peer_,
int mtu_)
setupVIF in class CoreServiceLayer
public void setupVIF(int vifindex_,
long src_,
long peer_,
int mtu_)
setupVIF in class CoreServiceLayerpublic Port[][] getNAMPacketEventPorts()
CoreServiceLayer
getNAMPacketEventPorts in class CoreServiceLayerpublic void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Component
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||