[][src]Trait spice21::comps::Component

pub trait Component {
    fn load(
        &mut self,
        guess: &Variables<f64>,
        an: &AnalysisInfo<'_>
    ) -> Stamps<f64>;
fn create_matrix_elems<T: SpNum>(&mut self, mat: &mut Matrix<T>); fn commit(&mut self) { ... }
fn update(&mut self, _val: f64) { ... }
fn validate(&self) -> SpResult<()> { ... }
fn load_ac(
        &mut self,
        _guess: &Variables<Complex<f64>>,
        _an: &AnalysisInfo<'_>
    ) -> Stamps<Complex<f64>> { ... } }

Required methods

fn load(&mut self, guess: &Variables<f64>, an: &AnalysisInfo<'_>) -> Stamps<f64>

fn create_matrix_elems<T: SpNum>(&mut self, mat: &mut Matrix<T>)

Loading content...

Provided methods

fn commit(&mut self)

Commit operating-point guesses to internal state

fn update(&mut self, _val: f64)

Update values of single-valued components FIXME: prob not for every Component

fn validate(&self) -> SpResult<()>

Validation - Parameter Values etc.

fn load_ac(
    &mut self,
    _guess: &Variables<Complex<f64>>,
    _an: &AnalysisInfo<'_>
) -> Stamps<Complex<f64>>

Loading content...

Implementors

impl Component for ComponentSolver[src]

fn commit(&mut self)[src]

Commit operating-point guesses to internal state

fn update(&mut self, _val: f64)[src]

Update values of single-valued components FIXME: prob not for every Component

fn validate(&self) -> SpResult<()>[src]

Validation - Parameter Values etc.

impl Component for Diode0[src]

impl Component for Diode1[src]

fn validate(&self) -> SpResult<()>[src]

Parameter Validation

fn commit(&mut self)[src]

Load our last guess as the new operating point

fn load(&mut self, guess: &Variables<f64>, an: &AnalysisInfo<'_>) -> Stamps<f64>[src]

DC & Transient Stamp Loading

impl Component for Capacitor[src]

fn commit(&mut self)[src]

Load our last guess as the new operating point

impl Component for Isrc[src]

impl Component for Mos0[src]

impl Component for Mos1[src]

fn commit(&mut self)[src]

Load our last guess as the new operating point

impl Component for Resistor[src]

impl Component for Vsrc[src]

Loading content...