GNU Radio's OWC Package
OWC_Channel_absolute_two.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /* gr-owc OOT module for optical wireless communications.
3  *
4  * Copyright 2021 Arsalan Ahmed from The Ubiquitous Communications and Networking (UCAN) Lab, University of Massachusetts, Boston.
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3, or (at your option)
9  * any later version.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this software; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef INCLUDED_OWC_OWC_CHANNEL_ABSOLUTE_TWO_H
24 #define INCLUDED_OWC_OWC_CHANNEL_ABSOLUTE_TWO_H
25 
26 #include <owc/api.h>
27 #include <gnuradio/sync_block.h>
28 
29 namespace gr {
30  namespace owc {
31 
32  /*!
33  * \brief <+description of block+>
34  * \ingroup owc
35  *
36  */
37  class OWC_API OWC_Channel_absolute_two : virtual public gr::sync_block
38  {
39  public:
40  typedef boost::shared_ptr<OWC_Channel_absolute_two> sptr;
41 
42  /*!
43  * \brief Return a shared_ptr to a new instance of owc::OWC_Channel_absolute_two.
44  *
45  * To avoid accidental use of raw pointers, owc::OWC_Channel_absolute_two's
46  * constructor is in a private implementation
47  * class. owc::OWC_Channel_absolute_two::make is the public interface for
48  * creating new instances.
49  */
50  static sptr make(int num_inputs, int num_outputs, const std::vector<float>& tx_coordinates_array, const std::vector<float>& tx_orientation_array, const std::vector<float>& rx_coordinates_array, const std::vector<float>& rx_orientation_array, const std::vector<float>& tx_lambertian_order_array, const std::vector<float>& rx_photosensor_area_array, const std::vector<float>& optical_filter_transmittance_array, const std::vector<float>& refractive_index_array, const std::vector<float>& concentrator_FOV_array, const std::vector<float>& E2O_conversion_factor_array, const std::vector<float>& O2E_conversion_factor_array, int sample_rate, const std::vector<int>& blockage_array, const std::vector<float>& noise_power_array);
51  virtual void set_tx_coordinates_array(std::vector<float> tx_coordinates_array) = 0;
52  virtual std::vector<float> tx_coordinates_array() = 0;
53 
54  virtual void set_tx_orientation_array(std::vector<float> tx_orientation_array) = 0;
55  virtual std::vector<float> tx_orientation_array() = 0;
56 
57  virtual void set_rx_coordinates_array(std::vector<float> rx_coordinates_array) = 0;
58  virtual std::vector<float> rx_coordinates_array() = 0;
59 
60  virtual void set_rx_orientation_array(std::vector<float> rx_orientation_array) = 0;
61  virtual std::vector<float> rx_orientation_array() = 0;
62 
63  virtual void set_tx_lambertian_order_array(std::vector<float> lambertian_order_array) = 0;
64  virtual std::vector<float> tx_lambertian_order_array() = 0;
65 
66  virtual void set_blockage_array(std::vector<int> blockage_array) = 0;
67  virtual std::vector<int> blockage_array() = 0;
68 
69  virtual void set_noise_power_array(std::vector<float> noise_power_array) = 0;
70  virtual std::vector<float> noise_power_array() = 0;
71  };
72 
73  } // namespace owc
74 } // namespace gr
75 
76 #endif /* INCLUDED_OWC_OWC_CHANNEL_ABSOLUTE_TWO_H */
77 
#define OWC_API
Definition: api.h:31
<+description of block+>
Definition: OWC_Channel_absolute_two.h:37
boost::shared_ptr< OWC_Channel_absolute_two > sptr
Definition: OWC_Channel_absolute_two.h:40
Definition: binary_to_decimal_mapper.h:29