m2etis  0.4
m2etis::sim::OmNetClock Class Reference

#include <OmNetClock.h>

Public Member Functions

 OmNetClock (const boost::function< void(void)> &f)
 constructor receiving update method of Clock subclass More...
 
 ~OmNetClock ()
 destructor More...
 
long getCurrentTime (long lastTime)
 returns current time of the simulation More...
 
void setSim (OmNetCallbackInterface *sim)
 sets pointer to simulation module More...
 
void Stop ()
 stops the clock More...
 

Detailed Description

Definition at line 32 of file OmNetClock.h.

Constructor & Destructor Documentation

m2etis::sim::OmNetClock::OmNetClock ( const boost::function< void(void)> &  f)
explicit

constructor receiving update method of Clock subclass

Parameters
[in]fthe update method of the Clock subclass, not necessary here
m2etis::sim::OmNetClock::~OmNetClock ( )

destructor

Member Function Documentation

long m2etis::sim::OmNetClock::getCurrentTime ( long  lastTime)

returns current time of the simulation

Parameters
[in]lastTimethe time the last update occured
void m2etis::sim::OmNetClock::setSim ( OmNetCallbackInterface sim)
inline

sets pointer to simulation module

Parameters
[in]simpointer to the simulation module

Definition at line 58 of file OmNetClock.h.

void m2etis::sim::OmNetClock::Stop ( )
inline

stops the clock

Definition at line 65 of file OmNetClock.h.


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