- 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/timeestimation/RecsTimeEstimationPlugin.java
r734 r1247 10 10 11 11 import schedframe.events.scheduling.SchedulingEvent; 12 import schedframe.resources.computing. ComputingNode;12 import schedframe.resources.computing.Node; 13 13 import schedframe.resources.computing.Core; 14 14 import schedframe.resources.computing.Processor; … … 74 74 75 75 ProcessingElements pe = (ProcessingElements) peUnit; 76 if(pe.get(0) instanceof ComputingNode)77 return (( ComputingNode)pe.get(0)).getCategory();76 if(pe.get(0) instanceof Node) 77 return ((Node)pe.get(0)).getCategory(); 78 78 Core core = (Core)pe.get(0); 79 79 return core.getParent().getParent().getCategory(); … … 82 82 private int getFrequency(PEUnit peUnit){ 83 83 ProcessingElements pe = (ProcessingElements) peUnit; 84 if(pe.get(0) instanceof ComputingNode)85 return Double.valueOf((( ComputingNode)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue();84 if(pe.get(0) instanceof Node) 85 return Double.valueOf(((Node)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 86 86 Core core = (Core)pe.get(0); 87 87 Processor proc = (Processor) core.getParent();
Note: See TracChangeset
for help on using the changeset viewer.