ruby: Import the latest ruby changes from gems.
[gem5.git] / src / mem / ruby / slicc_interface / AbstractController.hh
1
2 #ifndef ABSTRACTCONTROLLER_H
3 #define ABSTRACTCONTROLLER_H
4
5 #include "mem/ruby/common/Consumer.hh"
6 #include "mem/protocol/MachineType.hh"
7
8 class MessageBuffer;
9 class Network;
10
11 class AbstractController : public Consumer {
12 public:
13 AbstractController() {}
14 virtual void init(Network* net_ptr, const vector<string> & argv) = 0;
15
16 // returns the number of controllers created of the specific subtype
17 // virtual int getNumberOfControllers() const = 0;
18 virtual MessageBuffer* getMandatoryQueue() const = 0;
19 virtual const int & getVersion() const = 0;
20 virtual const string toString() const = 0; // returns text version of controller type
21 virtual const string getName() const = 0; // return instance name
22 virtual const MachineType getMachineType() const = 0;
23
24 virtual void print(ostream & out) const = 0;
25 virtual void printStats(ostream & out) const = 0;
26 virtual void printConfig(ostream & out) const = 0;
27 virtual void wakeup() = 0;
28 // virtual void dumpStats(ostream & out) = 0;
29 virtual void clearStats() = 0;
30
31 };
32
33 #endif