World Ocean Simulation System (WOSS) library
uw-woss-channel.h
Go to the documentation of this file.
1/* WOSS - World Ocean Simulation System -
2 *
3 * Copyright (C) 2009 2025 Federico Guerra
4 * and regents of the SIGNET lab, University of Padova
5 *
6 * Author: Federico Guerra - WOSS@guerra-tlc.com
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation;
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22
33#ifndef UW_WOSS_CHANNEL_H
34#define UW_WOSS_CHANNEL_H
35
36
37#include <channel-module.h>
38#include <underwater.h>
39#include <woss-manager.h>
40
41
43
44
50class WossChannelModule : public ChannelModule {
51
52 public:
53
55
56 virtual ~WossChannelModule() override = default;
57
58 virtual int command(int argc, const char*const* argv) override;
59
60 virtual void recv(Packet* p, ChSAP* chsap) override;
61
62 protected:
63
64 using ChSAPVector = std::vector< ChSAP* >;
65
66 double getPropDelay( const woss::CoordZ& s, const woss::CoordZ& d);
67
69
70 woss::SimFreq computeSimFreq( Packet* p );
71
73
74 void checkTimeArrVector( const woss::CoordZPairVect& coords, woss::TimeArrVector& channels );
75
76 void schedulePacketCopies( const woss::CoordZPairVect& coords, const woss::TimeArrVector& channels, const woss::SimFreq& sim_freq, Packet* p );
77
78 void deleteChannels( woss::TimeArrVector& channels );
79
80
82
84
86
88
89 double channel_max_distance; // [m]
90
92
94
95 Underwater uw;
96
98
99};
100
101#endif /* UW_WOSS_CHANNEL_H */
Class for channel estimation and averaging.
Definition uw-woss-channel-estimator.h:48
WossChannelModule class for channel calculations with WOSS.
Definition uw-woss-channel.h:50
double getPropDelay(const woss::CoordZ &s, const woss::CoordZ &d)
Definition uw-woss-channel.cpp:369
std::vector< ChSAP * > ChSAPVector
Definition uw-woss-channel.h:64
virtual ~WossChannelModule() override=default
void checkTimeArrVector(const woss::CoordZPairVect &coords, woss::TimeArrVector &channels)
Definition uw-woss-channel.cpp:234
woss::SimFreq computeSimFreq(Packet *p)
Definition uw-woss-channel.cpp:212
double channel_max_distance
Definition uw-woss-channel.h:89
double channel_eq_time
Definition uw-woss-channel.h:85
void deleteChannels(woss::TimeArrVector &channels)
Definition uw-woss-channel.cpp:365
double channel_eq_snr_threshold_db
Definition uw-woss-channel.h:81
virtual int command(int argc, const char *const *argv) override
Definition uw-woss-channel.cpp:82
double channel_eq_attenuation_db
Definition uw-woss-channel.h:87
woss::WossManager * woss_manager
Definition uw-woss-channel.h:91
virtual void recv(Packet *p, ChSAP *chsap) override
Definition uw-woss-channel.cpp:112
woss::CoordZPairVect computeCoordZPairVect(ChSAP *dest)
Definition uw-woss-channel.cpp:158
void schedulePacketCopies(const woss::CoordZPairVect &coords, const woss::TimeArrVector &channels, const woss::SimFreq &sim_freq, Packet *p)
Definition uw-woss-channel.cpp:328
Underwater uw
Definition uw-woss-channel.h:95
WossChannelModule()
Definition uw-woss-channel.cpp:57
ChannelEstimator * channel_estimator
Definition uw-woss-channel.h:93
woss::TimeArrVector computeTimeArrVector(const woss::CoordZPairVect &coords, const woss::SimFreq &sim_freq)
Definition uw-woss-channel.cpp:229
ChSAPVector chsap_vector
Definition uw-woss-channel.h:97
double channel_symbol_resolution
Definition uw-woss-channel.h:83
3D-Coordinates (lat, long, depth) class definitions and functions library
Definition coordinates-definitions.h:384
Abstract class that interfaces Pressure or TimeArr requests from user layer.
Definition woss-manager.h:90
std::vector< CoordZPair > CoordZPairVect
Definition woss-manager.h:61
std::pair< double, double > SimFreq
Definition woss-manager.h:66
std::vector< std::unique_ptr< TimeArr > > TimeArrVector
Definition woss-manager.h:81
Provides the interface for woss::WossManager, woss::WossManagerResDb and woss::WossManagerResDbMT cla...