public List<JobEvent> GetEventList(double startTime, double endTime)
{
List<JobEvent> listEvent = new List<JobEvent>();
double max = endTime / Period;
for (int i = 0; i < max; i++)
{
double value = i * Period;
if (value < startTime)
continue;
JobEvent e = new JobEvent(this);
e.AbsReleaseTime = value;
e.AbsStartTime = value;
e.AbsSoftDeadline = value + SoftDeadline;
e.AbsHardDeadline = value + HardDeadline;
e.AbsCompleteTime = value + ExecutionTime;
e.RemainExecution = ExecutionTime;
e.JobNumber = i;
listEvent.Add(e);
}
return listEvent;
}