atropos.lp
Class AvnmpBW

java.lang.Object
  |
  +--magician.Node.KUSmartPacketV2
        |
        +--atropos.lp.AvnmpBase
              |
              +--atropos.lp.AvnmpBW
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable
Direct Known Subclasses:
AvnmpPacket

public class AvnmpBW
extends AvnmpBase

This class implements methods for calculating bandwidth.

This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.

Version:
$Revision: 1.1.1.1 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

Field Summary
protected  snmp.agent.AppCommunicator context
          Allow the packet to be SNMP managable.
 
Fields inherited from class magician.Node.KUSmartPacketV2
CPU_Requirements, Destination_Address, halted, IO_BW_Requirements, Memory_Requirements, NextHop, PacketID, Source_Address, thisNode, TypeID
 
Constructor Summary
AvnmpBW()
           
 
Method Summary
 void exec()
          This is the main processing for this active packet.
protected  long queueSize(int port)
          Incoming Active Node Queue size.
protected  double recvRate()
          This method returns the total number of bytes received by this node divided by the total amount of time this node has been running.
protected  double xmitRate()
          This method returns the total number of bytes transmitted by this node divided by the total amount of time this node has been running.
 
Methods inherited from class magician.Node.KUSmartPacketV2
AcquireSmallState, build, CreateSmallState, describeComponents, DestroySmallState, GetCanonicalAddress, getExecTime, GetLinkLayerAddress, GetNetName, GetNextHop, GetNodeName, GetNumberOfHops, GetService, GetSmallState, GetSmallState, getSourceAddress, getTypeId, halt, pathNotFound, run, SendForProcessing, SendSmartPacket, SendSmartPacket, SetSmallState, sleep, stop, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected transient snmp.agent.AppCommunicator context
Allow the packet to be SNMP managable.
Constructor Detail

AvnmpBW

public AvnmpBW()
Method Detail

queueSize

protected long queueSize(int port)
Incoming Active Node Queue size. This is an accumulator of all packets received since startup.
Parameters:
port - The receive port number.
Returns:
The current incoming queue size.

xmitRate

protected double xmitRate()
This method returns the total number of bytes transmitted by this node divided by the total amount of time this node has been running.
Returns:
The transmit bandwidth used.

recvRate

protected double recvRate()
This method returns the total number of bytes received by this node divided by the total amount of time this node has been running.
Returns:
The receive bandwidth used.

exec

public void exec()
This is the main processing for this active packet. The primary task is to add itself to the receiving node's input queue.
Overrides:
exec in class magician.Node.KUSmartPacketV2


Copyright © 2002 GE Corporate Research and Development. All Rights Reserved.