- 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/timeestimation/RecsTimeEstimationPlugin.java
r826 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 if(pe.get(0) instanceof Processor) 79 79 return ((Processor)pe.get(0)).getParent().getCategory(); … … 84 84 private int getFrequency(PEUnit peUnit){ 85 85 ProcessingElements pe = (ProcessingElements) peUnit; 86 if(pe.get(0) instanceof ComputingNode)87 return Double.valueOf((( ComputingNode)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue();86 if(pe.get(0) instanceof Node) 87 return Double.valueOf(((Node)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 88 88 if(pe.get(0) instanceof Processor) 89 89 return Double.valueOf(((Processor)pe.get(0)).getPowerInterface().getFrequency()).intValue();
Note: See TracChangeset
for help on using the changeset viewer.