dtnsim::SimEvent Class Reference

#include <SimEvent.h>

Inheritance diagram for dtnsim::SimEvent:

dtnsim::SimAtEvent dtnsim::SimBundleEvent

List of all members.

Public Member Functions

 SimEvent (sim_event_type_t type, double time, SimEventHandler *handler)
 Constructor.
SimEventHandlerhandler ()
double time ()
bool is_valid ()
sim_event_type_t type ()
const char * type_str ()
void cancel ()

Private Attributes

sim_event_type_t type_
 Type of the event.
double time_
 Time when the event will fire.
SimEventHandlerhandler_
 Handler that will process the event.
bool valid_
 Indicator if the event was cancelled.


Detailed Description

Definition at line 54 of file SimEvent.h.


Constructor & Destructor Documentation

dtnsim::SimEvent::SimEvent ( sim_event_type_t  type,
double  time,
SimEventHandler handler 
) [inline]

Constructor.

Definition at line 59 of file SimEvent.h.


Member Function Documentation

void dtnsim::SimEvent::cancel (  )  [inline]

Definition at line 68 of file SimEvent.h.

References valid_.

SimEventHandler* dtnsim::SimEvent::handler (  )  [inline]

Definition at line 62 of file SimEvent.h.

References handler_.

Referenced by dtnsim::Simulator::run().

bool dtnsim::SimEvent::is_valid (  )  [inline]

Definition at line 64 of file SimEvent.h.

References valid_.

Referenced by dtnsim::Simulator::run().

double dtnsim::SimEvent::time (  )  [inline]

Definition at line 63 of file SimEvent.h.

References time_.

Referenced by dtnsim::SimEventCompare::operator()(), and dtnsim::Simulator::run().

sim_event_type_t dtnsim::SimEvent::type (  )  [inline]

Definition at line 65 of file SimEvent.h.

References type_.

Referenced by dtnsim::Simulator::process(), and dtnsim::Node::process().

const char* dtnsim::SimEvent::type_str (  )  [inline]

Definition at line 66 of file SimEvent.h.

References dtnsim::sim_ev2str(), and type_.

Referenced by dtnsim::Simulator::run().


Member Data Documentation

Handler that will process the event.

Definition at line 73 of file SimEvent.h.

Referenced by handler().

double dtnsim::SimEvent::time_ [private]

Time when the event will fire.

Definition at line 72 of file SimEvent.h.

Referenced by time().

Type of the event.

Definition at line 71 of file SimEvent.h.

Referenced by type(), and type_str().

Indicator if the event was cancelled.

Definition at line 74 of file SimEvent.h.

Referenced by cancel(), and is_valid().


The documentation for this class was generated from the following file:

Generated on Fri Jan 30 09:43:15 2009 for DTN Reference Implementation by  doxygen 1.5.8