/
IConsiderationCollection.cs
58 lines (53 loc) · 2.22 KB
/
IConsiderationCollection.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// GPL v3 License
//
// Copyright (c) 2016-2017 Bismur Studios Ltd.
// Copyright (c) 2016-2017 Ioannis Giagkiozis
//
// IConsiderationCollection.cs is part of Crystal AI.
//
// Crystal AI is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Crystal AI is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Crystal AI. If not, see <http://www.gnu.org/licenses/>.
namespace Crystal {
/// <summary>
/// Interface for a collection that contains <see cref="T:Crystal.IConsideration"/>s
/// and <see cref="T:Crystal.ICompositeConsideration"/>s.
/// </summary>
public interface IConsiderationCollection {
/// <summary>
/// Adds the specified consideration.
/// </summary>
/// <param name="consideration">The consideration.</param>
/// <returns>
/// <c>true</c> if the consideration was successfully added to the collection, <c>false</c> otherwise.
/// </returns>
bool Add(IConsideration consideration);
/// <summary>
/// Determines whether this collection contains a consideration associated with the given identifier.
/// </summary>
/// <param name="considerationId">The consideration identifier.</param>
/// <returns>
/// <c>true</c> if the collection contains a consideration with the given identifier; otherwise <c>false</c>.
/// </returns>
bool Contains(string considerationId);
/// <summary>
/// Removes all considerations from this collection.
/// </summary>
void Clear();
/// <summary>
/// Creates a consideration that has the specified identifier, if no such consideration
/// exists within this collection <c>null</c> is returned.
/// </summary>
/// <param name="considerationId">The consideration identifier.</param>
IConsideration Create(string considerationId);
}
}