Modified EventDrivenSchedulingAlgorithm.java