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/article2/recs/plugins/timeestimation/RecsTimeEstimationPlugin.java

    r826 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; 
     
    7474                 
    7575                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(); 
    7878                if(pe.get(0) instanceof Processor) 
    7979                        return ((Processor)pe.get(0)).getParent().getCategory(); 
     
    8484        private int getFrequency(PEUnit peUnit){ 
    8585                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(); 
    8888                if(pe.get(0) instanceof Processor) 
    8989                        return Double.valueOf(((Processor)pe.get(0)).getPowerInterface().getFrequency()).intValue(); 
Note: See TracChangeset for help on using the changeset viewer.