Changeset 1320 for DCWoRMS/branches


Ignore:
Timestamp:
03/31/14 16:03:35 (11 years ago)
Author:
wojtekp
Message:
 
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  
    1010        protected EventType type; 
    1111        protected EventReason reason; 
    12  
     12        protected Object data; 
    1313        protected String source; 
    14         protected Object data; 
    1514 
    1615        public EnergyEvent(EventType eventType, String source){ 
     
    2019        } 
    2120         
    22         public EnergyEvent(EventType eventType, Object data){ 
     21        public EnergyEvent(EventType eventType, Object data, String source){ 
    2322                this.type = eventType; 
    2423                this.data = data; 
     24                this.source = source; 
    2525                setReason(EventReason.UNKNOWN); 
    2626        } 
    2727         
    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  
    4328        public EnergyEventType getType() { 
    4429                EnergyEventType enEventType = null;  
     
    5035                return enEventType; 
    5136 
     37        } 
     38 
     39        public int getTag() { 
     40                return type.getTag(); 
     41        } 
     42 
     43        public Object getData() { 
     44                return data; 
    5245        } 
    5346 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/EnergyEventType.java

    r1283 r1320  
    1414        POWER_STATE_CHANGED(32), 
    1515        FREQUENCY_CHANGED(64), 
    16         VOLTAGE_CHANGED(128), 
    1716         
    1817        AIRFLOW_STATE_CHANGED(256), 
Note: See TracChangeset for help on using the changeset viewer.