-
Notifications
You must be signed in to change notification settings - Fork 4
/
QueryTermProvider.cs
33 lines (30 loc) · 1.24 KB
/
QueryTermProvider.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
using System.Collections.Generic;
using Org.Vitrivr.CineastApi.Model;
using UnityEngine;
namespace VitrivrVR.Query.Term
{
/// <summary>
/// Abstract class for objects providing <see cref="QueryTerm"/>s.
/// </summary>
public abstract class QueryTermProvider : MonoBehaviour
{
/// <summary>
/// Returns a list of the <see cref="QueryTerm"/>s specified through this query term provider.
///
/// In case this query term provider is disabled or currently does not specify any terms, expected behavior is to
/// return an empty list.
/// </summary>
/// <returns>A list of <see cref="QueryTerm"/>s specified through this query term provider (may be empty).</returns>
public abstract List<QueryTerm> GetTerms();
/// <summary>
/// Returns the descriptive name of the type of query term provider this is.
/// </summary>
/// <returns>The type of provider for display purposes.</returns>
public abstract string GetTypeName();
/// <summary>
/// Sets the displayed name of this instance of the query term provider to the provided name, if supported.
/// </summary>
/// <param name="displayName">Name assigned to this instance.</param>
public abstract void SetInstanceName(string displayName);
}
}