返回Breaker的EquipmentMemberOf_EquipmentContainer
Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
parent
77ba7c7cec
commit
735226f06a
|
|
@ -48,6 +48,11 @@ bool Breaker::derivedParse(QXmlStreamReader &reader)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Breaker::getEquipmentMemberOf_EquipmentContainer()
|
||||||
|
{
|
||||||
|
return this->equipmentContainer;
|
||||||
|
}
|
||||||
|
|
||||||
QString Breaker::getNamingDescription()
|
QString Breaker::getNamingDescription()
|
||||||
{
|
{
|
||||||
return this->namingDescription;
|
return this->namingDescription;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ class Breaker:public BasicElementInfo
|
||||||
public:
|
public:
|
||||||
explicit Breaker(QObject *parent = 0);
|
explicit Breaker(QObject *parent = 0);
|
||||||
virtual bool parse(QXmlStreamReader& reader);
|
virtual bool parse(QXmlStreamReader& reader);
|
||||||
|
QString getEquipmentMemberOf_EquipmentContainer();
|
||||||
QString getNamingDescription();
|
QString getNamingDescription();
|
||||||
QString getTerminalA();
|
QString getTerminalA();
|
||||||
QString getTerminalB();
|
QString getTerminalB();
|
||||||
|
|
|
||||||
|
|
@ -166,6 +166,7 @@ bool LoadMapping::readMatch(const QString& dir)
|
||||||
t->setLoadName(sep.at(i));
|
t->setLoadName(sep.at(i));
|
||||||
loads.push_back(t);
|
loads.push_back(t);
|
||||||
(*this->loadsToLoadInfo)[sep.at(i)]=t;
|
(*this->loadsToLoadInfo)[sep.at(i)]=t;
|
||||||
|
|
||||||
}
|
}
|
||||||
(*this->loads)[SFDid]=loads;
|
(*this->loads)[SFDid]=loads;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QCoreApplication a(argc, argv);
|
QCoreApplication a(argc, argv);
|
||||||
// LoadMapping lm;
|
// LoadMapping lm;
|
||||||
// lm.load("D:/Project/佛山项目/数据/搭网架参数文件/泰安/泰安负荷","D:/Project/佛山项目/数据/匹配的数据","D:/Project/佛山项目/数据/exception.txt");
|
// lm.load("D:/Project/佛山项目/数据/搭网架参数文件/北滘/北滘负荷","D:/Project/佛山项目/数据/匹配的数据/北滘","D:/Project/佛山项目/数据/exception.txt");
|
||||||
// LoadInfo loadInfo;
|
// LoadInfo loadInfo;
|
||||||
// loadInfo.setLoadPath("D:/Project/佛山项目/数据/搭网架参数文件/泰安/泰安负荷/718发展线/专变/威灵电机工业园电房1.csv");
|
// loadInfo.setLoadPath("D:/Project/佛山项目/数据/搭网架参数文件/泰安/泰安负荷/718发展线/专变/威灵电机工业园电房1.csv");
|
||||||
// loadInfo.updateByTime(QTime(0,15,0));
|
// loadInfo.updateByTime(QTime(0,15,0));
|
||||||
|
|
|
||||||
|
|
@ -107,8 +107,8 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::cout<<AC->getLength()<<std::endl;
|
// std::cout<<AC->getLength()<<std::endl;
|
||||||
std::cout<<AC->getID().toStdString()<<std::endl;
|
// std::cout<<AC->getID().toStdString()<<std::endl;
|
||||||
terminalA=AC->getTerminalA();
|
terminalA=AC->getTerminalA();
|
||||||
terminalB=AC->getTerminalB();
|
terminalB=AC->getTerminalB();
|
||||||
foundEle=AC;
|
foundEle=AC;
|
||||||
|
|
@ -140,6 +140,9 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||||
{
|
{
|
||||||
// std::cout<<"sw "<<SW->getNamingDescription().toStdString()<<"is close"<<std::endl;
|
// std::cout<<"sw "<<SW->getNamingDescription().toStdString()<<"is close"<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cout<<"sw container"<<SW->getEquipmentMemberOf_EquipmentContainer().toLocal8Bit().data()<<std::endl;
|
||||||
|
|
||||||
terminalA=SW->getTerminalA();
|
terminalA=SW->getTerminalA();
|
||||||
terminalB=SW->getTerminalB();
|
terminalB=SW->getTerminalB();
|
||||||
// std::cout<<"find"<<SW->getID().toStdString()<<std::endl;
|
// std::cout<<"find"<<SW->getID().toStdString()<<std::endl;
|
||||||
|
|
@ -283,7 +286,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout<<"not found cate "<<ce.toStdString()<<std::endl;
|
// std::cout<<"not found cate "<<ce.toStdString()<<std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue