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
36
37
38
39
use crateConnectionRef;
use crateEquationRef;
use crateNetRef;
use crateTransientMatrix;
use crateTransientVector;
/// Component that directly interacts with the simulator.
///
/// You may implement this trait to add new fundamental
/// components that are not equivalent to a circuit made of
/// existing ones.
///
/// Implementors of this trait should not provide any constructor,
/// but instead a `create(&mut Circuit, NetRef, NetRef, ...)` method
/// that takes a circuit, an appropriate number of net references
/// and any required configuration values, and calls
/// [circuit.crateBasicComponent()](crate::Circuit::createBasicComponent) directly.