27#ifndef SPICE_SIMULATOR_H
28#define SPICE_SIMULATOR_H
78 virtual bool Command(
const std::string& aCmd ) = 0;
108 virtual std::vector<COMPLEX>
GetComplexVector(
const std::string& aName,
int aMaxLen = -1 ) = 0;
119 virtual std::vector<double>
GetRealVector(
const std::string& aName,
int aMaxLen = -1 ) = 0;
140 virtual std::vector<double>
GetGainVector(
const std::string& aName,
int aMaxLen = -1 ) = 0;
150 virtual std::vector<double>
GetPhaseVector(
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 > GetImaginaryVector(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with imaginary values.
virtual void Init(const SPICE_SETTINGS *aSettings=nullptr)=0
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.
static wxString TypeToName(SIM_TYPE aType, bool aShortName)
Return a string with simulation name based on enum.
virtual wxString GetXAxis(SIM_TYPE aType) const =0
Set a SIMULATOR_REPORTER object to receive the simulation log.
virtual std::vector< COMPLEX > GetComplexVector(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with complex values.
std::shared_ptr< SPICE_SETTINGS > & Settings()
Return the simulator configuration settings.
const std::shared_ptr< SPICE_SETTINGS > & Settings() const
virtual wxString CurrentPlotName() const =0
virtual const std::string GetNetlist() const =0
Return current SPICE netlist used by the simulator.
virtual std::vector< std::string > AllVectors() const =0
virtual std::vector< std::string > GetSettingCommands() const =0
virtual std::vector< double > GetRealVector(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with real values.
SIMULATOR_REPORTER * m_reporter
< Reporter object to receive simulation log.
virtual void SetReporter(SIMULATOR_REPORTER *aReporter)
virtual std::vector< double > GetGainVector(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with magnitude values.
virtual ~SPICE_SIMULATOR()
std::shared_ptr< SPICE_SETTINGS > m_settings
virtual std::vector< double > GetPhaseVector(const std::string &aName, int aMaxLen=-1)=0
Return a requested vector with phase values.
SIM_TYPE
< Possible simulation types
std::complex< double > COMPLEX