1.把负荷文件路径加入CIMParser中。
2.把变压器也处理成双端支路。 Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
@@ -71,6 +71,8 @@ bool ElementHashtable::child(QXmlStreamReader &reader)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool ElementHashtable::GoPath()
|
||||
{
|
||||
const QHash<QString,BasicElementInfo*> &zwht=this->eleHT;//从配网开始找
|
||||
@@ -101,9 +103,9 @@ bool ElementHashtable::GoPath()
|
||||
delete this->tpRecorder;
|
||||
this->tpRecorder=NULL;
|
||||
}
|
||||
this->tpRecorder=new TopologyRecorder(this->eleHT,this->FDSet);
|
||||
this->tpRecorder=new TopologyRecorder(this->eleHT,this->FDSet,this->loadFilePath);
|
||||
this->tpRecorder->startWithNode(node);
|
||||
this->tpRecorder->exportTo("");
|
||||
// this->tpRecorder->exportTo("");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -187,3 +189,8 @@ void ElementHashtable::ShowContainerInfo(const QString& fileName)
|
||||
std::cerr<<"not open"<<relPath.toStdString()<<std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
void ElementHashtable::SetLoadFilePath(const QString &path)
|
||||
{
|
||||
this->loadFilePath=path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user