Ignore:
Timestamp:
02/04/16 14:19:12 (9 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/experiments/simpat2014/models/article/CpuEnergyEstimationPlugin.java

    r1500 r1583  
    154154                for(Device device: cpu.getParent().getParent().getResourceCharacteristic().getDevices()){ 
    155155                        if(device.getType().equals(StandardResourceType.Fan)){ 
    156                                 if(Integer.valueOf(device.getName().split("_")[1]) == Integer.valueOf(cpu.getParent().getName().split("_")[1]) /*|| Integer.valueOf(device.getName().split("_")[1]) == Integer.valueOf(cpu.getParent().getName().split("_")[1]) - EnvironmentConditions.NODES_IN_A_ROW*/){ 
     156                                if(Integer.valueOf(device.getName().split("_")[1]).intValue() == Integer.valueOf(cpu.getParent().getName().split("_")[1]).intValue() /*|| Integer.valueOf(device.getName().split("_")[1]) == Integer.valueOf(cpu.getParent().getName().split("_")[1]) - EnvironmentConditions.NODES_IN_A_ROW*/){ 
    157157                                        Fan fan = (Fan) device; 
    158158                                        V = fan.getAirflowInterface().getRecentAirflow().getValue(); 
     
    196196                NodeGroup ng = (NodeGroup) cpu.getParent().getParent(); 
    197197                for(Node n: ng.getNodes()){ 
    198                         if(Integer.valueOf(n.getName().split("_")[1]) - Integer.valueOf(cpu.getParent().getName().split("_")[1]) == EnvironmentConditions.NODES_IN_A_ROW){ 
     198                        if(Integer.valueOf(n.getName().split("_")[1]).intValue() - Integer.valueOf(cpu.getParent().getName().split("_")[1]).intValue() == EnvironmentConditions.NODES_IN_A_ROW){ 
    199199                                Tin = n.getThermalInterface().getRecentTemperature().getValue(); 
    200200 
Note: See TracChangeset for help on using the changeset viewer.