restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
class Nand : public Circuit {
public:
// Konstruktor
Nand ();
// default destructor ist OK
~Nand ();
// Eingang wechselt zur aktuellen Zeit den Zustand
virtual void ChangeInput (State s, int pin);
// berechne Gatter neu und benachrichtige Draht
// am Ausgang
virtual void Action ();
// verdrahte Eingang
virtual void ConnectInput (Wire& w, int pin);
// verdrahte Ausgang
virtual void ConnectOutput (Wire& w, int pin);
private:
Wire* a; // Eingang 1
Wire* b; // Eingang 2
Wire* c; // Ausgang
bool actionFlag; // merke ob bereits aktiviert
} ;