For Babelfish Release 1.11.1.3

Event Class

In the Reconfigurable Rulebook Event Composites are defined using the well known Composite Pattern. An Event Composite can either be an Event (that has children), or a Singular that does not have children.

An Event defines a real world event in a marksmanship competition. Includes events, stages, series, and strings. Does not includes individual shots (as these are Singulars).

Definition

Namespace: Scopos.BabelFish.DataModel.Definitions
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public abstract class Event : IReconfigurableRulebookObject, 
	IGetResultListFormatDefinition, IGetRankingRuleDefinition, IGetRankingRuleDefinitionList
Inheritance
Object    Event
Derived
Implements
IGetRankingRuleDefinition, IGetRankingRuleDefinitionList, IGetResultListFormatDefinition, IReconfigurableRulebookObject

Constructors

Properties

Calculation The method to use to calculate the score of this event from the children. Must be one of the following: * SUM (may have CalculationVariables of type CalculationVariablesString) * AVERAGE (may have CalculationVariables of type CalculationVariableInteger)
CalculationVariables Additional information needed for the Event Calculation score. The type of data is dependent on the Calculation type.
Children The children of this event identified by the EventName. The score for this event is added together from the scores of the children.
Comment Internal documentation comments. All text is ignored by the system.
Derivation Indicates if the Event's children are derived or explicit
EventName A unique name given to this Event.
EventStyleMapping EventStyleSelection determines how the resulting Result COF is mapped to a EVENT STYLE.
EventType The type of event. Must be one of the following: * NONE * EVENT * STAGE * SERIES * STRING * SINGULAR
ExternalToEventTree Indicates if this Event is outside of the Event Tree.
IsATopLevelStageStyle Helper method to identify Events that define a StageStyleMapping.

When an Event defines a StageStyleMapping, it means that all descendent shots fired within that Event will have been fired on the same target and withing the same STAGE STYLE. This method returns a list of EventComposites that have defined StageStyleMappings, and thus have distinct STAGE STYLES.

RankingRuleDef The recommended Ranking Rules defintion to use when displaying a ranking list for this Event. EKA NOTE: We may have to make this an object, as depending on the Score Formate (e.g. Integer vs Decimal) we would have different RankingRuleDef.
Obsolete
RankingRuleMapping A mapping of RankingRuleDef to use to sort scores from this Event, based on the ScoreConfigName.
ResultListFormatDef The recommended Result List Format defintion to use when displaying a result list for this Event.
ScoreFormat The score format to use to display scores for this Event. The possible values are learned from the Score Format Collection.
StageStyleMapping StageStyleSelection determines how the resulting Result COF is mapped to a STAGE STYLE.

When an Event defines a StageStyleMapping, it means that all descendent shots fired within that Event will have been fired on the same target and withing the same STAGE STYLE. This method returns a list of EventComposites that have defined StageStyleMappings, and thus have distinct STAGE STYLES.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetCompiledEvents If the fields EventName and Values require interpretation, GetCompiledEvents interpres them and returns a new list of TieBreakingRules cooresponding to the interpretation. If interpretation is not required, then it returns a list of one tie breaking rule, itself.

Will always return a clone copy of the event, so the original is not modified by the caller.

GetHashCodeServes as the default hash function.
(Inherited from Object)
GetRankingRuleDefinitionAsync Retreives the RankingRule Definition referenced by the instantiating class.
Obsolete
GetRankingRuleDefinitionListAsync Retreives the RankingRule Definition referenced by the instantiating class. Key is the set name, value is the definition.
GetResultListFormatDefinitionAsync Retreives the ResultListFormat Definition referenced by the instantiating class.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ShouldSerializeCalculationVariables 
ShouldSerializeRankingRuleMapping 
ToString
(Overrides ObjectToString)

Fields

See Also