Changeset 1247 for DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsNodeBaseEEP.java
- Timestamp:
- 11/28/13 10:54:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsNodeBaseEEP.java
r1210 r1247 10 10 11 11 import schedframe.events.scheduling.EventReason; 12 import schedframe.resources.computing. ComputingNode;12 import schedframe.resources.computing.Node; 13 13 import schedframe.resources.computing.ComputingResource; 14 14 import schedframe.resources.computing.Core; … … 137 137 138 138 ProcessingElements pe = (ProcessingElements) peUnit; 139 if(pe.get(0) instanceof ComputingNode)140 return (( ComputingNode)pe.get(0)).getCategory();139 if(pe.get(0) instanceof Node) 140 return ((Node)pe.get(0)).getCategory(); 141 141 if(pe.get(0) instanceof Processor) 142 142 return ((Processor)pe.get(0)).getParent().getCategory(); … … 147 147 private int getFrequency(PEUnit peUnit){ 148 148 ProcessingElements pe = (ProcessingElements) peUnit; 149 if(pe.get(0) instanceof ComputingNode)150 return Double.valueOf((( ComputingNode)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue();149 if(pe.get(0) instanceof Node) 150 return Double.valueOf(((Node)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 151 151 if(pe.get(0) instanceof Processor) 152 152 return Double.valueOf(((Processor)pe.get(0)).getPowerInterface().getFrequency()).intValue();
Note: See TracChangeset
for help on using the changeset viewer.