|
NanoTekSpice
DigitalElectronics
|
Quad 2-input NOR gate. More...
#include <C4001.hpp>
Public Member Functions | |
| C4001 () | |
| Component 4001 Constructor. More... | |
| ~C4001 () | |
| Component 4001 Destructor. | |
| nts::Tristate | compute (std::size_t pin=1) override |
| Compute. More... | |
| void | setLink (std::size_t pin, nts::IComponent &other, std::size_t otherPin) final |
| Set link method. More... | |
| void | dump () const noexcept override |
| Display information. More... | |
| void | setInput (std::size_t pin, nts::IComponent &other, std::size_t otherPin) final |
| Set input link method. More... | |
| void | setOutput (std::size_t pin, nts::IComponent &other, std::size_t otherPin) final |
| Set output link method. More... | |
Public Member Functions inherited from Component::MyComponent | |
| MyComponent (const nts::Type &type) | |
| void | createAllComponents (const std::vector< Component::ComponentSetting > &settings) |
| virtual void | setState (const std::string &state) |
| virtual void | setState (const std::string &name, const std::string &state) |
| const std::string & | getName () const noexcept final |
| void | setName (const std::string &name) noexcept final |
| const nts::Type & | getType () const noexcept final |
| void | displayState (std::size_t) const noexcept override |
Public Member Functions inherited from nts::IComponent | |
| virtual void | createAllComponents (const std::vector< Component::ComponentSetting > &settings)=0 |
Additional Inherited Members | |
Protected Attributes inherited from Component::MyComponent | |
| std::string | _name |
| nts::Type | _type |
Quad 2-input NOR gate.
| C4001::C4001 | ( | ) |
Component 4001 Constructor.
Initializes four NOR gates with their own output and input pins.
|
overridevirtual |
Compute.
Searches for the door containing the requested pin and calculates the exit status.
| pin | Pin requested |
Implements nts::IComponent.
|
overridevirtualnoexcept |
|
finalvirtual |
Set input link method.
Method call by another component to bind to component 4001's input
| pin | Pin linked |
| other | Other Component |
| otherPin | Ohter component pin |
Implements nts::IComponent.
|
finalvirtual |
Set link method.
Link this component to another
| pin | Component pin that needs to be linked |
| other | The other Component |
| otherPin | The other component pin |
Implements nts::IComponent.
|
finalvirtual |
Set output link method.
Method call by another component to bind to component 4001's output
| pin | Pin linked |
| other | Other Component |
| otherPin | Ohter component pin |
Implements nts::IComponent.
1.8.14