public override bool Equals(object x)
        {
            RegularIntervalSchedule r = (RegularIntervalSchedule)x;

            if (base.Equals(x))
            {
                return(r.EndTime == endTime && r.TimeStep == timeStep && r.timePoints == timePoints);
            }
            return(false);
        }
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         RegularIntervalSchedule x = (RegularIntervalSchedule)obj;
         return(CompareHelper.CompareLists(x.timePoints, this.timePoints));
     }
     else
     {
         return(false);
     }
 }