gem5/ext/dsent/model/optical_graph/OpticalLaser.cc
Nilay Vaish e8ed7b1d1b ext: add the source code for DSENT
This patch adds a tool called DSENT to the ext/ directory.  DSENT
is a tool that models power and area for on-chip networks.  The next
patch adds a script for using the tool.
2014-10-11 15:02:23 -05:00

32 lines
611 B
C++

#include "model/optical_graph/OpticalLaser.h"
namespace DSENT
{
OpticalLaser::OpticalLaser(const String& instance_name_, OpticalModel* model_, const WavelengthGroup& wavelengths_)
: OpticalNode(OpticalNode::LASER, instance_name_, model_, wavelengths_), m_efficiency_(0)
{
}
void OpticalLaser::setEfficiency(double efficiency_)
{
m_efficiency_ = efficiency_;
return;
}
double OpticalLaser::getEfficiency() const
{
return m_efficiency_;
}
OpticalLaser::~OpticalLaser()
{
}
} // namespace DSENT