DUNE: Uniform Navigational Environment  2016.05.0
Supervisors::Delegator::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
bool onWriteParamsXML (std::ostream &os) const
 
void onUpdateParameters (void)
 
void onResourceInitialization (void)
 
void consume (const IMC::EntityParameters *msg)
 
void onQueryEntityParameters (const IMC::QueryEntityParameters *msg)
 
void onSetEntityParameters (const IMC::SetEntityParameters *msg)
 
void sendActiveParameter (const std::string &value)
 
void onRequestActivation (void)
 
void onRequestDeactivation (void)
 
bool isFromSurrogate (const IMC::Message *msg)
 
void consume (const IMC::EntityInfo *msg)
 
void consume (const IMC::EntityState *msg)
 
void consume (const IMC::EntityActivationState *msg)
 
void queryEntityInfo (void)
 
void relayFrom (const IMC::Message *msg)
 
void relayTo (const IMC::Message *msg)
 
void onMain (void)
 

Public Attributes

unsigned m_sid
 
unsigned m_eid
 
Counter< double > m_query_info_timer
 
Arguments m_args
 

Constructor & Destructor Documentation

Supervisors::Delegator::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Supervisors::Delegator::Task::consume ( const IMC::EntityParameters *  msg)
inline

References isFromSurrogate(), and relayFrom().

void Supervisors::Delegator::Task::consume ( const IMC::EntityInfo *  msg)
inline
void Supervisors::Delegator::Task::consume ( const IMC::EntityState *  msg)
inline

References isFromSurrogate().

void Supervisors::Delegator::Task::consume ( const IMC::EntityActivationState *  msg)
inline

References isFromSurrogate().

bool Supervisors::Delegator::Task::isFromSurrogate ( const IMC::Message *  msg)
inline

References m_eid, and m_sid.

Referenced by consume().

void Supervisors::Delegator::Task::onMain ( void  )
inline
void Supervisors::Delegator::Task::onQueryEntityParameters ( const IMC::QueryEntityParameters *  msg)
inline

References relayTo().

void Supervisors::Delegator::Task::onRequestActivation ( void  )
inline

References sendActiveParameter().

void Supervisors::Delegator::Task::onRequestDeactivation ( void  )
inline

References sendActiveParameter().

void Supervisors::Delegator::Task::onResourceInitialization ( void  )
inline
void Supervisors::Delegator::Task::onSetEntityParameters ( const IMC::SetEntityParameters *  msg)
inline

References relayTo().

void Supervisors::Delegator::Task::onUpdateParameters ( void  )
inline
bool Supervisors::Delegator::Task::onWriteParamsXML ( std::ostream &  os) const
inline
void Supervisors::Delegator::Task::queryEntityInfo ( void  )
inline

References m_sid.

Referenced by onMain().

void Supervisors::Delegator::Task::relayFrom ( const IMC::Message *  msg)
inline

Referenced by consume().

void Supervisors::Delegator::Task::relayTo ( const IMC::Message *  msg)
inline

References m_sid.

Referenced by onQueryEntityParameters(), and onSetEntityParameters().

void Supervisors::Delegator::Task::sendActiveParameter ( const std::string &  value)
inline

Member Data Documentation

Arguments Supervisors::Delegator::Task::m_args
unsigned Supervisors::Delegator::Task::m_eid

Surrogate entity id.

Referenced by consume(), isFromSurrogate(), and onMain().

Counter<double> Supervisors::Delegator::Task::m_query_info_timer

Referenced by onMain().

unsigned Supervisors::Delegator::Task::m_sid

Surrogate system id.

Referenced by consume(), isFromSurrogate(), onUpdateParameters(), queryEntityInfo(), and relayTo().

Collaboration diagram for Supervisors::Delegator::Task:
Collaboration graph