DUNE: Uniform Navigational Environment  2019.02.1
Transports::Evologics::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
 ~Task (void)
 
void onEntityResolution (void)
 
void onUpdateParameters (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void onResourceInitialization (void)
 
unsigned lookupSystemAddress (const std::string &name)
 
std::string lookupSystemName (unsigned addr)
 
std::string safeLookup (unsigned addr)
 
void consume (const IMC::GpsFix *msg)
 
void consume (const IMC::SoundSpeed *msg)
 
void consume (const IMC::VehicleMedium *msg)
 
void consume (const IMC::DevDataText *msg)
 
void clearTicket (IMC::UamTxStatus::ValueEnum reason, const std::string &error="")
 
void replaceTicket (const Ticket &ticket)
 
void sendTxStatus (const Ticket &ticket, IMC::UamTxStatus::ValueEnum value, const std::string &error="")
 
void consume (const IMC::UamTxFrame *msg)
 
void transmitData (const uint8_t *data, unsigned data_size, Ticket &ticket)
 
void handleMessageFailed (const std::string &str)
 
void handleMessageDelivered (const std::string &str)
 
void handleSendEnd (const std::string &str)
 
void handleInstantMessage (const std::string &str, bool piggyback)
 
void handleBurstMessage (const std::string &str)
 
void handleUsblPosition (const std::string &str)
 
void handleUsblAngles (const std::string &str)
 
void keepAlive (void)
 
void onMain (void)
 

Public Attributes

MapName m_modem_names
 
MapAddr m_modem_addrs
 
TCPSocket * m_sock
 
unsigned m_address
 
Driverm_driver
 
double m_sound_speed
 
int m_sound_speed_eid
 
bool m_declination
 
Ticketm_ticket
 
Counter< double > m_kalive_counter
 
IMC::VehicleMedium m_medium
 
Arguments m_args
 

Constructor & Destructor Documentation

Transports::Evologics::Task::~Task ( void  )
inline

Member Function Documentation

void Transports::Evologics::Task::clearTicket ( IMC::UamTxStatus::ValueEnum  reason,
const std::string &  error = "" 
)
inline
void Transports::Evologics::Task::consume ( const IMC::GpsFix *  msg)
inline
void Transports::Evologics::Task::consume ( const IMC::SoundSpeed *  msg)
inline
void Transports::Evologics::Task::consume ( const IMC::DevDataText *  msg)
inline
void Transports::Evologics::Task::handleMessageDelivered ( const std::string &  str)
inline
void Transports::Evologics::Task::handleMessageFailed ( const std::string &  str)
inline
void Transports::Evologics::Task::handleSendEnd ( const std::string &  str)
inline
void Transports::Evologics::Task::handleUsblAngles ( const std::string &  str)
inline
void Transports::Evologics::Task::handleUsblPosition ( const std::string &  str)
inline
void Transports::Evologics::Task::keepAlive ( void  )
inline
unsigned Transports::Evologics::Task::lookupSystemAddress ( const std::string &  name)
inline
std::string Transports::Evologics::Task::lookupSystemName ( unsigned  addr)
inline
void Transports::Evologics::Task::onEntityResolution ( void  )
inline
void Transports::Evologics::Task::onMain ( void  )
inline
void Transports::Evologics::Task::onResourceAcquisition ( void  )
inline
void Transports::Evologics::Task::onResourceRelease ( void  )
inline
void Transports::Evologics::Task::onUpdateParameters ( void  )
inline
void Transports::Evologics::Task::replaceTicket ( const Ticket ticket)
inline
std::string Transports::Evologics::Task::safeLookup ( unsigned  addr)
inline
void Transports::Evologics::Task::sendTxStatus ( const Ticket ticket,
IMC::UamTxStatus::ValueEnum  value,
const std::string &  error = "" 
)
inline

Member Data Documentation

unsigned Transports::Evologics::Task::m_address

Modem address.

Arguments Transports::Evologics::Task::m_args

Task arguments.

bool Transports::Evologics::Task::m_declination

Declination flag;.

Driver* Transports::Evologics::Task::m_driver
Counter<double> Transports::Evologics::Task::m_kalive_counter

Keep-alive counter.

IMC::VehicleMedium Transports::Evologics::Task::m_medium

Medium.

MapAddr Transports::Evologics::Task::m_modem_addrs

Map of Evologics modems by address.

MapName Transports::Evologics::Task::m_modem_names

Map of Evologics modems by name.

TCPSocket* Transports::Evologics::Task::m_sock

TCP socket.

double Transports::Evologics::Task::m_sound_speed
int Transports::Evologics::Task::m_sound_speed_eid

Sound speed entity id.

Ticket* Transports::Evologics::Task::m_ticket

Current transmission ticket.

Collaboration diagram for Transports::Evologics::Task:
Collaboration graph