DUNE: Uniform Navigational Environment  2022.04.1
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 onPopEntityParameters (const IMC::PopEntityParameters *msg)
 
void onPushEntityParameters (const IMC::PushEntityParameters *msg)
 
void sendActiveParameter (const std::string &value)
 
void onRequestActivation (void)
 
void onRequestDeactivation (void)
 
bool isFromSurrogate (const IMC::Message *msg)
 
void consume (const IMC::PowerChannelState *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
 
Counter< double > m_countdown
 
IMC::PowerChannelControl m_pcc
 
IMC::PowerChannelState m_pcs
 
bool m_activating
 
bool m_deactivating
 
IMC::PushEntityParameters m_push
 
IMC::EntityState m_estate
 
Arguments m_args
 

Constructor & Destructor Documentation

◆ Task()

Member Function Documentation

◆ consume() [1/5]

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

◆ consume() [2/5]

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

◆ consume() [3/5]

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

◆ consume() [4/5]

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

◆ consume() [5/5]

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

◆ isFromSurrogate()

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

◆ onMain()

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

◆ onPopEntityParameters()

void Supervisors::Delegator::Task::onPopEntityParameters ( const IMC::PopEntityParameters *  msg)
inline

◆ onPushEntityParameters()

void Supervisors::Delegator::Task::onPushEntityParameters ( const IMC::PushEntityParameters *  msg)
inline

◆ onQueryEntityParameters()

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

◆ onRequestActivation()

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

◆ onRequestDeactivation()

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

◆ onResourceInitialization()

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

◆ onSetEntityParameters()

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

◆ onUpdateParameters()

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

◆ onWriteParamsXML()

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

◆ queryEntityInfo()

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

◆ relayFrom()

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

◆ relayTo()

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

◆ sendActiveParameter()

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

Member Data Documentation

◆ m_activating

bool Supervisors::Delegator::Task::m_activating

True if task is activating.

◆ m_args

Arguments Supervisors::Delegator::Task::m_args

Task arguments.

◆ m_countdown

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

Activation/deactivation timer.

◆ m_deactivating

bool Supervisors::Delegator::Task::m_deactivating

True if task is deactivating.

◆ m_eid

unsigned Supervisors::Delegator::Task::m_eid

Surrogate entity id.

◆ m_estate

IMC::EntityState Supervisors::Delegator::Task::m_estate

Entity Parameter message.

◆ m_pcc

IMC::PowerChannelControl Supervisors::Delegator::Task::m_pcc

Power channel control.

◆ m_pcs

IMC::PowerChannelState Supervisors::Delegator::Task::m_pcs

Power channel state.

◆ m_push

IMC::PushEntityParameters Supervisors::Delegator::Task::m_push

PushEntityParameters message.

◆ m_query_info_timer

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

◆ m_sid

unsigned Supervisors::Delegator::Task::m_sid

Surrogate system id.

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