blob: 235d88880ccc55e05b6338f7ceb90d8b62d7cef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef __DSENT_MODEL_OPTICALGRAPH_OPTICALTRANSMITTER_H__
#define __DSENT_MODEL_OPTICALGRAPH_OPTICALTRANSMITTER_H__
#include "model/OpticalModel.h"
#include "util/CommonType.h"
namespace DSENT
{
// The job of a optical sender interface is to provide a function to
// allow the insertion loss and extinction ratio to be changed
class OpticalTransmitter
{
public:
OpticalTransmitter(){};
virtual ~OpticalTransmitter(){};
public:
// Set the transmitter specifications, returns whether it is possible
// to build a modulator that met those specs
virtual bool setTransmitterSpec(double IL_dB_, double ER_dB_) = 0;
// Returns power of the transmitter at a given utilization
virtual double getPower(double util_) const = 0;
}; // class OpticalTransmitter
} // namespace DSENT
#endif // __DSENT_MODEL_OPTICALGRAPH_OPTICALTRANSMITTER_H__
|