For Babelfish Release 1.11.1.3

ResultListSlidingWindow Class

In the calculation of Rank Delta, comparing an athlete's rank now versus some previous time, we need to keep copies of the Result List from the past in order to make this comparision. This class, ResultListSlidingWindow is in charge of keeping the past copies of the Result List, and then returning the appropirate one when asked.

This class is intended to be static (so it may be shared) and thread safe.

This class works effectivley in one of two modes. Either "NOW" or "Sliding Window." With NOW which ever Result List the user specified last using .PushResultList() is the one that will be returned. With a Sliding Window, the youngest result list that is older than the sliding windown time value (1, 3, or 5 minutes), is returned.

Definition

Namespace: Scopos.BabelFish.DataActors.OrionMatch
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static class ResultListSlidingWindow
Inheritance
Object    ResultListSlidingWindow

Remarks

The MODE is usually specified by the COURSE OF FIRE's Range Scripts, in the SegmentGroupCommand's .ResultEngineCompare property.

Properties

Mode Gets or Sets the Mode.

Methods

ClearCache Removes all Result Lists.
GetResultList Get the Result List to use during the next comparison, to calculate the RankDelta.
PushResultList When a Result List gets generated, the user should push the Result List into the ResultListSlidingWindow using this method.

When the MODE is NOW, the next time the user calls GetResultList() this Result List is returned.

When the MODE is a sliding window (1, 3, or 5 mins), the youngest Result List that is older then the requested time span is returned.

Fields

See Also