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

Legend:

Unmodified
Added
Removed
  • 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.