-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilterSetting.m
More file actions
38 lines (30 loc) · 1.08 KB
/
FilterSetting.m
File metadata and controls
38 lines (30 loc) · 1.08 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
classdef FilterSetting
%FILTERSETTING Setting for a filter
properties
Name char = 'Unnamed Filter' % Name of setting
Default double = 1;
Bounds (1,2) double = [-Inf, Inf] % Bounds of setting in format [lowerbound, upperbound]
ForceInteger logical = false % Is this required to be an integer?
Inclusivity logical = [true, true] % Are lower and upper limits inclusive?
end
methods
function obj = FilterSetting(Name,Default,Bounds,ForceInteger,Inclusivity)
%FILTERSETTING Construct an instance of this class
if(nargin > 0)
obj.Name = Name;
end
if(nargin > 1)
obj.Default = Default;
end
if(nargin > 2)
obj.Bounds = Bounds;
end
if(nargin > 3)
obj.ForceInteger = ForceInteger;
end
if(nargin > 4)
obj.Inclusivity = Inclusivity;
end
end
end
end