public abstract class AbstractAcousticChannel
Base class for implementing acoustic channel models.
Modifiers | Name | Description |
---|---|---|
protected TimestampProvider |
clock |
|
protected Logger |
log |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addArrival(Reception rx) |
|
void |
addTx(Transmission tx) |
|
boolean |
canNeglect(Reception rx) |
|
void |
cancelArrival(Reception rx) |
|
void |
cancelTx(Transmission tx) |
|
protected int |
decode(Reception rx, double snr) Simulates bit errors in a reception. |
|
float |
decodeRx(Reception rx) |
|
protected boolean |
detect(Reception rx, double snr) Simulates detection for a reception. |
|
boolean |
detectRx(Reception rx) |
|
double |
getBandwidth() Gets the bandwidth of the communication signal. |
|
double |
getIrreduciblePER() Gets the irreducible packet error rate (PER). |
|
protected double |
getNoisePower() Computes total noise power. |
|
protected double |
getRxPower(Reception rx) Computes received signal power in a reception. |
|
void |
setBandwidth(double bandwidth) Sets the bandwidth of the communication signal. |
|
void |
setIrreduciblePER(double iper) Sets the irreducible packet error rate (PER). |
|
void |
setTimestampProvider(TimestampProvider platform) |
Simulates bit errors in a reception.
rx
- received framesnr
- signal-to-noise ratioSimulates detection for a reception.
rx
- received framesnr
- signal-to-noise ratioGets the bandwidth of the communication signal.
Gets the irreducible packet error rate (PER).
Computes total noise power.
Computes received signal power in a reception.
rx
- received frameSets the bandwidth of the communication signal.
bandwidth
- bandwidth in HzSets the irreducible packet error rate (PER).
iper
- minimum PER