2017-04-23 19:13:23 -04:00
|
|
|
#ifndef NAND
|
|
|
|
#define NAND
|
|
|
|
#include "Gate.h"
|
|
|
|
#include "Event.h"
|
|
|
|
#include "Wire.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class NandGate : public Gate {
|
|
|
|
public:
|
|
|
|
NandGate(int d, Wire* wire1, Wire* wire2, Wire* wire3);
|
2017-04-23 19:29:29 -04:00
|
|
|
Event evaluate(int time);
|
2017-04-23 19:13:23 -04:00
|
|
|
int getDelay();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !NAND
|