AbstractController.hh (6285:ce086eca1ede) AbstractController.hh (6506:e9e7ca667575)
1
2#ifndef ABSTRACTCONTROLLER_H
3#define ABSTRACTCONTROLLER_H
4
5#include "mem/ruby/common/Consumer.hh"
6#include "mem/protocol/MachineType.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#include "mem/ruby/common/Address.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;
8
9class MessageBuffer;
10class Network;
11
12class AbstractController : public Consumer {
13public:
14 AbstractController() {}
15 virtual void init(Network* net_ptr, const vector<string> & argv) = 0;
16
17 // returns the number of controllers created of the specific subtype
18 // virtual int getNumberOfControllers() const = 0;
19 virtual MessageBuffer* getMandatoryQueue() const = 0;
20 virtual const int & getVersion() const = 0;
21 virtual const string toString() const = 0; // returns text version of controller type
22 virtual const string getName() const = 0; // return instance name
23 virtual const MachineType getMachineType() const = 0;
24 virtual void set_atomic(Address addr) = 0;
25 virtual void clear_atomic() = 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
26
27 virtual void print(ostream & out) const = 0;
28 virtual void printStats(ostream & out) const = 0;
29 virtual void printConfig(ostream & out) const = 0;
30 virtual void wakeup() = 0;
31 // virtual void dumpStats(ostream & out) = 0;
32 virtual void clearStats() = 0;
33
34};
35
36#endif