blob: 6bb59a7971cbd90d6fc467aa5a2641bd61ff751d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "Inductor.h"
Inductor::Inductor(double inductance, bool isSaturable) {
this->inductance = inductance;
this->bIsSaturable = isSaturable;
}
double Inductor::getValue() {
return inductance;
}
bool Inductor::isSaturable() {
return bIsSaturable;
}
void Inductor::accept(Visitor& visitor) {
visitor.visit(*this);
}
|