DUNE: Uniform Navigational Environment  2019.02.0
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

References onResourceRelease().

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

References m_sound_speed, and m_sound_speed_eid.

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

References clearTicket(), and m_driver.

Referenced by consume().

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

References m_modem_names.

Referenced by consume().

std::string Transports::Evologics::Task::lookupSystemName ( unsigned  addr)
inline

References m_modem_addrs.

Referenced by handleMessageDelivered(), and safeLookup().

void Transports::Evologics::Task::onEntityResolution ( void  )
inline
void Transports::Evologics::Task::onMain ( void  )
inline

References keepAlive().

void Transports::Evologics::Task::onResourceAcquisition ( void  )
inline
void Transports::Evologics::Task::onResourceRelease ( void  )
inline

References clearTicket(), m_driver, and m_sock.

Referenced by ~Task().

void Transports::Evologics::Task::onUpdateParameters ( void  )
inline
void Transports::Evologics::Task::replaceTicket ( const Ticket ticket)
inline

References clearTicket(), and m_ticket.

Referenced by consume().

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.

Referenced by handleInstantMessage(), and onResourceInitialization().

Arguments Transports::Evologics::Task::m_args
bool Transports::Evologics::Task::m_declination

Declination flag;.

Referenced by consume().

Counter<double> Transports::Evologics::Task::m_kalive_counter

Keep-alive counter.

Referenced by consume(), keepAlive(), and onResourceInitialization().

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

Medium.

Referenced by consume(), and Task().

MapAddr Transports::Evologics::Task::m_modem_addrs

Map of Evologics modems by address.

Referenced by lookupSystemName(), and onResourceInitialization().

MapName Transports::Evologics::Task::m_modem_names

Map of Evologics modems by name.

Referenced by lookupSystemAddress(), and onResourceInitialization().

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

TCP socket.

Referenced by onResourceAcquisition(), and onResourceRelease().

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

Sound speed entity id.

Referenced by consume(), and onEntityResolution().

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

Current transmission ticket.

Referenced by clearTicket(), handleMessageDelivered(), handleSendEnd(), and replaceTicket().

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