#include <uwem-channel.h>
UwElectroMagneticChannel extends Miracle channel class and implements the underwater optical channel
◆ 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.
◆ 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]
References speed_of_light.
Referenced by sendUpPhy().
◆ 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) |
References sendUpPhy().
◆ 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) |
References getPropDelay().
Referenced by recv().
◆ refractive_index
| double UwElectroMagneticChannel::refractive_index |
|
protected |
◆ speed_of_light
| double UwElectroMagneticChannel::speed_of_light |
|
protected |
The documentation for this class was generated from the following files: