21 #ifndef CONFIG_PROCESSOR_H
22 #define CONFIG_PROCESSOR_H
27 #include "config_processor_name.h"
35 string powerGroupName;
36 float contextSwitchTime;
43 cfg_proc_name = cfg_proc_name_;
44 powerGroupName = powerGroupName_;
45 contextSwitchTime = contextSwitchTime_;
46 interfaces = interfaces_;
51 cfg_proc_name = cfg_proc_name_;
52 powerGroupName = powerGroupName_;
53 contextSwitchTime = 0;
63 if (hasInterfaces() ==
true)
64 return instName +
" " + act +
" [ Processor: " + cfg_proc_name->getProcessorName() +
", Power Domain: " + powerGroupName +
", Context Switch Time = " + Utils::ftoa(contextSwitchTime) +
" us, Interfaces = " + interfaces +
" ]";
66 return instName +
" " + act +
" [ Processor: " + cfg_proc_name->getProcessorName() +
", Power Domain: " + powerGroupName +
", Context Switch Time = " + Utils::ftoa(contextSwitchTime) +
" us ]";
69 bool hasInterfaces() {
70 return interfaces.length() > 0;
74 return (instName.compare(cp.getInstanceName()) == 0);
78 return instName.compare(cp.getInstanceName()) == 0 &&
79 cfg_proc_name->getProcessorName().compare(cp.cfg_proc_name->getProcessorName()) == 0 &&
80 contextSwitchTime == cp.getContextSwitchTime() &&
81 interfaces.compare(cp.getInterfaces()) == 0;
84 void setInstanceName(
string val) {
88 string getInstanceName() {
100 void setContextSwitchTime(
float val) {
101 contextSwitchTime = val;
104 float getContextSwitchTime() {
105 return contextSwitchTime;
108 void setInterfaces(
string val) {
112 string getInterfaces() {
116 void setPowerGroupName(
string val) {
117 powerGroupName = val;
120 string getPowerGroupName() {
121 return powerGroupName;
Definition: config_processor.h:31
Definition: config_processor_name.h:30