KiCad PCB EDA Suite
|
#include <simulator.h>
Public Member Functions | |
SIMULATOR () | |
virtual | ~SIMULATOR () |
Create a simulator instance of particular type (currently only ngspice is handled) | |
std::mutex & | GetMutex () |
virtual bool | Attach (const std::shared_ptr< SIMULATION_MODEL > &aModel, const wxString &aSimCommand, unsigned aSimOptions, const wxString &aInputPath, REPORTER &aReporter) |
Point out the model that will be used in future simulations. | |
virtual bool | Run ()=0 |
Execute the simulation with currently loaded netlist. | |
virtual bool | Stop ()=0 |
Halt the simulation. | |
virtual bool | IsRunning ()=0 |
Check if simulation is running at the moment. | |
virtual void | Clean ()=0 |
Cleans simulation data (i.e. | |
Static Public Member Functions | |
static std::shared_ptr< SPICE_SIMULATOR > | CreateInstance (const std::string &aName) |
Protected Attributes | |
std::shared_ptr< SIMULATION_MODEL > | m_simModel |
< Model that should be simulated. | |
Private Attributes | |
std::mutex | m_mutex |
< For interprocess synchronisation. | |
Definition at line 36 of file simulator.h.
|
inline |
Definition at line 39 of file simulator.h.
References m_simModel.
Referenced by SPICE_SIMULATOR::SPICE_SIMULATOR().
|
inlinevirtual |
Create a simulator instance of particular type (currently only ngspice is handled)
Definition at line 43 of file simulator.h.
|
inlinevirtual |
Point out the model that will be used in future simulations.
Reimplemented in NGSPICE.
Definition at line 61 of file simulator.h.
References m_simModel.
Referenced by NGSPICE::Attach().
|
pure virtual |
|
static |
Definition at line 33 of file spice_simulator.cpp.
References DisplayError().
Referenced by KIBIS_PIN::getKuKdFromFile(), and SIMULATOR_FRAME::SIMULATOR_FRAME().
|
inline |
Definition at line 51 of file simulator.h.
References m_mutex.
|
pure virtual |
Check if simulation is running at the moment.
Implemented in NGSPICE.
|
pure virtual |
Execute the simulation with currently loaded netlist.
Implemented in NGSPICE.
|
pure virtual |
|
private |
< For interprocess synchronisation.
Definition at line 102 of file simulator.h.
Referenced by GetMutex().
|
protected |
< Model that should be simulated.
Definition at line 98 of file simulator.h.
Referenced by Attach(), and SIMULATOR().