- Timestamp:
- 03/31/14 16:01:19 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/gridsim/dcworms/DCWormsTags.java
r1295 r1316 34 34 public static final int TASK_REQUESTED_TIME_EXPIRED = DCWORMSBASE + 6; 35 35 36 public static final int POWER_LIMIT_EXCEEDED = DCWORMSBASE + 7; 36 public static final int RESOURCE_STATE_CHANGED = DCWORMSBASE + 7; 37 38 public static final int POWER_LIMIT_EXCEEDED = DCWORMSBASE + 8; 37 39 38 40 -
DCWoRMS/branches/coolemall/src/schedframe/events/EventCommand.java
r477 r1316 4 4 5 5 public interface EventCommand { 6 7 public void execute(EventType evType);8 6 9 7 public void execute(Event event); -
DCWoRMS/branches/coolemall/src/schedframe/events/ResourceEventCommand.java
r1207 r1316 10 10 this.resource = resource; 11 11 } 12 13 public void execute(EventType evType) {14 //TODO - add event factory15 throw new RuntimeException("not implemented");16 }17 12 18 13 public void execute(Event event) { -
DCWoRMS/branches/coolemall/src/schedframe/events/scheduling/SchedulingEvent.java
r477 r1316 16 16 17 17 public SchedulingEvent(EventType eventType, EventReason eventReason){ 18 t ype = eventType;19 reason = eventReason;18 this.type = eventType; 19 this.reason = eventReason; 20 20 } 21 21 … … 39 39 40 40 public String getSource(){ 41 return this.source;41 return source; 42 42 } 43 43 … … 46 46 } 47 47 48 @Override49 48 public Object getData() { 50 49 return null; -
DCWoRMS/branches/coolemall/src/schedframe/events/scheduling/SchedulingEventCommand.java
r1207 r1316 3 3 import schedframe.events.Event; 4 4 import schedframe.events.EventCommand; 5 import schedframe.events.EventType;6 5 import schedframe.resources.computing.ComputingResource; 7 6 … … 14 13 } 15 14 16 public void execute(EventType evType) {17 SchedulingEvent ev = new SchedulingEvent(evType);18 ev.setSource(compResource.getFullName());19 compResource.getEventHandler().handleSchedulingEvent(ev);20 }21 22 15 public void execute(Event event) { 23 SchedulingEvent ev = new SchedulingEvent(event.getType());16 SchedulingEvent ev = new ResourceStateChangedEvent(compResource.getFullName(), event.getType()); 24 17 ev.setSource(compResource.getFullName()); 25 18 compResource.getEventHandler().handleSchedulingEvent(ev);
Note: See TracChangeset
for help on using the changeset viewer.