Channel modeling interface for simulation.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addArrival(Reception rx) Adds a signal arrival at a modem in the channel. |
|
void |
addTx(Transmission tx) Adds a modem transmission in the channel. |
|
boolean |
canNeglect(Reception rx) Checks if a signal arrival is too weak to care about. |
|
void |
cancelArrival(Reception rx) Cancels a scheduled/ongoing signal arrival at the modem in the channel. |
|
void |
cancelTx(Transmission tx) Cancels a scheduled/ongoing modem transmission in the channel. |
|
float |
decodeRx(Reception rx) Checks if the reception can be decoded by the modem. |
|
boolean |
detectRx(Reception rx) Checks if the reception can be detected by the modem. |
|
float |
getCarrierFrequency() Gets the carrier frequency (kHz) in the channel. |
|
float |
getSoundSpeed() Gets the mean sound speed in the channel. |
|
void |
setTimestampProvider(TimestampProvider platform) Sets the time provider used to get current time. |
Adds a signal arrival at a modem in the channel.
rx
- reception details.Adds a modem transmission in the channel.
tx
- transmission details.Checks if a signal arrival is too weak to care about.
rx
- reception details.Cancels a scheduled/ongoing signal arrival at the modem in the channel. This happens when the transmitter aborts the relevant transmission.
rx
- reception details.Cancels a scheduled/ongoing modem transmission in the channel.
tx
- transmission details.Checks if the reception can be decoded by the modem. This method is called when a modem stops receiving a frame.
rx
- reception details.Checks if the reception can be detected by the modem. This method is called when a modem is about to start receiving a frame.
rx
- reception details.Gets the carrier frequency (kHz) in the channel.
Gets the mean sound speed in the channel.
Sets the time provider used to get current time.
platform
- time provider.