1.把负荷文件路径加入CIMParser中。
2.把变压器也处理成双端支路。 Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
@@ -54,18 +54,21 @@ void Task::doAgainstTaskFile(ElementHashtable &eleHT)
|
||||
}
|
||||
// //开始解析
|
||||
sep=line.split(',');
|
||||
if(sep.length()<3)
|
||||
if(sep.length()<4)
|
||||
{
|
||||
std::cout<<"error: "<<line.toStdString()<<std::endl;
|
||||
continue;
|
||||
}
|
||||
QString lineName=sep.at(0);
|
||||
QString lineID=sep.at(1);
|
||||
QString loadDir=sep.at(2);
|
||||
// std::cout<<lineName.toLocal8Bit().data()<<std::endl;
|
||||
eleHT.SetLoadFilePath(loadDir);
|
||||
eleHT.SetACLineID(lineID);
|
||||
eleHT.SetFDSet(setSep.toVector());
|
||||
eleHT.GoPath();
|
||||
eleHT.ShowContainerInfo(lineName);
|
||||
|
||||
break;
|
||||
}
|
||||
file.close();
|
||||
|
||||
Reference in New Issue
Block a user