DUNE: Uniform Navigational Environment  2019.02.1
Simulators::Leaks::Task Struct Reference

Public Types

typedef std::vector< Entities::StatefulEntity * > LeakSet
 

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceInitialization (void)
 
void onUpdateParameters (void)
 
void onEntityReservation (void)
 
void onReportEntityState (void)
 
void consume (const IMC::LeakSimulation *ls)
 
void setStatus (const std::vector< std::string > &v, bool ok)
 
void setStatus (bool ok)
 
void onMain (void)
 

Public Attributes

Arguments m_args
 
LeakSet m_leaks
 

Member Typedef Documentation

typedef std::vector<Entities::StatefulEntity*> Simulators::Leaks::Task::LeakSet

Leak set.

Constructor & Destructor Documentation

Simulators::Leaks::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Simulators::Leaks::Task::consume ( const IMC::LeakSimulation *  ls)
inline
void Simulators::Leaks::Task::onEntityReservation ( void  )
inline
void Simulators::Leaks::Task::onMain ( void  )
inline
void Simulators::Leaks::Task::onReportEntityState ( void  )
inline
void Simulators::Leaks::Task::onResourceInitialization ( void  )
inline
void Simulators::Leaks::Task::onUpdateParameters ( void  )
inline
void Simulators::Leaks::Task::setStatus ( const std::vector< std::string > &  v,
bool  ok 
)
inline

Set status for leak sensors in a given vector.

Parameters
[in]vvector of leak sensors.
[in]okdiscrete state.
void Simulators::Leaks::Task::setStatus ( bool  ok)
inline

Set status for all leak sensors.

Parameters
[in]okdiscrete state.

Member Data Documentation

Arguments Simulators::Leaks::Task::m_args

Task arguments.

LeakSet Simulators::Leaks::Task::m_leaks
Collaboration diagram for Simulators::Leaks::Task:
Collaboration graph