Skip to main content

cimstructs/
ExcAC2A.rs

1/// Modified IEEE AC2A alternator-supplied rectifier excitation system with different field current limit.
2#[derive(Debug, Default, Clone, serde::Serialize, serde::Deserialize)]
3pub struct ExcAC2A {
4    #[serde(flatten)]
5    pub base: super::ExcitationSystemDynamics,
6    /// Indicates if HV gate is active (HVgate). true = gate is used false = gate is not used. Typical value = true.
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub hvgate: Option<bool>,
9    /// Voltage regulator gain (Ka) (> 0). Typical value = 400.
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub ka: Option<f64>,
12    /// Second stage regulator gain (Kb) (> 0). Exciter field current controller gain. Typical value = 25.
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub kb: Option<f64>,
15    /// Second stage regulator gain (Kb1). It is exciter field current controller gain used as alternative to Kb to represent a variant of the ExcAC2A model. Typical value = 25.
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub kb1: Option<f64>,
18    /// Rectifier loading factor proportional to commutating reactance (Kc) (>= 0). Typical value = 0,28.
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub kc: Option<f64>,
21    /// Demagnetizing factor, a function of exciter alternator reactances (Kd) (>= 0). Typical value = 0,35.
22    #[serde(skip_serializing_if = "Option::is_none")]
23    pub kd: Option<f64>,
24    /// Exciter constant related to self-excited field (Ke). Typical value = 1.
25    #[serde(skip_serializing_if = "Option::is_none")]
26    pub ke: Option<f64>,
27    /// Excitation control system stabilizer gains (Kf) (>= 0). Typical value = 0,03.
28    #[serde(skip_serializing_if = "Option::is_none")]
29    pub kf: Option<f64>,
30    /// Exciter field current feedback gain (Kh) (>= 0). Typical value = 1.
31    #[serde(skip_serializing_if = "Option::is_none")]
32    pub kh: Option<f64>,
33    /// Exciter field current limiter gain (Kl). Typical value = 10.
34    #[serde(skip_serializing_if = "Option::is_none")]
35    pub kl: Option<f64>,
36    /// Coefficient to allow different usage of the model (Kl1). Typical value = 1.
37    #[serde(skip_serializing_if = "Option::is_none")]
38    pub kl1: Option<f64>,
39    /// Coefficient to allow different usage of the model-speed coefficient (Ks) (>= 0). Typical value = 0.
40    #[serde(skip_serializing_if = "Option::is_none")]
41    pub ks: Option<f64>,
42    /// Indicates if LV gate is active (LVgate). true = gate is used false = gate is not used. Typical value = true.
43    #[serde(skip_serializing_if = "Option::is_none")]
44    pub lvgate: Option<bool>,
45    /// Exciter saturation function value at the corresponding exciter voltage, Ve1, back of commutating reactance (Se[Ve1]) (>= 0). Typical value = 0,037.
46    #[serde(skip_serializing_if = "Option::is_none")]
47    pub seve1: Option<f64>,
48    /// Exciter saturation function value at the corresponding exciter voltage, Ve2, back of commutating reactance (Se[Ve2]) (>= 0). Typical value = 0,012.
49    #[serde(skip_serializing_if = "Option::is_none")]
50    pub seve2: Option<f64>,
51    /// Voltage regulator time constant (Ta) (> 0). Typical value = 0,02.
52    #[serde(skip_serializing_if = "Option::is_none")]
53    pub ta: Option<f64>,
54    /// Voltage regulator time constant (Tb) (>= 0). Typical value = 0.
55    #[serde(skip_serializing_if = "Option::is_none")]
56    pub tb: Option<f64>,
57    /// Voltage regulator time constant (Tc) (>= 0). Typical value = 0.
58    #[serde(skip_serializing_if = "Option::is_none")]
59    pub tc: Option<f64>,
60    /// Exciter time constant, integration rate associated with exciter control (Te) (> 0). Typical value = 0,6.
61    #[serde(skip_serializing_if = "Option::is_none")]
62    pub te: Option<f64>,
63    /// Excitation control system stabilizer time constant (Tf) (> 0). Typical value = 1.
64    #[serde(skip_serializing_if = "Option::is_none")]
65    pub tf: Option<f64>,
66    /// Maximum voltage regulator output (Vamax) (> 0). Typical value = 8.
67    #[serde(skip_serializing_if = "Option::is_none")]
68    pub vamax: Option<f64>,
69    /// Minimum voltage regulator output (Vamin) (< 0). Typical value = -8.
70    #[serde(skip_serializing_if = "Option::is_none")]
71    pub vamin: Option<f64>,
72    /// Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve1) (> 0). Typical value = 4,4.
73    #[serde(skip_serializing_if = "Option::is_none")]
74    pub ve1: Option<f64>,
75    /// Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve2) (> 0). Typical value = 3,3.
76    #[serde(skip_serializing_if = "Option::is_none")]
77    pub ve2: Option<f64>,
78    /// Exciter field current limit reference (Vfemax) (>= 0). Typical value = 4,4.
79    #[serde(skip_serializing_if = "Option::is_none")]
80    pub vfemax: Option<f64>,
81    /// Maximum exciter field current (Vlr) (> 0). Typical value = 4,4.
82    #[serde(skip_serializing_if = "Option::is_none")]
83    pub vlr: Option<f64>,
84    /// Maximum voltage regulator outputs (Vrmax) (> 0). Typical value = 105.
85    #[serde(skip_serializing_if = "Option::is_none")]
86    pub vrmax: Option<f64>,
87    /// Minimum voltage regulator outputs (Vrmin) (< 0). Typical value = -95.
88    #[serde(skip_serializing_if = "Option::is_none")]
89    pub vrmin: Option<f64>,
90}
91impl crate::base::CimElement for ExcAC2A {
92    fn mrid(&self) -> &str { &self.base.base.base.id }
93    fn type_name(&self) -> &'static str { "ExcAC2A" }
94    fn as_any(&self) -> &dyn std::any::Any { self }
95    fn to_json_value(&self) -> serde_json::Value {
96        serde_json::to_value(self).unwrap_or(serde_json::Value::Null)
97    }
98    fn to_block(&self) -> crate::base::RdfBlock {
99        let mut block = self.base.to_block();
100        block.type_name = "ExcAC2A".to_string();
101        if let Some(v) = self.hvgate {
102            block.fields.insert("ExcAC2A.hvgate".into(), crate::base::FieldValue::Text(v.to_string()));
103        }
104        if let Some(v) = self.ka {
105            block.fields.insert("ExcAC2A.ka".into(), crate::base::FieldValue::Text(v.to_string()));
106        }
107        if let Some(v) = self.kb {
108            block.fields.insert("ExcAC2A.kb".into(), crate::base::FieldValue::Text(v.to_string()));
109        }
110        if let Some(v) = self.kb1 {
111            block.fields.insert("ExcAC2A.kb1".into(), crate::base::FieldValue::Text(v.to_string()));
112        }
113        if let Some(v) = self.kc {
114            block.fields.insert("ExcAC2A.kc".into(), crate::base::FieldValue::Text(v.to_string()));
115        }
116        if let Some(v) = self.kd {
117            block.fields.insert("ExcAC2A.kd".into(), crate::base::FieldValue::Text(v.to_string()));
118        }
119        if let Some(v) = self.ke {
120            block.fields.insert("ExcAC2A.ke".into(), crate::base::FieldValue::Text(v.to_string()));
121        }
122        if let Some(v) = self.kf {
123            block.fields.insert("ExcAC2A.kf".into(), crate::base::FieldValue::Text(v.to_string()));
124        }
125        if let Some(v) = self.kh {
126            block.fields.insert("ExcAC2A.kh".into(), crate::base::FieldValue::Text(v.to_string()));
127        }
128        if let Some(v) = self.kl {
129            block.fields.insert("ExcAC2A.kl".into(), crate::base::FieldValue::Text(v.to_string()));
130        }
131        if let Some(v) = self.kl1 {
132            block.fields.insert("ExcAC2A.kl1".into(), crate::base::FieldValue::Text(v.to_string()));
133        }
134        if let Some(v) = self.ks {
135            block.fields.insert("ExcAC2A.ks".into(), crate::base::FieldValue::Text(v.to_string()));
136        }
137        if let Some(v) = self.lvgate {
138            block.fields.insert("ExcAC2A.lvgate".into(), crate::base::FieldValue::Text(v.to_string()));
139        }
140        if let Some(v) = self.seve1 {
141            block.fields.insert("ExcAC2A.seve1".into(), crate::base::FieldValue::Text(v.to_string()));
142        }
143        if let Some(v) = self.seve2 {
144            block.fields.insert("ExcAC2A.seve2".into(), crate::base::FieldValue::Text(v.to_string()));
145        }
146        if let Some(v) = self.ta {
147            block.fields.insert("ExcAC2A.ta".into(), crate::base::FieldValue::Text(v.to_string()));
148        }
149        if let Some(v) = self.tb {
150            block.fields.insert("ExcAC2A.tb".into(), crate::base::FieldValue::Text(v.to_string()));
151        }
152        if let Some(v) = self.tc {
153            block.fields.insert("ExcAC2A.tc".into(), crate::base::FieldValue::Text(v.to_string()));
154        }
155        if let Some(v) = self.te {
156            block.fields.insert("ExcAC2A.te".into(), crate::base::FieldValue::Text(v.to_string()));
157        }
158        if let Some(v) = self.tf {
159            block.fields.insert("ExcAC2A.tf".into(), crate::base::FieldValue::Text(v.to_string()));
160        }
161        if let Some(v) = self.vamax {
162            block.fields.insert("ExcAC2A.vamax".into(), crate::base::FieldValue::Text(v.to_string()));
163        }
164        if let Some(v) = self.vamin {
165            block.fields.insert("ExcAC2A.vamin".into(), crate::base::FieldValue::Text(v.to_string()));
166        }
167        if let Some(v) = self.ve1 {
168            block.fields.insert("ExcAC2A.ve1".into(), crate::base::FieldValue::Text(v.to_string()));
169        }
170        if let Some(v) = self.ve2 {
171            block.fields.insert("ExcAC2A.ve2".into(), crate::base::FieldValue::Text(v.to_string()));
172        }
173        if let Some(v) = self.vfemax {
174            block.fields.insert("ExcAC2A.vfemax".into(), crate::base::FieldValue::Text(v.to_string()));
175        }
176        if let Some(v) = self.vlr {
177            block.fields.insert("ExcAC2A.vlr".into(), crate::base::FieldValue::Text(v.to_string()));
178        }
179        if let Some(v) = self.vrmax {
180            block.fields.insert("ExcAC2A.vrmax".into(), crate::base::FieldValue::Text(v.to_string()));
181        }
182        if let Some(v) = self.vrmin {
183            block.fields.insert("ExcAC2A.vrmin".into(), crate::base::FieldValue::Text(v.to_string()));
184        }
185        block
186    }
187}
188
189impl ExcAC2A {
190    pub fn from_block(b: &crate::base::RdfBlock) -> Self {
191        let mut obj = Self::default();
192        obj.base.base.base.id.clone_from(&b.mrid);
193        for (key, val) in &b.fields {
194            match key.as_str() {
195                "ExcAC2A.hvgate" => {
196                    match val {
197                        crate::base::FieldValue::Text(sv) => { obj.hvgate = Some(sv.trim() == "true"); }
198                        crate::base::FieldValue::TextList(svs) => {
199                            if let Some(sv) = svs.last() { obj.hvgate = Some(sv.trim() == "true"); }
200                        }
201                        _ => {}
202                    }
203                }
204                "ExcAC2A.ka" => {
205                    match val {
206                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.ka = Some(v); } }
207                        crate::base::FieldValue::TextList(svs) => {
208                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.ka = Some(v); } }
209                        }
210                        _ => {}
211                    }
212                }
213                "ExcAC2A.kb" => {
214                    match val {
215                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kb = Some(v); } }
216                        crate::base::FieldValue::TextList(svs) => {
217                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kb = Some(v); } }
218                        }
219                        _ => {}
220                    }
221                }
222                "ExcAC2A.kb1" => {
223                    match val {
224                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kb1 = Some(v); } }
225                        crate::base::FieldValue::TextList(svs) => {
226                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kb1 = Some(v); } }
227                        }
228                        _ => {}
229                    }
230                }
231                "ExcAC2A.kc" => {
232                    match val {
233                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kc = Some(v); } }
234                        crate::base::FieldValue::TextList(svs) => {
235                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kc = Some(v); } }
236                        }
237                        _ => {}
238                    }
239                }
240                "ExcAC2A.kd" => {
241                    match val {
242                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kd = Some(v); } }
243                        crate::base::FieldValue::TextList(svs) => {
244                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kd = Some(v); } }
245                        }
246                        _ => {}
247                    }
248                }
249                "ExcAC2A.ke" => {
250                    match val {
251                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.ke = Some(v); } }
252                        crate::base::FieldValue::TextList(svs) => {
253                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.ke = Some(v); } }
254                        }
255                        _ => {}
256                    }
257                }
258                "ExcAC2A.kf" => {
259                    match val {
260                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kf = Some(v); } }
261                        crate::base::FieldValue::TextList(svs) => {
262                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kf = Some(v); } }
263                        }
264                        _ => {}
265                    }
266                }
267                "ExcAC2A.kh" => {
268                    match val {
269                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kh = Some(v); } }
270                        crate::base::FieldValue::TextList(svs) => {
271                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kh = Some(v); } }
272                        }
273                        _ => {}
274                    }
275                }
276                "ExcAC2A.kl" => {
277                    match val {
278                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kl = Some(v); } }
279                        crate::base::FieldValue::TextList(svs) => {
280                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kl = Some(v); } }
281                        }
282                        _ => {}
283                    }
284                }
285                "ExcAC2A.kl1" => {
286                    match val {
287                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.kl1 = Some(v); } }
288                        crate::base::FieldValue::TextList(svs) => {
289                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.kl1 = Some(v); } }
290                        }
291                        _ => {}
292                    }
293                }
294                "ExcAC2A.ks" => {
295                    match val {
296                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.ks = Some(v); } }
297                        crate::base::FieldValue::TextList(svs) => {
298                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.ks = Some(v); } }
299                        }
300                        _ => {}
301                    }
302                }
303                "ExcAC2A.lvgate" => {
304                    match val {
305                        crate::base::FieldValue::Text(sv) => { obj.lvgate = Some(sv.trim() == "true"); }
306                        crate::base::FieldValue::TextList(svs) => {
307                            if let Some(sv) = svs.last() { obj.lvgate = Some(sv.trim() == "true"); }
308                        }
309                        _ => {}
310                    }
311                }
312                "ExcAC2A.seve1" => {
313                    match val {
314                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.seve1 = Some(v); } }
315                        crate::base::FieldValue::TextList(svs) => {
316                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.seve1 = Some(v); } }
317                        }
318                        _ => {}
319                    }
320                }
321                "ExcAC2A.seve2" => {
322                    match val {
323                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.seve2 = Some(v); } }
324                        crate::base::FieldValue::TextList(svs) => {
325                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.seve2 = Some(v); } }
326                        }
327                        _ => {}
328                    }
329                }
330                "ExcAC2A.ta" => {
331                    match val {
332                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.ta = Some(v); } }
333                        crate::base::FieldValue::TextList(svs) => {
334                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.ta = Some(v); } }
335                        }
336                        _ => {}
337                    }
338                }
339                "ExcAC2A.tb" => {
340                    match val {
341                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.tb = Some(v); } }
342                        crate::base::FieldValue::TextList(svs) => {
343                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.tb = Some(v); } }
344                        }
345                        _ => {}
346                    }
347                }
348                "ExcAC2A.tc" => {
349                    match val {
350                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.tc = Some(v); } }
351                        crate::base::FieldValue::TextList(svs) => {
352                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.tc = Some(v); } }
353                        }
354                        _ => {}
355                    }
356                }
357                "ExcAC2A.te" => {
358                    match val {
359                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.te = Some(v); } }
360                        crate::base::FieldValue::TextList(svs) => {
361                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.te = Some(v); } }
362                        }
363                        _ => {}
364                    }
365                }
366                "ExcAC2A.tf" => {
367                    match val {
368                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.tf = Some(v); } }
369                        crate::base::FieldValue::TextList(svs) => {
370                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.tf = Some(v); } }
371                        }
372                        _ => {}
373                    }
374                }
375                "ExcAC2A.vamax" => {
376                    match val {
377                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.vamax = Some(v); } }
378                        crate::base::FieldValue::TextList(svs) => {
379                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.vamax = Some(v); } }
380                        }
381                        _ => {}
382                    }
383                }
384                "ExcAC2A.vamin" => {
385                    match val {
386                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.vamin = Some(v); } }
387                        crate::base::FieldValue::TextList(svs) => {
388                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.vamin = Some(v); } }
389                        }
390                        _ => {}
391                    }
392                }
393                "ExcAC2A.ve1" => {
394                    match val {
395                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.ve1 = Some(v); } }
396                        crate::base::FieldValue::TextList(svs) => {
397                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.ve1 = Some(v); } }
398                        }
399                        _ => {}
400                    }
401                }
402                "ExcAC2A.ve2" => {
403                    match val {
404                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.ve2 = Some(v); } }
405                        crate::base::FieldValue::TextList(svs) => {
406                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.ve2 = Some(v); } }
407                        }
408                        _ => {}
409                    }
410                }
411                "ExcAC2A.vfemax" => {
412                    match val {
413                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.vfemax = Some(v); } }
414                        crate::base::FieldValue::TextList(svs) => {
415                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.vfemax = Some(v); } }
416                        }
417                        _ => {}
418                    }
419                }
420                "ExcAC2A.vlr" => {
421                    match val {
422                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.vlr = Some(v); } }
423                        crate::base::FieldValue::TextList(svs) => {
424                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.vlr = Some(v); } }
425                        }
426                        _ => {}
427                    }
428                }
429                "ExcAC2A.vrmax" => {
430                    match val {
431                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.vrmax = Some(v); } }
432                        crate::base::FieldValue::TextList(svs) => {
433                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.vrmax = Some(v); } }
434                        }
435                        _ => {}
436                    }
437                }
438                "ExcAC2A.vrmin" => {
439                    match val {
440                        crate::base::FieldValue::Text(sv) => { if let Ok(v) = sv.trim().parse() { obj.vrmin = Some(v); } }
441                        crate::base::FieldValue::TextList(svs) => {
442                            if let Some(sv) = svs.last() { if let Ok(v) = sv.trim().parse() { obj.vrmin = Some(v); } }
443                        }
444                        _ => {}
445                    }
446                }
447                "ExcitationSystemDynamics.SynchronousMachineDynamics" => {
448                    if let crate::base::FieldValue::Resource(sv) = val {
449                        obj.base.synchronous_machine_dynamics = Some(crate::base::MridRef { mrid: sv.clone() });
450                    }
451                }
452                "DynamicsFunctionBlock.enabled" => {
453                    match val {
454                        crate::base::FieldValue::Text(sv) => { obj.base.base.enabled = Some(sv.trim() == "true"); }
455                        crate::base::FieldValue::TextList(svs) => {
456                            if let Some(sv) = svs.last() { obj.base.base.enabled = Some(sv.trim() == "true"); }
457                        }
458                        _ => {}
459                    }
460                }
461                "IdentifiedObject.description" => {
462                    match val {
463                        crate::base::FieldValue::Text(sv) => { obj.base.base.base.description = sv.clone(); }
464                        crate::base::FieldValue::TextList(svs) => {
465                            if let Some(sv) = svs.last() { obj.base.base.base.description = sv.clone(); }
466                        }
467                        _ => {}
468                    }
469                }
470                "IdentifiedObject.energyIdentCodeEic" => {
471                    match val {
472                        crate::base::FieldValue::Text(sv) => { obj.base.base.base.energy_ident_code_eic = sv.clone(); }
473                        crate::base::FieldValue::TextList(svs) => {
474                            if let Some(sv) = svs.last() { obj.base.base.base.energy_ident_code_eic = sv.clone(); }
475                        }
476                        _ => {}
477                    }
478                }
479                "IdentifiedObject.mRID" => {
480                    match val {
481                        crate::base::FieldValue::Text(sv) => { obj.base.base.base.m_rid = sv.clone(); }
482                        crate::base::FieldValue::TextList(svs) => {
483                            if let Some(sv) = svs.last() { obj.base.base.base.m_rid = sv.clone(); }
484                        }
485                        _ => {}
486                    }
487                }
488                "IdentifiedObject.name" => {
489                    match val {
490                        crate::base::FieldValue::Text(sv) => { obj.base.base.base.name = sv.clone(); }
491                        crate::base::FieldValue::TextList(svs) => {
492                            if let Some(sv) = svs.last() { obj.base.base.base.name = sv.clone(); }
493                        }
494                        _ => {}
495                    }
496                }
497                "IdentifiedObject.shortName" => {
498                    match val {
499                        crate::base::FieldValue::Text(sv) => { obj.base.base.base.short_name = sv.clone(); }
500                        crate::base::FieldValue::TextList(svs) => {
501                            if let Some(sv) = svs.last() { obj.base.base.base.short_name = sv.clone(); }
502                        }
503                        _ => {}
504                    }
505                }
506                _ => {}
507            }
508        }
509        obj
510    }
511}