@@ -77,6 +77,25 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
}
|
||||
if(ce.startsWith("BS"))
|
||||
{
|
||||
//看找到那个Substation了
|
||||
BusbarSection *bs=static_cast<BusbarSection *>(ht[ce]);
|
||||
if(bs==NULL)
|
||||
{
|
||||
std::cout<<"not find bussection"<<ce.toStdString()<<std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
QString container=bs->getEquipmentMemberOf_EquipmentContainer();
|
||||
Substation *sfd=static_cast<Substation *>(ht[container]);
|
||||
if(sfd==NULL)
|
||||
{
|
||||
std::cout<<"can not find"<<container.toStdString()<<std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout<<"encounter "<<sfd->getNamingDescription().toStdString()<<std::endl;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if(ce.startsWith("TF"))
|
||||
@@ -95,7 +114,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
else
|
||||
{
|
||||
QString feederID=sfd->getSubstationMemberOf_Feeder();
|
||||
if(feederID!="FD-2004")
|
||||
if(feederID!="FD-2003")
|
||||
{
|
||||
std::cout<<tf->getNamingDescription().toStdString()<<"not belong"<<std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user