public class ProtocolChannelModel
Protocol channel model. This channel model ignores power level settings and assumes constant performance with range until the communication range. It also assumes that any collision within the interference range causes a frame to be lost. The performance can be characterized by a probability of frame detection and probability of successful decoding.
Modifiers | Name | Description |
---|---|---|
float |
communicationRange |
Maximum distance for successful communication (meters). |
float |
detectionRange |
Maximum distance for detection of frame (meters). |
float |
fc |
Carrier frequency (kHz). |
float |
interferenceRange |
Maximum distance for interference from a source (meters). |
float |
pDecoding |
Probability of successful decoding of frame, when within communication range. |
float |
pDetection |
Probability of frame detection, when within detection range. |
float |
soundSpeed |
Sound speed (m/s). |
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) |
|
float |
decodeRx(Reception rx) |
|
boolean |
detectRx(Reception rx) |
|
float |
getCarrierFrequency() |
|
double |
getNoisePower() |
|
protected float |
getProbabilityDecoding(Reception rx) Returns the probability of decoding for a given reception. |
|
protected float |
getProbabilityDetection(Reception rx) Returns the probability of detection for a given reception. |
|
double |
getRxPower(Reception rx) |
|
float |
getSoundSpeed() |
|
void |
setTimestampProvider(TimestampProvider platform) |
Maximum distance for successful communication (meters).
Maximum distance for detection of frame (meters).
Carrier frequency (kHz).
Maximum distance for interference from a source (meters).
Probability of successful decoding of frame, when within communication range.
Probability of frame detection, when within detection range.
Sound speed (m/s).
Returns the probability of decoding for a given reception. The default implementation simply returns pDecoding. However, a child class may override this method to provide a link-dependent probability.
rx
- receptionReturns the probability of detection for a given reception. The default implementation simply returns pDetection. However, a child class may override this method to provide a link-dependent probability.
rx
- reception