Click or drag to resize

EvaluatorHelper.GetAvailabilityIntervals<T> Method (TimeIntervalCollection, IEnumerable<T>)

Computes availability intervals as the intersection of the availability of each evaluator in a collection. Any evaluators that are null are ignored.

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public static TimeIntervalCollection GetAvailabilityIntervals<T>(
	TimeIntervalCollection consideredIntervals,
	IEnumerable<T> evaluators
)
where T : IAvailability

Parameters

consideredIntervals
Type: AGI.Foundation.Time.TimeIntervalCollection
The intervals over which availability information is needed. Returned availability intervals will be constrained to these intervals.
evaluators
Type: System.Collections.Generic.IEnumerable<T>
The collection of evaluators.

Type Parameters

T
The type of evaluator.

Return Value

Type: TimeIntervalCollection
The intervals over which all evaluators are available.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when evaluators is null.
See Also