private void UpdateStartTime() { // compute the earliest procedure start time _startTime = MinMaxHelper.MinValue( _procedures, delegate { return(true); }, procedure => procedure.StartTime, null); }
private void UpdateStartTime() { // compute the earliest procedure step start time _startTime = MinMaxHelper.MinValue( _procedureSteps, ps => !ps.IsPreStep, ps => ps.StartTime, null); }
/// <summary> /// Called by a child procedure to tell the order to update its scheduling information. /// </summary> protected internal virtual void UpdateScheduling() { // set the scheduled start time to the earliest non-null scheduled start time of any child procedure _scheduledStartTime = MinMaxHelper.MinValue( _procedures, delegate { return(true); }, procedure => procedure.ScheduledStartTime, null); }
/// <summary> /// Called by child procedure steps to tell this procedure to update its scheduling information. /// </summary> protected internal virtual void UpdateScheduling() { // compute the earliest procedure step scheduled start time (exclude pre-steps) _scheduledStartTime = MinMaxHelper.MinValue( _procedureSteps, ps => !ps.IsPreStep, ps => ps.Scheduling == null ? null : ps.Scheduling.StartTime, null); // the order should never be null, unless this is a brand new instance that has not yet been assigned an order if (_order != null) { _order.UpdateScheduling(); } }