Skip to main content

Module difference

Module difference 

Source
Expand description

Difference models: a CGMES dm:DifferenceModel’s or an NC dcatcim:DifferenceSet’s statements, applied to a model, and computed between two.

IEC 61970-552 describes a change to a model as statements: the reverse differences, removed from the model; the forward differences, added to it; and preconditions, which must hold in the model first. The decoder reads each block into a dataset of its own (CimDataset::differences): a typed element states the object’s type and its values, an rdf:Description only its values, and lands among the block’s foreign objects, its keys Class.attr as written. A changed value is a statement in each block, the old one reverse, the new one forward; a new object’s type and values are forward statements, a removed one’s reverse.

Structs§

Applied
What applying a difference did (CimDataset::apply). Each list is in identifier order.
Changed
An object a difference changed, there before and after.
Differences
The statements of one difference header (CimDataset::differences).
FieldChange
A field a difference changed: its value before and after, None where it had none.
Unmatched
A statement that does not hold where a difference needs it: a reverse statement or a precondition the model lacks, a forward statement about an object that neither exists nor is given a type.

Enums§

Block
A block of a difference header.
Statement
One statement a difference could not apply.