1.把负荷文件路径加入CIMParser中。

2.把变压器也处理成双端支路。

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-20 13:19:28 +08:00
parent 07cfaef632
commit 8d5fcf9c95
12 changed files with 154 additions and 36 deletions

View File

@@ -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;
}