2021-01-30 04:44:44 +08:00
|
|
|
#include "deembeddingoption.h"
|
|
|
|
|
|
|
|
#include "portextension.h"
|
|
|
|
#include "twothru.h"
|
|
|
|
#include "matchingnetwork.h"
|
2022-03-18 01:24:18 +08:00
|
|
|
#include "impedancerenormalization.h"
|
2021-01-30 04:44:44 +08:00
|
|
|
|
|
|
|
DeembeddingOption *DeembeddingOption::create(DeembeddingOption::Type type)
|
|
|
|
{
|
|
|
|
switch(type) {
|
|
|
|
case Type::PortExtension:
|
|
|
|
return new PortExtension();
|
|
|
|
case Type::TwoThru:
|
|
|
|
return new TwoThru();
|
|
|
|
case Type::MatchingNetwork:
|
|
|
|
return new MatchingNetwork();
|
2022-03-18 01:24:18 +08:00
|
|
|
case Type::ImpedanceRenormalization:
|
|
|
|
return new ImpedanceRenormalization();
|
2021-01-30 04:44:44 +08:00
|
|
|
default:
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
QString DeembeddingOption::getName(DeembeddingOption::Type type)
|
|
|
|
{
|
|
|
|
switch(type) {
|
|
|
|
case Type::PortExtension:
|
|
|
|
return "Port Extension";
|
|
|
|
case Type::TwoThru:
|
|
|
|
return "2xThru";
|
|
|
|
case Type::MatchingNetwork:
|
|
|
|
return "Matching Network";
|
2022-03-18 01:24:18 +08:00
|
|
|
case Type::ImpedanceRenormalization:
|
|
|
|
return "Impedance Renormalization";
|
2021-01-30 04:44:44 +08:00
|
|
|
default:
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|