2017-04-23 19:13:23 -04:00
|
|
|
#ifndef EVENT
|
|
|
|
#define EVENT
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
#include "Wire.h"
|
|
|
|
|
|
|
|
class Event {
|
|
|
|
public:
|
2017-04-25 13:53:59 -04:00
|
|
|
Event(int value, int setTime, Wire * output);
|
2017-04-23 19:13:23 -04:00
|
|
|
friend bool operator<(const Event &e1, const Event &e2);
|
2017-04-24 20:13:22 -04:00
|
|
|
|
|
|
|
int getValue() const;
|
|
|
|
int getTime() const;
|
|
|
|
Wire* getOutput() const;
|
2017-04-24 22:35:44 -04:00
|
|
|
void setNum(int num);
|
2017-04-23 19:13:23 -04:00
|
|
|
private:
|
|
|
|
int evNum, evValue, evTime;
|
|
|
|
Wire *out;
|
2017-04-25 13:53:59 -04:00
|
|
|
static int numOfEvents;
|
2017-04-23 19:13:23 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !EVENT
|