-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBaseModel.pde
35 lines (30 loc) · 960 Bytes
/
BaseModel.pde
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
class BaseModel {
String name;
int parameters;
float[] minValues;
float[] maxValues;
float[] defaultValues;
float[] values;
String[] labels;
BaseModel (String name, int parameters) {
this.name = name;
this.minValues = new float[] { Config.Hemesh.Values.Min, Config.Hemesh.Values.Min, Config.Hemesh.Values.Min, Config.Hemesh.Values.Min };
this.maxValues = new float[] { Config.Hemesh.Values.Max, Config.Hemesh.Values.Max, Config.Hemesh.Values.Max, Config.Hemesh.Values.Max };
this.defaultValues = new float[] { Config.Hemesh.Values.Default, 5, 5, 5 };
this.values = this.defaultValues;
this.labels = new String[] { null, null, null, null };
this.parameters = parameters;
}
float[] getMaxValues() {
return this.maxValues;
}
float[] getMinValues() {
return this.minValues;
}
float[] getDefaultValues() {
return this.defaultValues;
}
String[] getLabels() {
return this.labels;
}
}