-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent.m
35 lines (34 loc) · 904 Bytes
/
component.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
classdef component < handle
properties
type;
name;
value;
node1;
node2;
passive;
end
methods
function obj = component(type, name, value, node1, node2)
obj.type = type;
obj.name = name;
obj.value = value;
obj.node1 = node1;
obj.node2 = node2;
end
% function disp(obj)
% fprintf('%c %s %e %s %s\n', obj.type, obj.name, obj.value, obj.node1, obj.node2);
% end
function n = getNodeNames(obj)
n = {obj.node1, obj.node2};
end
function passive = isPassive(obj)
passive = obj.passive;
end
function Un = getNoiseVoltage(obj, f, T)
Un = 0;
end
function In = getNoiseCurrent(obj, f, T)
In = 0;
end
end
end