OpticalLaser.cc revision 10447:a465576671d4
1 2#include "model/optical_graph/OpticalLaser.h" 3 4namespace DSENT 5{ 6 OpticalLaser::OpticalLaser(const String& instance_name_, OpticalModel* model_, const WavelengthGroup& wavelengths_) 7 : OpticalNode(OpticalNode::LASER, instance_name_, model_, wavelengths_), m_efficiency_(0) 8 { 9 10 } 11 12 void OpticalLaser::setEfficiency(double efficiency_) 13 { 14 m_efficiency_ = efficiency_; 15 return; 16 } 17 18 double OpticalLaser::getEfficiency() const 19 { 20 return m_efficiency_; 21 } 22 23 OpticalLaser::~OpticalLaser() 24 { 25 26 } 27 28 29} // namespace DSENT 30 31 32