1.加入Task文件,准备批量做。
2.把Task文件接入流程。 Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
@@ -82,7 +82,7 @@ bool ElementHashtable::GoPath()
|
||||
ite++)
|
||||
{
|
||||
BasicElementInfo *p=zwht[*ite];
|
||||
if(p->getName()=="ACLineSegment" && p->getID()=="AC-591821")
|
||||
if(p->getName()=="ACLineSegment" && p->getID()==this->lineID)
|
||||
{
|
||||
ACLineSegment *ac=static_cast<ACLineSegment *>(p);//BusbarSection也就是线路头节点
|
||||
QString acTerminal=ac->getTerminalB();
|
||||
@@ -96,7 +96,7 @@ bool ElementHashtable::GoPath()
|
||||
continue;//有些Terminal是没有Node的
|
||||
}
|
||||
std::cout<<node.toStdString()<<std::endl;
|
||||
TopologyRecorder tpRecorder(this->eleHT);
|
||||
TopologyRecorder tpRecorder(this->eleHT,this->FDSet);
|
||||
tpRecorder.startWithNode(node);
|
||||
tpRecorder.exportTo("");
|
||||
break;
|
||||
@@ -126,9 +126,9 @@ bool ElementHashtable::parse(const QString& xmlPath)
|
||||
this->child(reader);//处理根元素下的第一级子元素,也就是Substation这一类。
|
||||
}
|
||||
loop++;
|
||||
if(loop>600000){
|
||||
// if(loop>600000){
|
||||
// break;
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
if(reader.hasError())
|
||||
@@ -154,3 +154,12 @@ bool ElementHashtable::Parse(const QString& xmlPWPath,const QString& xmlZWPath){
|
||||
// this->parse(xmlZWPath);
|
||||
return true;
|
||||
}
|
||||
|
||||
void ElementHashtable::SetACLineID(const QString &id)//寻找的线路ID
|
||||
{
|
||||
this->lineID=id;
|
||||
}
|
||||
void ElementHashtable::SetFDSet(const QVector<QString> &FDSet)//FeeDer集合
|
||||
{
|
||||
this->FDSet=FDSet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user