EvaluatorHelperGetAvailabilityIntervalsT Method (TimeIntervalCollection, IEnumerableT) |
Computes availability intervals as the intersection of the availability of each evaluator in a collection.
Any evaluators that are are ignored.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public static TimeIntervalCollection GetAvailabilityIntervals<T>(
TimeIntervalCollection consideredIntervals,
IEnumerable<T> evaluators
)
where T : IAvailability
Public Shared Function GetAvailabilityIntervals(Of T As IAvailability) (
consideredIntervals As TimeIntervalCollection,
evaluators As IEnumerable(Of T)
) As TimeIntervalCollection
public:
generic<typename T>
where T : IAvailability
static TimeIntervalCollection^ GetAvailabilityIntervals(
TimeIntervalCollection^ consideredIntervals,
IEnumerable<T>^ evaluators
)
static member GetAvailabilityIntervals :
consideredIntervals : TimeIntervalCollection *
evaluators : IEnumerable<'T> -> TimeIntervalCollection when 'T : IAvailability
Parameters
- consideredIntervals
- Type: AGI.Foundation.TimeTimeIntervalCollection
The intervals over which availability information is needed. Returned availability
intervals will be constrained to these intervals.
- evaluators
- Type: System.Collections.GenericIEnumerableT
The collection of evaluators.
Type Parameters
- T
- The type of evaluator.
Return Value
Type:
TimeIntervalCollectionThe intervals over which all evaluators are available.
Exceptions See Also