Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

Timer Class Reference

#include <netelem.h>

Inheritance diagram for Timer:

Event List of all members.

Public Types

typedef void(NetElement::* TimerHandler )(timeunits, Packet *)

Public Member Functions

 Timer (timeunits t, unsigned int id, NetElement *to, TimerHandler th, Packet *p)

Detailed Description

Timer event. Each Timer is associated to a Packet, to a NetElement that is expected to receive this packet when the Timer expires, and to a handling member function in the NetElement that will handle the Packet.


Member Typedef Documentation

typedef void(NetElement::* Timer::TimerHandler)(timeunits, Packet *)
 

Handling function, takes an instant, a (pointer to a) packet and returns a (pointer to a) NetElement.


Constructor & Destructor Documentation

Timer::Timer timeunits  t,
unsigned int  id,
NetElement to,
TimerHandler  th,
Packet p
 

Creates a timed event.

Parameters:
t time instant to fire the event
id unique event identifier
to pointer to the NetElement which is expected to receive the packet.
th handling function to be called, typically NetElement::Recv().
p pointer to the packet to be handled.


The documentation for this class was generated from the following files:
Generated on Fri Jan 19 15:35:17 2007 by  doxygen 1.4.2