- Timestamp:
- 11/28/13 10:54:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/drs_tst/recs/plugins/timeestimation/RecsTimeEstimationPlugin.java
r1120 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; … … 75 75 //System.out.println("rccc"); 76 76 ProcessingElements pe = (ProcessingElements) peUnit; 77 if(pe.get(0) instanceof ComputingNode)78 return (( ComputingNode)pe.get(0)).getCategory();77 if(pe.get(0) instanceof Node) 78 return ((Node)pe.get(0)).getCategory(); 79 79 Core core = (Core)pe.get(0); 80 80 return core.getParent().getParent().getCategory(); … … 83 83 private int getFrequency(PEUnit peUnit){ 84 84 ProcessingElements pe = (ProcessingElements) peUnit; 85 if(pe.get(0) instanceof ComputingNode)86 return Double.valueOf((( ComputingNode)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue();85 if(pe.get(0) instanceof Node) 86 return Double.valueOf(((Node)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 87 87 Core core = (Core)pe.get(0); 88 88 Processor proc = (Processor) core.getParent(); … … 98 98 try { 99 99 cpuReq = task.getCpuCntRequest(); 100 cpuReq = (( ComputingNode)pe.get(0)).getProcessors().get(0).getCores().size();100 cpuReq = ((Node)pe.get(0)).getProcessors().get(0).getCores().size(); 101 101 } catch (NoSuchFieldException e) { 102 102 cpuReq = 1;
Note: See TracChangeset
for help on using the changeset viewer.