OpticalReceiver.h revision 10447:a465576671d4
1#ifndef __DSENT_MODEL_OPTICALGRAPH_OPTICALRECEIVER_H__
2#define __DSENT_MODEL_OPTICALGRAPH_OPTICALRECEIVER_H__
3
4#include "model/OpticalModel.h"
5#include "util/CommonType.h"
6
7namespace DSENT
8{
9    // The job of an optical receiver interface is to provide a function to
10    // return a sensitivity (in Amps)
11    class OpticalReceiver
12    {
13        public:
14            OpticalReceiver(){};
15            virtual ~OpticalReceiver(){};
16
17        public:
18            // Returns the sensitivity of the receiver given an extinction ratio
19            virtual double getSensitivity(double ER_dB_) const = 0;
20    };
21
22} // namespace DSENT
23
24#endif // __DSENT_MODEL_OPTICALGRAPH_OPTICALRECEIVER_H__
25
26