-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathICapabilities.cs
38 lines (33 loc) · 1.33 KB
/
ICapabilities.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2023, Phoenix Contact GmbH & Co. KG
// Licensed under the Apache License, Version 2.0
using System.Collections.Generic;
namespace Moryx.AbstractionLayer.Capabilities
{
/// <summary>
/// Common capabilities interface
/// </summary>
public interface ICapabilities
{
/// <summary>
/// Flag if the capabilities of this instance are implemented by sub instances
/// </summary>
bool IsCombined { get; }
/// <summary>
/// Checks whether this capability are fully provided by the other object object complies to the given one.
/// </summary>
/// <param name="provided">The candidate of provided capabilities</param>
/// <returns><c>true</c> if this capabilities are provided by the given ones or <c>false</c> otherwise.</returns>
bool ProvidedBy(ICapabilities provided);
/// <summary>
/// Check if this capability can provide the required capabilities
/// </summary>
/// <param name="required">The required capabilities we have to match</param>
/// <returns></returns>
bool Provides(ICapabilities required);
/// <summary>
/// Get all single capabilities of this implementation
/// </summary>
/// <returns></returns>
IEnumerable<ICapabilities> GetAll();
}
}