- Timestamp:
- 12/18/14 11:09:56 (10 years ago)
- 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 127 127 if(event.getReason() != EventReason.SIM_INIT) 128 128 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()))){ 130 130 SchedulingEventCommand sec = new SchedulingEventCommand(this); 131 131 sec.execute(event); -
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/description/ComputingResourceDescription.java
r1423 r1453 66 66 this.devices = new ArrayList<Device>(); 67 67 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 } 70 73 } 71 74 }
Note: See TracChangeset
for help on using the changeset viewer.