Added simulation functionality
This commit is contained in:
parent
79c5d147a3
commit
78da43f51d
23 changed files with 385 additions and 21 deletions
14
include/components/NOTgate.hpp
Normal file
14
include/components/NOTgate.hpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <QWidget.h>
|
||||
#include "../Component.hpp"
|
||||
|
||||
class NOTGate : public Component
|
||||
{
|
||||
public:
|
||||
NOTGate(QWidget* parent) : Component(parent, ":/components/not.png") { type = "not"; }
|
||||
|
||||
bool Action() override {
|
||||
return !connections[0]->Action();
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue