diff --git a/src/Wire.cpp b/src/Wire.cpp index 62a2ba4..4b9bbb5 100644 --- a/src/Wire.cpp +++ b/src/Wire.cpp @@ -30,10 +30,15 @@ void Wire::setValue(int newValue, int setTime) int Wire::getNumber() const { - return wireNumber; + return WireNumber; } void Wire::addGate(Gate * newGate) { gates.push_back(newGate); } + +string Wire::getName() const +{ + return name; +} diff --git a/src/Wire.h b/src/Wire.h index 0829e15..4ea5b86 100644 --- a/src/Wire.h +++ b/src/Wire.h @@ -13,14 +13,16 @@ class Wire { public: Wire(int number, bool io, string inName = ""); - int getValue(int time) const; - void setValue(int newValue, int setTime); - - int getNumber() const; void addGate(Gate* newGate); + int getValue(int time) const; + int getNumber() const; + string getName() const; + + void setValue(int newValue, int setTime); + private: - int wireNumber, value, lastEvent; + int WireNumber, value, lastEvent; vector history; string name; bool isPrint;