This repository was archived by the owner on Oct 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPW_Enumes.pde
More file actions
203 lines (185 loc) · 3.96 KB
/
PW_Enumes.pde
File metadata and controls
203 lines (185 loc) · 3.96 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
public enum PW_WasteType {
Total(0),
PaperAndCardboard(1),
Plastic(2),
Wooden(3),
Metallic(4),
Aluminium(5),
Steel(6),
Glass(7),
Other(8);
private int id;
private PW_WasteType(int id) {
this.id = id;
}
public int id() {
return id;
}
public static PW_WasteType fromId(int id) {
switch(id) {
case 0:
return PW_WasteType.Total;
case 1:
return PW_WasteType.PaperAndCardboard;
case 2:
return PW_WasteType.Plastic;
case 3:
return PW_WasteType.Wooden;
case 4:
return PW_WasteType.Metallic;
case 5:
return PW_WasteType.Aluminium;
case 6:
return PW_WasteType.Steel;
case 7:
return PW_WasteType.Glass;
default:
return PW_WasteType.Other;
}
}
}
public enum PW_WstOperType {
WasteGenerated(1),
Recovery(2),
Recycling(3);
private int id;
private PW_WstOperType(int id) {
this.id = id;
}
public int id() {
return id;
}
public static PW_WstOperType fromId(int id) {
switch(id) {
case 1:
return PW_WstOperType.WasteGenerated;
case 2:
return PW_WstOperType.Recovery;
default:
return PW_WstOperType.Recycling;
}
}
}
public enum PW_CountryType {
Austria(43),
Belgium(32),
Bulgaria(359),
Croatia(385),
Cyprus(357),
Czechia(420),
Denmark(45),
Estonia(372),
Finland(358),
France(33),
Germany(49),
Greece(30),
Hungary(36),
//Iceland(354),
Ireland(353),
Italy(39),
Latvia(371),
Liechtenstein(423),
Lithuania(370),
Luxembourg(352),
Malta(356),
Netherlands(31),
Norway(47),
Poland(48),
Portugal(351),
Romania(40),
Slovakia(421),
Slovenia(386),
Spain(34),
Sweden(46),
UnitedKingdom(44),
Nothing(-1);
private int id;
private PW_CountryType(int id) {
this.id = id;
}
public int id() {
return id;
}
public String toString() {
return pwSplitCamelCase(super.toString());
}
public static PW_CountryType fromId(String id) {
return fromId(int(id));
}
public static PW_CountryType fromId(int id) {
switch(id) {
case 32:
return PW_CountryType.Belgium;
case 359:
return PW_CountryType.Bulgaria;
case 420:
return PW_CountryType.Czechia;
case 45:
return PW_CountryType.Denmark;
case 49:
return PW_CountryType.Germany;
case 372:
return PW_CountryType.Estonia;
case 353:
return PW_CountryType.Ireland;
case 30:
return PW_CountryType.Greece;
case 34:
return PW_CountryType.Spain;
case 33:
return PW_CountryType.France;
case 385:
return PW_CountryType.Croatia;
case 39:
return PW_CountryType.Italy;
case 357:
return PW_CountryType.Cyprus;
case 371:
return PW_CountryType.Latvia;
case 370:
return PW_CountryType.Lithuania;
case 352:
return PW_CountryType.Luxembourg;
case 36:
return PW_CountryType.Hungary;
case 356:
return PW_CountryType.Malta;
case 31:
return PW_CountryType.Netherlands;
case 43:
return PW_CountryType.Austria;
case 48:
return PW_CountryType.Poland;
case 351:
return PW_CountryType.Portugal;
case 40:
return PW_CountryType.Romania;
case 386:
return PW_CountryType.Slovenia;
case 358:
return PW_CountryType.Finland;
case 46:
return PW_CountryType.Sweden;
case 44:
return PW_CountryType.UnitedKingdom;
//case 354:
//return PW_CountryType.Iceland;
case 423:
return PW_CountryType.Liechtenstein;
case 47:
return PW_CountryType.Norway;
default:
return PW_CountryType.Nothing;
}
}
}
public enum PW_PageState {
Empty,
Splash,
Overview,
Analyze
}
public enum PW_VisArcMode {
Top,
Bottom
}