OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Resistor Class Reference

#include "Resistor.h"

Inheritance diagram for Resistor:
CircuitElement

Public Member Functions

 Resistor (std::string resistance, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
 
 ~Resistor ()
 
std::string type () const override
 
const std::string getResistance () const
 
std::string setResistance (std::string resistance)
 
- Public Member Functions inherited from CircuitElement
 CircuitElement (std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
 
virtual ~CircuitElement ()
 
std::string getItemName ()
 
std::string getEditorName ()
 
ot::UID getUID ()
 
std::map< std::string, Connection > & getList ()
 
std::string getNetlistName ()
 
std::string getCustomName ()
 
void setItemName (std::string name)
 
void setEditorName (std::string name)
 
void setUID (ot::UID id)
 
void setNetlistName (std::string name)
 
void setCustomName (std::string name)
 
void addConnection (std::string connactable, const Connection &obj)
 

Additional Inherited Members

- Protected Attributes inherited from CircuitElement
std::string m_itemName
 
std::string m_editorName
 
ot::UID m_Uid
 
std::string m_netlistName
 
std::string m_customName
 
std::map< std::string, Connectionm_listOfConnections
 

Constructor & Destructor Documentation

◆ Resistor()

Resistor::Resistor ( std::string resistance,
std::string itemName,
std::string editorName,
ot::UID Uid,
std::string netlistName )

◆ ~Resistor()

Resistor::~Resistor ( )

Member Function Documentation

◆ getResistance()

const std::string Resistor::getResistance ( ) const
inline

◆ setResistance()

std::string Resistor::setResistance ( std::string resistance)
inline

◆ type()

std::string Resistor::type ( ) const
inlineoverridevirtual

Implements CircuitElement.


The documentation for this class was generated from the following files: