Changeset 1247 for DCWoRMS/branches/coolemall/src/test/article/recs/plugins/energy/RecsNodeModelEEP.java
- Timestamp:
- 11/28/13 10:54:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article/recs/plugins/energy/RecsNodeModelEEP.java
r1208 r1247 11 11 import java.util.ResourceBundle; 12 12 13 import schedframe.resources.computing. ComputingNode;13 import schedframe.resources.computing.Node; 14 14 import schedframe.resources.computing.Core; 15 15 import schedframe.resources.computing.Processor; … … 45 45 PhysicalResource resource) { 46 46 double powerConsumption = 0; 47 ComputingNode node = (ComputingNode) resource;47 Node node = (Node) resource; 48 48 49 49 try { … … 92 92 93 93 ProcessingElements pe = (ProcessingElements) peUnit; 94 if(pe.get(0) instanceof ComputingNode)95 return (( ComputingNode)pe.get(0)).getCategory();94 if(pe.get(0) instanceof Node) 95 return ((Node)pe.get(0)).getCategory(); 96 96 if(pe.get(0) instanceof Processor) 97 97 return ((Processor)pe.get(0)).getParent().getCategory(); … … 102 102 private int getFrequency(PEUnit peUnit){ 103 103 ProcessingElements pe = (ProcessingElements) peUnit; 104 if(pe.get(0) instanceof ComputingNode)105 return Double.valueOf((( ComputingNode)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue();104 if(pe.get(0) instanceof Node) 105 return Double.valueOf(((Node)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 106 106 if(pe.get(0) instanceof Processor) 107 107 return Double.valueOf(((Processor)pe.get(0)).getPowerInterface().getFrequency()).intValue();
Note: See TracChangeset
for help on using the changeset viewer.