Changeset 1320 for DCWoRMS/branches
- Timestamp:
- 03/31/14 16:03:35 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/EnergyEvent.java
r819 r1320 10 10 protected EventType type; 11 11 protected EventReason reason; 12 12 protected Object data; 13 13 protected String source; 14 protected Object data;15 14 16 15 public EnergyEvent(EventType eventType, String source){ … … 20 19 } 21 20 22 public EnergyEvent(EventType eventType, Object data ){21 public EnergyEvent(EventType eventType, Object data, String source){ 23 22 this.type = eventType; 24 23 this.data = data; 24 this.source = source; 25 25 setReason(EventReason.UNKNOWN); 26 26 } 27 27 28 public EnergyEvent(EventType eventType, String source, Object data){29 this.type = eventType;30 this.source = source;31 this.data = data;32 setReason(EventReason.UNKNOWN);33 }34 35 public int getTag() {36 return type.getTag();37 }38 39 public Object getData() {40 return data;41 }42 43 28 public EnergyEventType getType() { 44 29 EnergyEventType enEventType = null; … … 50 35 return enEventType; 51 36 37 } 38 39 public int getTag() { 40 return type.getTag(); 41 } 42 43 public Object getData() { 44 return data; 52 45 } 53 46 -
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/EnergyEventType.java
r1283 r1320 14 14 POWER_STATE_CHANGED(32), 15 15 FREQUENCY_CHANGED(64), 16 VOLTAGE_CHANGED(128),17 16 18 17 AIRFLOW_STATE_CHANGED(256),
Note: See TracChangeset
for help on using the changeset viewer.