-
Notifications
You must be signed in to change notification settings - Fork 0
/
IInputSource.cs
29 lines (27 loc) · 1.15 KB
/
IInputSource.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
namespace NERVV {
/// <summary>
/// This is the base interface required to implement
/// in order to be a functional input source. Generally,
/// inputs are initialized when enabled and uninitialized
/// when disabled. However, utilize the field InputEnabled
/// to enable or disable the input sources without completely
/// uninitializing the input source; i.e. Stopping a ROS
/// publisher from publishing every second without closing
/// the websocket connection.
/// </summary>
public interface IInputSource {
/// <summary>
/// If the input source is actively publishing to machines
/// or not. Note that the input source may still be inactive
/// even when this is false, just not actively publishing.
/// </summary>
bool InputEnabled { get; set; }
/// <summary>
/// Are multiple instantiations of this script allowed?
/// InputManager will reject multiple types of this script
/// if ExclusiveType is true when added to InputManager.
/// </summary>
bool ExclusiveType { get; set; }
string Name { get; set; }
}
}