|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.comp.Component
|
+--drcl.inet.CoreServiceLayer
|
+--drcl.inet.core.CoreServiceLayer
The container class for constructing a network node.
| Inner classes inherited from class drcl.comp.Component |
Component.LockPack |
| 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. |
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. |
protected 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_)
|
protected void |
portAdded(Port p_)
Subclasses must implement this to adapt to ports being added at run-time. |
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. |
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.inet.CoreServiceLayer |
retrieveRTEntry |
| 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 CoreServiceLayer()
public CoreServiceLayer(java.lang.String id_)
| Method Detail |
public java.lang.String info()
Componentinfo in class CoreServiceLayerpublic boolean hasRoutingCapability()
hasRoutingCapability in class CoreServiceLayerpublic void addAddress(long addr_)
CoreServiceLayeraddAddress in class CoreServiceLayerpublic long getDefaultAddress()
CoreServiceLayergetDefaultAddress in class CoreServiceLayerpublic void removeAddress(long addr_)
CoreServiceLayerremoveAddress in class CoreServiceLayer
public void setBandwidth(int ifindex_,
double bw_)
CoreServiceLayersetBandwidth in class CoreServiceLayerpublic void setBandwidth(double bw_)
CoreServiceLayersetBandwidth in class CoreServiceLayerpublic double getBandwidth(int ifindex_)
CoreServiceLayergetBandwidth in class CoreServiceLayerpublic void setBufferSize(int bs_)
CoreServiceLayersetBufferSize in class CoreServiceLayerdrcl.inet.CoreServiceLayerbs_ - buffer size in bytes or packets depending on the mode.
public void setBuffer(int bs_,
java.lang.String mode_)
CoreServiceLayersetBuffer in class CoreServiceLayerdrcl.inet.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_)
CoreServiceLayersetBufferSize in class CoreServiceLayerdrcl.inet.CoreServiceLayerbs_ - buffer size in bytes or packets depending on the mode.
public void setBuffer(int ifindex_,
int bs_,
java.lang.String mode_)
CoreServiceLayersetBuffer in class CoreServiceLayerdrcl.inet.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_)
CoreServiceLayersetBufferMode in class CoreServiceLayerdrcl.inet.CoreServiceLayermode_ - can be either "packet" or "byte".
public void setBufferMode(int ifindex_,
java.lang.String mode_)
CoreServiceLayersetBufferMode in class CoreServiceLayerdrcl.inet.CoreServiceLayermode_ - can be either "packet" or "byte".public java.lang.String getBufferMode(int ifindex_)
getBufferMode in class CoreServiceLayerpublic int getBufferSize(int ifindex_)
CoreServiceLayergetBufferSize in class CoreServiceLayerdrcl.inet.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_)
CoreServiceLayersetMTU in class CoreServiceLayerpublic void setMTUs(int mtu_)
CoreServiceLayersetMTUs in class CoreServiceLayerpublic int getMTU(int ifindex_)
CoreServiceLayergetMTU in class CoreServiceLayer
public void setInterfaceInfo(int ifindex_,
InterfaceInfo if_)
CoreServiceLayersetInterfaceInfo in class CoreServiceLayerpublic void setInterfaceInfos(InterfaceInfo[] aa_)
CoreServiceLayersetInterfaceInfos in class CoreServiceLayerpublic InterfaceInfo getInterfaceInfo(int ifindex_)
CoreServiceLayergetInterfaceInfo in class CoreServiceLayerpublic InterfaceInfo[] getInterfaceInfos()
CoreServiceLayergetInterfaceInfos in class CoreServiceLayerpublic int getNumOfInterfaces()
CoreServiceLayergetNumOfInterfaces in class CoreServiceLayerpublic int getNumOfPhysicalInterfaces()
CoreServiceLayergetNumOfPhysicalInterfaces in class CoreServiceLayer
public void addRTEntry(RTKey key_,
RTEntry entry_,
double timeout_)
CoreServiceLayeraddRTEntry in class CoreServiceLayerpublic void removeRTEntry(RTKey key_)
CoreServiceLayerremoveRTEntry in class CoreServiceLayerprotected void portAdded(Port p_)
CoreServiceLayerportAdded in class CoreServiceLayer
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 CoreServiceLayerprotected Port[][] getNAMPacketEventPorts()
CoreServiceLayergetNAMPacketEventPorts in class CoreServiceLayer
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||