39#ifndef UW_EM_CHANNEL_H
40#define UW_EM_CHANNEL_H
42#include <channel-module.h>
72 virtual void recv(Packet *p, ChSAP *chsap);
84 virtual int command(
int argc,
const char *
const *argv);
UwElectroMagneticChannel extends Miracle channel class and implements the underwater optical channel.
virtual void recv(Packet *p, ChSAP *chsap)
Performs the reception of packets from upper and lower layers.
void sendUpPhy(Packet *p, ChSAP *chsap)
Sends the given Packet* to the upper PHY layer.
double refractive_index
refractive index of the underwater medium.
UwElectroMagneticChannel()
Constructor of UwElectroMagneticChannel class.
virtual ~UwElectroMagneticChannel()
Destructor of UwElectroMagneticChannel class.
virtual int command(int argc, const char *const *argv)
TCL command interpreter.
virtual double getPropDelay(Position *s, Position *d)
Returns the underwater optical propagation delay between the two given Position pointers.
double speed_of_light
Speed of light in the underwater medium.