1 2#ifndef ABSTRACTCONTROLLER_H 3#define ABSTRACTCONTROLLER_H 4
| 1 2#ifndef ABSTRACTCONTROLLER_H 3#define ABSTRACTCONTROLLER_H 4
|
| 5#include "sim/sim_object.hh" 6#include "params/RubyController.hh" 7
|
5#include "mem/ruby/common/Consumer.hh" 6#include "mem/protocol/MachineType.hh" 7#include "mem/ruby/common/Address.hh" 8 9class MessageBuffer; 10class Network; 11
| 8#include "mem/ruby/common/Consumer.hh" 9#include "mem/protocol/MachineType.hh" 10#include "mem/ruby/common/Address.hh" 11 12class MessageBuffer; 13class Network; 14
|
12class AbstractController : public Consumer {
| 15class AbstractController : public SimObject, public Consumer {
|
13public:
| 16public:
|
14 AbstractController() {}
| 17 typedef RubyControllerParams Params; 18 AbstractController(const Params *p) : SimObject(p) {}
|
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
--- 14 unchanged lines hidden --- | 19 virtual void init(Network* net_ptr, const vector<string> & argv) = 0; 20 21 // returns the number of controllers created of the specific subtype 22 // virtual int getNumberOfControllers() const = 0; 23 virtual MessageBuffer* getMandatoryQueue() const = 0; 24 virtual const int & getVersion() const = 0; 25 virtual const string toString() const = 0; // returns text version of controller type 26 virtual const string getName() const = 0; // return instance name
--- 14 unchanged lines hidden --- |