#include <uwem-channel.h>
UwElectroMagneticChannel extends Miracle channel class and implements the underwater optical channel.
Definition at line 50 of file uwem-channel.h.
◆ UwElectroMagneticChannel()
UwElectroMagneticChannel::UwElectroMagneticChannel |
( |
| ) |
|
◆ ~UwElectroMagneticChannel()
virtual UwElectroMagneticChannel::~UwElectroMagneticChannel |
( |
| ) |
|
|
inlinevirtual |
◆ command()
int UwElectroMagneticChannel::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Definition at line 80 of file uwem-channel.cpp.
◆ getPropDelay()
double UwElectroMagneticChannel::getPropDelay |
( |
Position * |
s, |
|
|
Position * |
d |
|
) |
| |
|
protectedvirtual |
Returns the underwater optical propagation delay between the two given Position pointers.
- Parameters
-
Position* | s pointer to the first Position object |
Position* | d pointer to the second Position object |
- Returns
- underwater optical propagation delay [s]
Definition at line 120 of file uwem-channel.cpp.
◆ recv()
void UwElectroMagneticChannel::recv |
( |
Packet * |
p, |
|
|
ChSAP * |
chsap |
|
) |
| |
|
virtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet received. |
ChSAP* | Pointer to the channel Service Access Point (SAP) |
Definition at line 114 of file uwem-channel.cpp.
◆ sendUpPhy()
void UwElectroMagneticChannel::sendUpPhy |
( |
Packet * |
p, |
|
|
ChSAP * |
chsap |
|
) |
| |
|
protected |
Sends the given Packet* to the upper PHY layer.
- Parameters
-
Packet* | Pointer to the packet received. |
ChSAP* | Pointer to the channel Service Access Point (SAP) |
Definition at line 87 of file uwem-channel.cpp.
◆ refractive_index
double UwElectroMagneticChannel::refractive_index |
|
protected |
refractive index of the underwater medium.
Definition at line 104 of file uwem-channel.h.
◆ speed_of_light
double UwElectroMagneticChannel::speed_of_light |
|
protected |
Speed of light in the underwater medium.
Definition at line 105 of file uwem-channel.h.
The documentation for this class was generated from the following files: