Go to the documentation of this file.00001
00021 #ifndef PROCESSOR_H
00022 #define PROCESSOR_H
00023
00024 #include <iostream>
00025 #include <string>
00026 #include <vector>
00027 #include <set>
00028
00029 using namespace std;
00030
00031 class Processor {
00032
00033 private:
00034 string name;
00035 string type;
00036 double contextSwitchTime;
00037 vector<string> compatibleTasks;
00038
00039 multiset<string> processorInterfaces;
00040
00041 public:
00042 Processor(string n, string _type, double t) : name(n), type(_type), contextSwitchTime(t) {}
00043
00044 string getName(void);
00045 string getType(void);
00046 double getContextSwitchTime(void);
00047
00048 void addCompatibleTask(string task);
00049 vector<string> getCompatibleTaskVector(void);
00050 void clearCompatibleTasks(void);
00051 bool isTaskCompatible(string s);
00052
00053 void addInterface(string s, int n = 1);
00054 int getInterfaceCount(string s);
00055 multiset<string> getProcessorInterfaces(void);
00056
00057 };
00058
00059 #endif