RealtimeAnalysis.PeriodicTask.GetSoftDeadline C# (CSharp) Method

GetSoftDeadline() public method

public GetSoftDeadline ( double startTime, double endTime ) : List
startTime double
endTime double
return List
        public List<double> GetSoftDeadline(double startTime, double endTime)
        {
            List<double> listSoftDeadline = new List<double>();

            double max = endTime / Period;
            for (int i = 0; i < max; i++)
            {
                double value = i * Period + SoftDeadline;
                if (value < startTime)
                    continue;

                listSoftDeadline.Add(value);
            }

            return listSoftDeadline;
        }

Usage Example

Esempio n. 1
0
        public void SetTask(PeriodicTask task, double startTime, double endTime)
        {
            _task = task;
            _startTime = startTime;
            _endTime = endTime;

            _listReleaseTime = _task.GetReleaseTime(_startTime, _endTime);
            _listSoftDeadline = _task.GetSoftDeadline(_startTime, _endTime);
            _listHardDeadline = _task.GetHardDeadline(_startTime, _endTime);
        }
All Usage Examples Of RealtimeAnalysis.PeriodicTask::GetSoftDeadline