114 <<
"::" <<
module << "(" << ID << ")::" << message << endl;
Header of the class needed by UWMPhy_modem to handle the different transmissions cases and correspond...
enum LOG_LEVEL log_level_t
Header of the main class that implements the general interface between ns2/NS-Miracle and real acoust...
The main class implementing the module used to implement the interface between ns2/NS-Miracle and rea...
unsigned long int getEpoch()
Calculate the epoch of the event.
std::string getLogFile()
Method to return the name of the file where to log messages.
log_level_t getLogLevel()
Method to return the flag used to enable the printing of log messages in UWMPhy_modem::logFile.
int getID()
Method to return the node ID.
int getDebug()
Method to return the flag used to enable debug messages.
The class needed by UWMPhy_modem to manage string exchange with the modem.
void setDriverQueueLength(int length)
void updateRx(int, int, std::string)
Method to write in UWMdriver::payload_rx, UWMdriver::src and UWMdriver::dstPktRx.
UWMdriver(UWMPhy_modem *)
Class constructor.
void updateTx(int, std::string)
Method to update the values of both UWMdriver::payload_tx and UWMdriver::dest.
log_level_t getLogLevel()
Method to return the flag used to enable the printing of log messages in UWMPhy_modem::logFile.
std::string payload_tx
String where to save the payload of the next packet to send via modem.
UWMconnector * pmConnector
pointer to the object that handles the physical transmission and reception of acoustic packets
std::string getLogFile()
Method to return the name of the disk-fiel used to print the log messages.
int dest
Variable where to save the destination ID of the next packet to send via modem.
int debug_
Flag to enable debug mode (i.e., printing of debug messages) if set to 1.
bool SetModemID
Variable to decide whether the interface has to set the acoustic ID of the modem or not.
void printOnLog(log_level_t log_level, std::string module, std::string message)
int src
Variable storing the source ID of the last packet received via modem.
UWMinterpreter * pmInterpreter
pointer to the object that builds/parses the necessary messages to make UWMdriver able to communicate...
void setConnections(UWMinterpreter *, UWMconnector *)
Link connector.
int dstPktRx
Variable where to save the destination ID of the last packet received via modem.
void resetModemStatus()
Method to reset the modem status.
UWMPhy_modem * pmModem
link to the UWMPhy_modem object that contains this driver
std::ofstream outLog
output strem to print into a disk-file log messages.
modem_state_t status
Status of the driver's general state machine.
std::string payload_rx
String where to save the payload of the last packet received via modem.
~UWMdriver()
Class destructor.
This class is in charge of building/parsing the necessary messages to make the UWMdriver able to comm...