Skip to main content

cimstructs/
ExcAC8B.rs

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