package schedframe.events.scheduling; import schedframe.events.Event; import schedframe.events.EventReason; import schedframe.events.EventType; public class SchedulingEvent implements Event{ protected EventType type; protected EventReason reason; protected String source; public SchedulingEvent(EventType eventType){ this(eventType, EventReason.UNKNOWN); } public SchedulingEvent(EventType eventType, EventReason eventReason){ this.type = eventType; this.reason = eventReason; } public SchedulingEventType getType(){ SchedulingEventType schedEventType; try{ schedEventType = (SchedulingEventType)type; } catch(Exception e){ schedEventType = null; } return schedEventType; } public EventReason getReason(){ return reason; } public void setSource(String value){ this.source = value; } public String getSource(){ return source; } public Object getData() { return null; } }