Ignore:
Timestamp:
07/15/14 16:26:31 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 moved

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/ResourceEvent.java

    r1320 r1415  
    22 
    33import schedframe.events.Event; 
     4import schedframe.events.EventReason; 
    45import schedframe.events.EventType; 
    5 import schedframe.events.scheduling.EventReason; 
    66 
    77 
    8 public class EnergyEvent implements Event{ 
     8public class ResourceEvent implements Event{ 
    99 
    1010        protected EventType type; 
    1111        protected EventReason reason; 
     12        protected String source; 
    1213        protected Object data; 
    13         protected String source; 
    1414 
    15         public EnergyEvent(EventType eventType, String source){ 
     15        public ResourceEvent(EventType eventType, String source){ 
    1616                this.type = eventType; 
    1717                this.source = source; 
     
    1919        } 
    2020         
    21         public EnergyEvent(EventType eventType, Object data, String source){ 
     21        public ResourceEvent(EventType eventType, Object data, String source){ 
    2222                this.type = eventType; 
    2323                this.data = data; 
     
    2626        } 
    2727         
    28         public EnergyEventType getType() { 
    29                 EnergyEventType enEventType = null;  
     28        public ResourceEventType getType() { 
     29                ResourceEventType resEventType;  
    3030                try{ 
    31                         enEventType = (EnergyEventType)type; 
     31                        resEventType = (ResourceEventType)type; 
    3232                } catch(Exception e){ 
    33  
     33                        resEventType = null;  
    3434                } 
    35                 return enEventType; 
    36  
    37         } 
    38  
    39         public int getTag() { 
    40                 return type.getTag(); 
     35                return resEventType; 
    4136        } 
    4237 
Note: See TracChangeset for help on using the changeset viewer.