Interface CircuitComponent

All Known Implementing Classes:
Capacitor, CurrentSource, Ground, Inductor, Memristor, ParallelCircuit, Resistor, SeriesCircuit, SimpleCircuit, VoltageSource

public interface CircuitComponent
Interface for electrical circuit components.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    getCurrent(Real voltage, Real dt)
    Calculates the current flowing through the component given the voltage across it.
  • Method Details

    • getCurrent

      Real getCurrent(Real voltage, Real dt)
      Calculates the current flowing through the component given the voltage across it.
      Parameters:
      voltage - Voltage across the component (Volts)
      dt - Time step (Seconds) - used for dynamic components
      Returns:
      Current (Amperes)