public int CompareTo(object obj) // compare to method based on when event occurs (could be further expressed for priority of job types not specified) { Job1 e = (Job1)obj; return((int)(e.jobTime - this.jobTime)); }
public Job1 Clone() { Job1 b = new Job1(0, new Random()); b.arrivalTime = b.arrivedAt = this.arrivedAt; b.jobTime = this.jobTime; return(b); }