parent
432724f3d2
commit
32e3e9cfb1
|
|
@ -85,7 +85,7 @@ bool ElementHashtable::GoPath()
|
||||||
// if(p->getName()=="ACLineSegment"){
|
// if(p->getName()=="ACLineSegment"){
|
||||||
// std::cout<<p->getID().toStdString()<<std::endl;
|
// std::cout<<p->getID().toStdString()<<std::endl;
|
||||||
// }
|
// }
|
||||||
if(p->getName()=="ACLineSegment" && p->getID()=="AC-591827")
|
if(p->getName()=="ACLineSegment" && p->getID()=="AC-591831")
|
||||||
{
|
{
|
||||||
ACLineSegment *ac=static_cast<ACLineSegment *>(p);//BusbarSection也就是线路头节点
|
ACLineSegment *ac=static_cast<ACLineSegment *>(p);//BusbarSection也就是线路头节点
|
||||||
QString acTerminal=ac->getTerminalB();
|
QString acTerminal=ac->getTerminalB();
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ bool TopologyRecorder::isEquipmentNeeded(const QString& substatinID)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString feederID=sfd->getSubstationMemberOf_Feeder();
|
QString feederID=sfd->getSubstationMemberOf_Feeder();
|
||||||
return feederID=="FD-2023";
|
return feederID=="FD-2048"||sfd->getNamingDescription()=="V馈线站";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -113,6 +113,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||||
QString container=Dis->getEquipmentMemberOf_EquipmentContainer();
|
QString container=Dis->getEquipmentMemberOf_EquipmentContainer();
|
||||||
if(!this->isEquipmentNeeded(container))
|
if(!this->isEquipmentNeeded(container))
|
||||||
{
|
{
|
||||||
|
std::cout<<"Dissw not belong "<<disConID.toStdString()<<std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
fromTo.first=node;
|
fromTo.first=node;
|
||||||
|
|
@ -120,7 +121,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||||
|
|
||||||
if(!Dis)
|
if(!Dis)
|
||||||
{
|
{
|
||||||
// std::cout<<"can not SW "<<swID.toStdString()<<std::endl;//@1
|
// std::cout<<"can not SW "<<swID.toStdString()<<std::endl;//@1
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//显示开关状态
|
//显示开关状态
|
||||||
|
|
@ -184,7 +185,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||||
{
|
{
|
||||||
std::cout<<tf->getNamingDescription().toStdString()<<"not belong"<<std::endl;
|
std::cout<<tf->getNamingDescription().toStdString()<<"not belong"<<std::endl;
|
||||||
}
|
}
|
||||||
// foundCate=true;
|
|
||||||
}
|
}
|
||||||
if(foundCate)
|
if(foundCate)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue