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/energy/RecsNodeBaseEEP.java

    r1210 r1247  
    1010 
    1111import schedframe.events.scheduling.EventReason; 
    12 import schedframe.resources.computing.ComputingNode; 
     12import schedframe.resources.computing.Node; 
    1313import schedframe.resources.computing.ComputingResource; 
    1414import schedframe.resources.computing.Core; 
     
    137137                 
    138138                ProcessingElements pe = (ProcessingElements) peUnit; 
    139                 if(pe.get(0) instanceof ComputingNode) 
    140                         return ((ComputingNode)pe.get(0)).getCategory(); 
     139                if(pe.get(0) instanceof Node) 
     140                        return ((Node)pe.get(0)).getCategory(); 
    141141                if(pe.get(0) instanceof Processor) 
    142142                        return ((Processor)pe.get(0)).getParent().getCategory(); 
     
    147147        private int getFrequency(PEUnit peUnit){ 
    148148                ProcessingElements pe = (ProcessingElements) peUnit; 
    149                 if(pe.get(0) instanceof ComputingNode) 
    150                         return Double.valueOf(((ComputingNode)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 
     149                if(pe.get(0) instanceof Node) 
     150                        return Double.valueOf(((Node)pe.get(0)).getProcessors().get(0).getPowerInterface().getFrequency()).intValue(); 
    151151                if(pe.get(0) instanceof Processor) 
    152152                        return Double.valueOf(((Processor)pe.get(0)).getPowerInterface().getFrequency()).intValue(); 
Note: See TracChangeset for help on using the changeset viewer.