Changeset 1453 for DCWoRMS/branches


Ignore:
Timestamp:
12/18/14 11:09:56 (10 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/gridsim/dcworms/DCWormsTags.java

    r1440 r1453  
    4848        public static final int TASK_MOVE = DCWORMSBASE + 13; 
    4949         
     50        public static final int RESOURCE_TEMPERATURE_LIMIT_EXCEEDED = DCWORMSBASE + 14; 
     51         
    5052    public static final int CREATED = 0; 
    5153 
     
    7577 
    7678    public static final int FAILED = 13; 
     79 
     80        public static final int UPDATE_TEMPERATURE = 14; 
     81         
     82        public static final int ADJUST_FANS = 15; 
    7783     
    7884} 
  • DCWoRMS/branches/coolemall/src/schedframe/events/scheduling/SchedulingEventType.java

    r1440 r1453  
    3434        RESOURCE_POWER_STATE_CHANGED, 
    3535         
    36         RESOURCE_POWER_LIMIT_EXCEEDED; 
     36        RESOURCE_POWER_LIMIT_EXCEEDED, 
     37        RESOURCE_TEMPERATURE_LIMIT_EXCEEDED; 
    3738 
    3839         
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/ComputingResource.java

    r1447 r1453  
    127127                if(event.getReason() != EventReason.SIM_INIT) 
    128128                        triggerEventUp(event); 
    129                 if((scheduler != null && (parent != null && scheduler != parent.getScheduler()))  && !event.getSource().equals(scheduler.getFullName())){ 
     129                if((scheduler != null && (parent != null && scheduler != parent.getScheduler()))  && (event.getSource() != null && !event.getSource().equals(scheduler.getFullName()))){ 
    130130                        SchedulingEventCommand sec = new SchedulingEventCommand(this); 
    131131                        sec.execute(event); 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/description/ComputingResourceDescription.java

    r1423 r1453  
    6666                        this.devices = new ArrayList<Device>(); 
    6767                        for(int i = 0; i < dev.length; i++){ 
    68                                 Device device =  DeviceFactory.createDevice(new DeviceDescription(dev[i])); 
    69                                 this.devices.add(device); 
     68                                long devCount = dev[i].getCount() > 1 ? dev[i].getCount() : 1; 
     69                                for(int j = 0; j < devCount; j++){ 
     70                                        Device device =  DeviceFactory.createDevice(new DeviceDescription(dev[i])); 
     71                                        this.devices.add(device); 
     72                                } 
    7073                        } 
    7174                } 
Note: See TracChangeset for help on using the changeset viewer.