Changeset 1384 for DCWoRMS/branches


Ignore:
Timestamp:
06/18/14 14:05:53 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/schedframe/resources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power/ui/NodePowerInterface.java

    r1321 r1384  
    1414public class NodePowerInterface extends ComputingResourcePowerInterface{ 
    1515 
    16         public static long START_TIME = 600000; 
    17         public static long SHUTDOWN_TIME = 300000; 
    18         public static double START_COST = 4000; 
    19         public static double SHUTDOWN_COST = 2000; 
    20  
    21          
    2216        public NodePowerInterface(ComputingResource resource, PowerProfile pp){ 
    2317                super(resource, pp); 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/units/PEUnit.java

    r477 r1384  
    11package schedframe.resources.units; 
    2  
    3  
    42 
    53 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/units/ProcessingElements.java

    r738 r1384  
    1717        public ProcessingElements(){ 
    1818                super(); 
    19                 resources =  new ArrayList<ComputingResource>(1); 
    20                 provisioner = new ProcessingElementsResourceUnitProvisioner(ResourceUnitState.FREE, 0); 
     19                this.resources =  new ArrayList<ComputingResource>(1); 
     20                this.provisioner = new ProcessingElementsResourceUnitProvisioner(ResourceUnitState.FREE, 0); 
    2121        } 
    2222         
  • DCWoRMS/branches/coolemall/src/schedframe/resources/units/ResourceUnitFactory.java

    r781 r1384  
    3737                        return new SimpleResourceUnit(ResourceUnitNameFactory.createResourceUnitName(unitName), resId, totalAmount, usedAmount);  
    3838        } 
    39          
    40         public static ResourceUnit createUnit(String unitName, int totalAmount, int usedAmount){ 
    41                 if(unitName.equalsIgnoreCase(StandardResourceUnitName.CPU.getName())) 
    42                         return new PEUnit(totalAmount, usedAmount, 1); 
    43                 else if(unitName.equalsIgnoreCase(StandardResourceUnitName.MEMORY.getName())) 
    44                          return new Memory(totalAmount, usedAmount); 
    45                 else if (unitName.equalsIgnoreCase(StandardResourceUnitName.CPUSPEED.getName())) 
    46                         return new CpuSpeed(totalAmount, usedAmount);  
    47                 else 
    48                         return new SimpleResourceUnit(ResourceUnitNameFactory.createResourceUnitName(unitName), totalAmount, usedAmount);  
    49         } 
    50          
    51          
    52         public static ResourceUnit createUnit(ResourceUnitName unitName, int totalAmount, int usedAmount){ 
    53                 if(unitName.equals(StandardResourceUnitName.CPU)) 
    54                         return new PEUnit(totalAmount, usedAmount, 1); 
    55                 else if(unitName.equals(StandardResourceUnitName.MEMORY)) 
    56                          return new Memory(totalAmount, usedAmount); 
    57                 else if (unitName.equals(StandardResourceUnitName.CPUSPEED)) 
    58                         return new CpuSpeed(totalAmount, usedAmount);  
    59                 else 
    60                         return new SimpleResourceUnit(unitName, totalAmount, usedAmount);  
    61         } 
    62          
    63         /*public static ResourceUnit creteUnit(String resourceClass, int totalAmount, int usedAmount){ 
    64                  
    65                 switch(ResourceUnitClass.valueOf(resourceClass)){ 
    66                         case CPU: return new Processors(totalAmount, usedAmount, 1); 
    67                         case MEMORY: return new Memory(totalAmount, usedAmount); 
    68                         case STORAGE: return new Storage(totalAmount, usedAmount); 
    69                 default: 
    70                          
    71                         throw new IllegalArgumentException("Paramter " + resourceClass + " is not supported."); 
    72                 } 
    73         }*/ 
     39 
    7440} 
Note: See TracChangeset for help on using the changeset viewer.