예제 #1
0
        public int CompareTo(object obj) // compare to method based on when event occurs (could be further expressed for priority of job types not specified)
        {
            Pevent e = (Pevent)obj;


            return(e.time - this.time);
        }
예제 #2
0
        public override bool Equals(Object obj) // equals method only needed to find departure events exicuting on a certian processor
        {
            Pevent P = (Pevent)obj;

            if (P.type == Pevent.Jobtype.Departure)
            {
                return(this.job.processors == P.processor);
            }
            return(false);
        }