GNU Radio's OWC Package
OWC_Channel_absolute.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_H
24 #define INCLUDED_OWC_OWC_CHANNEL_ABSOLUTE_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 : virtual public gr::sync_block
38  {
39  public:
40  typedef boost::shared_ptr<OWC_Channel_absolute> sptr;
41 
42  /*!
43  * \brief Return a shared_ptr to a new instance of owc::OWC_Channel_absolute.
44  *
45  * To avoid accidental use of raw pointers, owc::OWC_Channel_absolute's
46  * constructor is in a private implementation
47  * class. owc::OWC_Channel_absolute::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);
51 
52 /* virtual void set_distance_array(int num_inputs, int num_outputs, std::vector<float> tx_coordinates_array, std::vector<float> rx_coordinates_array) = 0;
53  virtual std::vector<float> distance_array() = 0;
54 
55  virtual void set_emission_angle_array(int num_inputs, int num_outputs, std::vector<float> tx_coordinates_array, std::vector<float> tx_orientation_array, std::vector<float> rx_coordinates_array) = 0;
56  virtual std::vector<float> emission_angle_array() = 0;
57 
58  virtual void set_acceptance_angle_array(int num_inputs, int num_outputs, std::vector<float> tx_coordinates_array, std::vector<float> rx_coordinates_array, std::vector<float> rx_orientation_array) = 0;
59  virtual std::vector<float> acceptance_angle_array() = 0;*/
60 
61  virtual void set_tx_coordinates_array(std::vector<float> tx_coordinates_array) = 0;
62  virtual std::vector<float> tx_coordinates_array() = 0;
63 
64  virtual void set_tx_orientation_array(std::vector<float> tx_orientation_array) = 0;
65  virtual std::vector<float> tx_orientation_array() = 0;
66 
67  virtual void set_rx_coordinates_array(std::vector<float> rx_coordinates_array) = 0;
68  virtual std::vector<float> rx_coordinates_array() = 0;
69 
70  virtual void set_rx_orientation_array(std::vector<float> rx_orientation_array) = 0;
71  virtual std::vector<float> rx_orientation_array() = 0;
72 
73  virtual void set_tx_lambertian_order_array(std::vector<float> lambertian_order_array) = 0;
74  virtual std::vector<float> tx_lambertian_order_array() = 0;
75  };
76 
77  } // namespace owc
78 } // namespace gr
79 
80 #endif /* INCLUDED_OWC_OWC_CHANNEL_ABSOLUTE_H */
81 
#define OWC_API
Definition: api.h:31
boost::shared_ptr< OWC_Channel_absolute > sptr
Definition: OWC_Channel_absolute.h:40
<+description of block+>
Definition: OWC_Channel_absolute.h:37
Definition: binary_to_decimal_mapper.h:29