FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Functions Typedefs Pages
Public Member Functions | List of all members
fnss::Event Class Reference

#include <event.h>

+ Inheritance diagram for fnss::Event:

Public Member Functions

 Event (const Quantity &time_=Quantity("0sec", Units::Time))
 
Quantity getTime () const
 
void setTime (const Quantity &time_)
 
bool operator> (const Event &other) const
 
bool operator>= (const Event &other) const
 
bool operator< (const Event &other) const
 
bool operator<= (const Event &other) const
 
- Public Member Functions inherited from fnss::PropertyContainer
std::string getProperty (const std::string &name) const
 
void setProperty (const std::string &name, const std::string &value="")
 
bool hasProperty (const std::string &name) const
 
void addProperties (const PropertyContainer &other)
 
std::string removeProperty (const std::string &name)
 
std::set< std::string > getAllProperties () const
 

Detailed Description

Represent an event of an event schedule

Author
Cosmin Cocora

Constructor & Destructor Documentation

fnss::Event::Event ( const Quantity time_ = Quantity("0sec", Units::Time))

Constructor.

Parameters
timethe time at which the event occurs.

Member Function Documentation

Quantity fnss::Event::getTime ( ) const

Get method for the scheduled time of the event.

Returns
the time at which the event occurs.
void fnss::Event::setTime ( const Quantity time_)

Set method for the event's scheduled time.

Parameters
timethe time at which the event occurs.

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