For Babelfish Release 1.11.1.3

CompareByRankingDirective Class

Compares two IEventScores (e.g. Result COF or Result Event) by the rules defined in a Ranking Rule Definition.

Definition

Namespace: Scopos.BabelFish.DataActors.OrionMatch
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public class CompareByRankingDirective : IComparer<IEventScores>, 
	IEqualityComparer<IEventScores>
Inheritance
Object    CompareByRankingDirective
Implements
IComparerIEventScores, IEqualityComparerIEventScores

Constructors

Properties

CourseOfFire 
EventTree The top level Event Composite within the course of fire definition.
Projected Indicates, if true, that the Projected Score instance should be used instead of the Score instance. Would be the case if the result list we are sorting has .Projected = true. The default, false, means to always use the .Score instance.
RankingDirective 
ResultStatus The ResultStatus of the Result List we are sorting. The default value is OFFICIAL which effectively means all TieBreakingRules will be used. TieBreakingRules may be limited if ResultStatus is something other than OFFICIAL

Methods

Compare 
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(IEventScores, IEventScores) Compares two IEventScores objects to determien if they have an unbreakable tie (return value True). An unbreakable tie exists if all of the definitions .Rules passed without either x or y coming out ahead.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetHashCode(IEventScores) 
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also