cimforreduceloss/testHasttable/dginfo.cpp

45 lines
540 B
C++
Raw Normal View History

#include "dginfo.h"
DGInfo::DGInfo(double powerFactor):powerFactor(powerFactor)
{
}
DGInfo::~DGInfo()
{
}
QString DGInfo::getAttchedSubstaitonID()
{
return this->attchedSubstaitonID;
}
double DGInfo::getCapacity()
{
return this->capacity;
}
QString DGInfo::getName()
{
return this->name;
}
void DGInfo::setAttchedSubstaitonID(const QString& id)
{
this->attchedSubstaitonID=id;
}
void DGInfo::setCapacity(double cap)
{
this->capacity=cap;
}
void DGInfo::setName(const QString& name)
{
this->name=name;
}