27#ifndef SPICE_SIMULATOR_H
28#define SPICE_SIMULATOR_H
78 virtual bool Command(
const std::string& aCmd ) = 0;
94 virtual std::vector<std::string>
AllPlots()
const = 0;
105 virtual std::vector<COMPLEX>
GetPlot(
const std::string& aName,
int aMaxLen = -1 ) = 0;
116 virtual std::vector<double>
GetRealPlot(
const std::string& aName,
int aMaxLen = -1 ) = 0;
127 virtual std::vector<double>
GetImagPlot(
const std::string& aName,
int aMaxLen = -1 ) = 0;
137 virtual std::vector<double>
GetMagPlot(
const std::string& aName,
int aMaxLen = -1 ) = 0;
147 virtual std::vector<double>
GetPhasePlot(
const std::string& aName,
int aMaxLen = -1 ) = 0;
Interface to receive simulation updates from SPICE_SIMULATOR class.
Storage for simulator specific settings.
virtual std::vector< double > GetPhasePlot(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with phase values.
virtual bool Command(const std::string &aCmd)=0
Execute a Spice command as if it was typed into console.
virtual bool LoadNetlist(const std::string &aNetlist)=0
Load a netlist for the simulation.
SPICE_REPORTER * m_reporter
< Reporter object to receive simulation log.
virtual std::vector< double > GetRealPlot(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with real values.
static wxString TypeToName(SIM_TYPE aType, bool aShortName)
Return a string with simulation name based on enum.
virtual std::vector< std::string > AllPlots() const =0
Return a list with all vectors generated in current simulation.
std::shared_ptr< SPICE_SIMULATOR_SETTINGS > & Settings()
Return the simulator configuration settings.
virtual wxString GetXAxis(SIM_TYPE aType) const =0
Set a SPICE_REPORTER object to receive the simulation log.
virtual void SetReporter(SPICE_REPORTER *aReporter)
const std::shared_ptr< SPICE_SIMULATOR_SETTINGS > & Settings() const
virtual const std::string GetNetlist() const =0
Return current SPICE netlist used by the simulator.
virtual std::vector< std::string > GetSettingCommands() const =0
virtual std::vector< COMPLEX > GetPlot(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with complex values.
virtual std::vector< double > GetImagPlot(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with imaginary values.
virtual ~SPICE_SIMULATOR()
virtual std::vector< double > GetMagPlot(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with magnitude values.
virtual void Init(const SPICE_SIMULATOR_SETTINGS *aSettings=nullptr)=0
std::shared_ptr< SPICE_SIMULATOR_SETTINGS > m_settings
SIM_TYPE
< Possible simulation types
std::complex< double > COMPLEX