-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathISemanticPlane.cs
More file actions
45 lines (40 loc) · 1.51 KB
/
ISemanticPlane.cs
File metadata and controls
45 lines (40 loc) · 1.51 KB
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
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Waher.Content.Semantic
{
/// <summary>
/// Interface for semantic planes.
/// </summary>
public interface ISemanticPlane : ISemanticModel
{
/// <summary>
/// Gets available triples in the plane, having a given X-coordinate.
/// </summary>
/// <param name="X">X-coordinate.</param>
/// <returns>Available triples, or null if none.</returns>
Task<ISemanticLine> GetTriplesByX(ISemanticElement X);
/// <summary>
/// Gets available triples in the plane, having a given Y-coordinate.
/// </summary>
/// <param name="Y">Y-coordinate.</param>
/// <returns>Available triples, or null if none.</returns>
Task<ISemanticLine> GetTriplesByY(ISemanticElement Y);
/// <summary>
/// Gets available triples in the plane, having a given X and Y-coordinate.
/// </summary>
/// <param name="X">X-coordinate.</param>
/// <param name="Y">Y-coordinate.</param>
/// <returns>Available triples, or null if none.</returns>
Task<IEnumerable<ISemanticTriple>> GetTriplesByXAndY(ISemanticElement X, ISemanticElement Y);
/// <summary>
/// Gets an enumerator of all elements along the X-axis.
/// </summary>
/// <returns>Enumerator of semantic elements.</returns>
Task<IEnumerator<ISemanticElement>> GetXAxisEnumerator();
/// <summary>
/// Gets an enumerator of all elements along the Y-axis.
/// </summary>
/// <returns>Enumerator of semantic elements.</returns>
Task<IEnumerator<ISemanticElement>> GetYAxisEnumerator();
}
}