Changeset 1415 for DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/ResourceEvent.java
- Timestamp:
- 07/15/14 16:26:31 (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/ResourceEvent.java
r1320 r1415 2 2 3 3 import schedframe.events.Event; 4 import schedframe.events.EventReason; 4 5 import schedframe.events.EventType; 5 import schedframe.events.scheduling.EventReason;6 6 7 7 8 public class EnergyEvent implements Event{8 public class ResourceEvent implements Event{ 9 9 10 10 protected EventType type; 11 11 protected EventReason reason; 12 protected String source; 12 13 protected Object data; 13 protected String source;14 14 15 public EnergyEvent(EventType eventType, String source){15 public ResourceEvent(EventType eventType, String source){ 16 16 this.type = eventType; 17 17 this.source = source; … … 19 19 } 20 20 21 public EnergyEvent(EventType eventType, Object data, String source){21 public ResourceEvent(EventType eventType, Object data, String source){ 22 22 this.type = eventType; 23 23 this.data = data; … … 26 26 } 27 27 28 public EnergyEventType getType() {29 EnergyEventType enEventType = null;28 public ResourceEventType getType() { 29 ResourceEventType resEventType; 30 30 try{ 31 enEventType = (EnergyEventType)type;31 resEventType = (ResourceEventType)type; 32 32 } catch(Exception e){ 33 33 resEventType = null; 34 34 } 35 return enEventType; 36 37 } 38 39 public int getTag() { 40 return type.getTag(); 35 return resEventType; 41 36 } 42 37
Note: See TracChangeset
for help on using the changeset viewer.