powerio_tnd/
diagnostics.rs1powerio_core::diagnostic_codes! {
3 TRANSFORM_MULTI_TO_BALANCED_COMPONENT_COORDINATES_DROPPED =
5 "TRANSFORM.MULTI_TO_BALANCED.COMPONENT_COORDINATES_DROPPED", Warning,
6 "component geography has no equivalent attachment in the balanced projection";
7 TRANSFORM_MULTI_TO_BALANCED_AMBIGUOUS_TERMINAL_MAP =
8 "TRANSFORM.MULTI_TO_BALANCED.AMBIGUOUS_TERMINAL_MAP", Error,
9 "a terminal map does not determine one balanced phase assignment";
10 TRANSFORM_MULTI_TO_BALANCED_BALANCED_VALUE_DOMAIN =
11 "TRANSFORM.MULTI_TO_BALANCED.BALANCED_VALUE_DOMAIN", Warning,
12 "a lowered value is outside the domain the balanced model states";
13 TRANSFORM_MULTI_TO_BALANCED_DROPPED_LOAD_VOLTAGE_MODEL =
14 "TRANSFORM.MULTI_TO_BALANCED.DROPPED_LOAD_VOLTAGE_MODEL", Warning,
15 "a load voltage model has no balanced spelling and was dropped";
16 TRANSFORM_MULTI_TO_BALANCED_DROPPED_OPEN_SWITCH =
17 "TRANSFORM.MULTI_TO_BALANCED.DROPPED_OPEN_SWITCH", Remark,
18 "an open switch was dropped from the balanced network";
19 TRANSFORM_MULTI_TO_BALANCED_INVALID_BALANCED_OUTPUT =
20 "TRANSFORM.MULTI_TO_BALANCED.INVALID_BALANCED_OUTPUT", Error,
21 "the lowered network does not validate";
22 TRANSFORM_MULTI_TO_BALANCED_INVALID_BASE_MVA =
23 "TRANSFORM.MULTI_TO_BALANCED.INVALID_BASE_MVA", Error,
24 "the requested base MVA is not a positive finite number";
25 TRANSFORM_MULTI_TO_BALANCED_INVALID_LINECODE_MATRIX =
26 "TRANSFORM.MULTI_TO_BALANCED.INVALID_LINECODE_MATRIX", Error,
27 "a linecode matrix cannot be reduced to a balanced impedance";
28 TRANSFORM_MULTI_TO_BALANCED_INVALID_PHASE_REFERENCE =
29 "TRANSFORM.MULTI_TO_BALANCED.INVALID_PHASE_REFERENCE", Error,
30 "a phase reference names a conductor the element does not have";
31 TRANSFORM_MULTI_TO_BALANCED_INVALID_SHUNT_MATRIX =
32 "TRANSFORM.MULTI_TO_BALANCED.INVALID_SHUNT_MATRIX", Error,
33 "a shunt matrix cannot be reduced to a balanced admittance";
34 TRANSFORM_MULTI_TO_BALANCED_KRON_REDUCTION_REQUIRED =
35 "TRANSFORM.MULTI_TO_BALANCED.KRON_REDUCTION_REQUIRED", Remark,
36 "a conductor set needs a Kron reduction the pass does not perform";
37 TRANSFORM_MULTI_TO_BALANCED_LINECODE_TERMINAL_MISMATCH =
38 "TRANSFORM.MULTI_TO_BALANCED.LINECODE_TERMINAL_MISMATCH", Error,
39 "a linecode's dimension disagrees with the line's terminal map";
40 TRANSFORM_MULTI_TO_BALANCED_MISSING_PHASE_REFERENCE =
41 "TRANSFORM.MULTI_TO_BALANCED.MISSING_PHASE_REFERENCE", Error,
42 "an element states no phase reference to lower against";
43 TRANSFORM_MULTI_TO_BALANCED_NONFINITE_LINE_LENGTH =
44 "TRANSFORM.MULTI_TO_BALANCED.NONFINITE_LINE_LENGTH", Error,
45 "a line length is not finite, so its impedance is undefined";
46 TRANSFORM_MULTI_TO_BALANCED_PHASE_MAP_MISMATCH =
47 "TRANSFORM.MULTI_TO_BALANCED.PHASE_MAP_MISMATCH", Error,
48 "the two ends of an element do not agree on their phase map";
49 TRANSFORM_MULTI_TO_BALANCED_SEQUENCE_COUPLING_DROPPED =
50 "TRANSFORM.MULTI_TO_BALANCED.SEQUENCE_COUPLING_DROPPED", Remark,
51 "sequence coupling has no balanced spelling and was dropped";
52 TRANSFORM_MULTI_TO_BALANCED_UNKNOWN_BUS = "TRANSFORM.MULTI_TO_BALANCED.UNKNOWN_BUS", Error,
53 "an element references a bus the multiconductor payload does not declare";
54 TRANSFORM_MULTI_TO_BALANCED_UNKNOWN_LINECODE =
55 "TRANSFORM.MULTI_TO_BALANCED.UNKNOWN_LINECODE", Error,
56 "a line references a linecode the payload does not declare";
57 TRANSFORM_MULTI_TO_BALANCED_UNKNOWN_SOURCE_BUS =
58 "TRANSFORM.MULTI_TO_BALANCED.UNKNOWN_SOURCE_BUS", Error,
59 "a voltage source references a bus the payload does not declare";
60 TRANSFORM_MULTI_TO_BALANCED_RATED_CLOSED_SWITCH =
61 "TRANSFORM.MULTI_TO_BALANCED.RATED_CLOSED_SWITCH", Error,
62 "merging a rated closed switch would erase its flow limit";
63 TRANSFORM_MULTI_TO_BALANCED_SWITCH_TERMINAL_MISMATCH =
64 "TRANSFORM.MULTI_TO_BALANCED.SWITCH_TERMINAL_MISMATCH", Error,
65 "the two ends of a closed switch do not map identical conductors";
66 TRANSFORM_MULTI_TO_BALANCED_SWITCH_MERGE_CONFLICT =
67 "TRANSFORM.MULTI_TO_BALANCED.SWITCH_MERGE_CONFLICT", Error,
68 "the buses a closed switch would merge state conflicting data";
69 TRANSFORM_MULTI_TO_BALANCED_UNSUPPORTED_CONDUCTOR_SET =
70 "TRANSFORM.MULTI_TO_BALANCED.UNSUPPORTED_CONDUCTOR_SET", Error,
71 "a conductor set has no balanced spelling";
72 TRANSFORM_MULTI_TO_BALANCED_UNSUPPORTED_OBJECT =
73 "TRANSFORM.MULTI_TO_BALANCED.UNSUPPORTED_OBJECT", Error,
74 "an object has no balanced spelling and was dropped";
75 TRANSFORM_MULTI_TO_BALANCED_UNSUPPORTED_TRANSFORMER =
76 "TRANSFORM.MULTI_TO_BALANCED.UNSUPPORTED_TRANSFORMER", Error,
77 "a transformer shape has no balanced spelling";
78 TRANSFORM_MULTI_TO_BALANCED_RECORD_CAP =
79 "TRANSFORM.MULTI_TO_BALANCED.RECORD_CAP", Error,
80 "the lowered module's records would exceed a module maximum",
81 category = Request;
82 TRANSFORM_MULTI_TO_BALANCED_WRONG_MODEL_KIND =
83 "TRANSFORM.MULTI_TO_BALANCED.WRONG_MODEL_KIND", Error,
84 "the module does not carry a multiconductor payload to lower",
85 category = Request;
86
87 VALIDATE_TND_INTERFACE = "VALIDATE.TND.INTERFACE", Error, "an integrated network interface is inconsistent", category = Data;
88}
89pub fn registry() -> Vec<&'static powerio_core::DiagnosticInfo> {
90 ALL.to_vec()
91}