Skip to content

Comparers

samatrhea edited this page Aug 21, 2024 · 6 revisions

IComparer

The CDP4-COMET-SDK provides a set of Comparers that can be used to compare POCO objects. The Comparers implement the IComparer interface. These comparers are primarily used to determine the sort order in GUI applications such as the CDP4-COMET-IME. The following comparers are available:

Name Thing Comparison
ActualFiniteStateComparer ActualFiniteState Comparison based on the Ordr of the referenced PossibleFiniteStates
DefinedThingComparer DefinedThing Comparison based on the Name property.
ElementDefinitionComparer ElementDefinition Comparison based on Name property.
ElementUsageComparer ElementUsage Comparison based on Name property.
OptionComparer Option Comparison based on the order of the Options in an Iteration.
OrderedItemComparer - Comparison of ordered items in an ordered list based on the key of the ordered item
ParameterBaseComparer ParameterBase Comparison based on Name property.
ParameterGroupComparer ParameterGroup Comparison based on Name property.
ParameterOverrideValueSetComparer ParameterOverrideValueSet Comparison based on the order of ActualState and Option.
ParameterSubscriptionValueSetComparer ParameterSubscriptionValueSet Comparison based on the order of ActualState.
ParameterValueSetComparer ParameterValueSet Comparison based on the order of the ActualState and Option.
ShortNameThingComparer ShortNameThing Comparison based on ShortName property.

IEqualityComparer

The CDP4-COMET-SDK provides a set of Equialitu comparers to ascert equality between to objects. The Comparers implement the IEqualityComparer interface. The following comparers are available:

| Name | Thing | Comparison | | DtoThingIidComparer | Thing | Asserts equality between DTO Things based on their unique identifiers. |


« COMETCommon-CE Sentinel Things  —  Documentation overview  —  COMETCommon-CE Polyfills »

Clone this wiki locally