DUNE: Uniform Navigational Environment  2016.09.0
Supervisors::Power::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceInitialization (void)
 
void consume (const IMC::PowerChannelControl *msg)
 
void consume (const IMC::PowerOperation *msg)
 
void powerDown (void)
 
void powerDownAbort (void)
 
bool powerDownCommand (void)
 
bool powerDownAbortCommand (void)
 
void notifySlaves (IMC::PowerOperation::OperationEnum op)
 
void controlSystemPower (IMC::PowerChannelControl::OperationEnum op)
 
bool powerDownInProgress (void)
 
bool powerDownAborted (void)
 
void onMain (void)
 

Public Attributes

std::set< uint16_t > m_notified_slaves
 
int m_power_op
 
Arguments m_args
 

Constructor & Destructor Documentation

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

Member Function Documentation

void Supervisors::Power::Task::consume ( const IMC::PowerChannelControl *  msg)
inline
void Supervisors::Power::Task::consume ( const IMC::PowerOperation *  msg)
inline

References m_power_op.

void Supervisors::Power::Task::controlSystemPower ( IMC::PowerChannelControl::OperationEnum  op)
inline
void Supervisors::Power::Task::notifySlaves ( IMC::PowerOperation::OperationEnum  op)
inline
void Supervisors::Power::Task::onMain ( void  )
inline
void Supervisors::Power::Task::onResourceInitialization ( void  )
inline
void Supervisors::Power::Task::powerDown ( void  )
inline
void Supervisors::Power::Task::powerDownAbort ( void  )
inline
bool Supervisors::Power::Task::powerDownAbortCommand ( void  )
inline
bool Supervisors::Power::Task::powerDownAborted ( void  )
inline

References m_power_op.

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

bool Supervisors::Power::Task::powerDownCommand ( void  )
inline
bool Supervisors::Power::Task::powerDownInProgress ( void  )
inline

References m_power_op.

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

Member Data Documentation

Arguments Supervisors::Power::Task::m_args
std::set<uint16_t> Supervisors::Power::Task::m_notified_slaves

Set of slave system not yet powered-off.

Referenced by consume(), notifySlaves(), powerDown(), and powerDownAbort().

int Supervisors::Power::Task::m_power_op

Last power operation.

Referenced by consume(), powerDown(), powerDownAbort(), powerDownAborted(), and powerDownInProgress().

Collaboration diagram for Supervisors::Power::Task:
Collaboration graph