DUNE: Uniform Navigational Environment  2016.05.0
Supervisors::Reporter::Dispatcher Class Reference

Detailed Description

Dispatcher class.

This class handles a vector of tickets. These tickets hold report information to issue single requests

Author
José Braga

Public Member Functions

 Dispatcher (void)
 
void add (const Ticket ticket)
 
void remove (const Ticket ticket)
 
void run (void)
 
void clear (void)
 
bool isEmpty (void)
 

Constructor & Destructor Documentation

Supervisors::Reporter::Dispatcher::Dispatcher ( void  )
inline

Constructor.

Member Function Documentation

void Supervisors::Reporter::Dispatcher::add ( const Ticket  ticket)
inline

Add tickets to dispatcher.

Parameters
[in]ticketticket with report information.

References Supervisors::Reporter::Ticket::getPeriod(), and Supervisors::Reporter::Ticket::isOperationStart().

Referenced by Supervisors::Reporter::Task::consume().

void Supervisors::Reporter::Dispatcher::clear ( void  )
inline

Clear dispatcher list.

bool Supervisors::Reporter::Dispatcher::isEmpty ( void  )
inline

Check if dispatcher is empty.

Returns
true if dispatcher is empty, false otherwise.

Referenced by Supervisors::Reporter::Task::consume(), and Supervisors::Reporter::Task::onUpdateParameters().

void Supervisors::Reporter::Dispatcher::remove ( const Ticket  ticket)
inline

Remove tickets from dispatcher.

Parameters
[in]ticketticket with report information.

Referenced by Supervisors::Reporter::Task::consume().

void Supervisors::Reporter::Dispatcher::run ( void  )
inline

Trigger through all tickets.

Referenced by Supervisors::Reporter::Task::onMain().

Collaboration diagram for Supervisors::Reporter::Dispatcher:
Collaboration graph