Ignore:
Timestamp:
11/28/13 10:54:54 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/test/drs_tst/recs/plugins/timeestimation/RecsTimeEstimationPlugin.java

    r1120 r1247  
    1010 
    1111import schedframe.events.scheduling.SchedulingEvent; 
    12 import schedframe.resources.computing.ComputingNode; 
     12import schedframe.resources.computing.Node; 
    1313import schedframe.resources.computing.Core; 
    1414import schedframe.resources.computing.Processor; 
     
    7575                //System.out.println("rccc"); 
    7676                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(); 
    7979                Core core = (Core)pe.get(0); 
    8080                return core.getParent().getParent().getCategory(); 
     
    8383        private int getFrequency(PEUnit peUnit){ 
    8484                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(); 
    8787                Core core = (Core)pe.get(0); 
    8888                Processor proc = (Processor) core.getParent(); 
     
    9898                try { 
    9999                        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(); 
    101101                } catch (NoSuchFieldException e) { 
    102102                                cpuReq = 1; 
Note: See TracChangeset for help on using the changeset viewer.