Class SortDisambiguator
Disambiguator to identify the sort order, by comparing two search results.
Ambiguation occurs when the match results are qualified as being identical, which would require
further elaboration to establish which result is more significant, taking into consideration
the presedence of the translation providers, from where the results are derived.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class SortDisambiguator
Constructors
SortDisambiguator(SortSpecification, Disambiguator)
Disambiguator to identify the sort order, by comparing two search results.
Declaration
public SortDisambiguator(SortSpecification sortCriterium, SortDisambiguator.Disambiguator disambiguator)
Parameters
Type | Name | Description |
---|---|---|
SortSpecification | sortCriterium | criteria used for sorting translation units. |
SortDisambiguatorDisambiguator | disambiguator | a disambiguator which is called if the sort criteria does not sufficiently define the sort order between two search result objects. |
Methods
Disambiguate(int, SearchResult, SearchResult)
Identifies the sort order, by comparing a
against b
Declaration
public int Disambiguate(int comparisonResult, SearchResult a, SearchResult b)
Parameters
Type | Name | Description |
---|---|---|
int | comparisonResult | The initial comparison result recovered from the Sorter. |
SearchResult | a | The first SearchResult to compare. |
SearchResult | b | The second SearchResult to compare. |
Returns
Type | Description |
---|---|
int | Less than zero if x is less than y, zero if x equals y, greater than zero if x is greater than y. |