Deleted Added
sdiff udiff text old ( 6285:ce086eca1ede ) new ( 6506:e9e7ca667575 )
full compact
1
2#ifndef ABSTRACTCONTROLLER_H
3#define ABSTRACTCONTROLLER_H
4
5#include "mem/ruby/common/Consumer.hh"
6#include "mem/protocol/MachineType.hh"
7
8class MessageBuffer;
9class Network;
10
11class AbstractController : public Consumer {
12public:
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