Event

<< Click to Display Table of Contents >>

Navigation:  Support > Reconfigurable Rulebook > Definition Objects >

Event

Description

In the Reconfigurable Rulebook Events are defined using the well known Composite Pattern. An Event is either a composite Event, that is made up of child Events, or it is a singular Event that is a leaf. Within a COURSE OF FIRE Composite events are defined separately from Singular Events.

Definition

Name

Value Type

Description

EventName

String

A unique name given to this Event.

Required and may not be blank.

EventType

String

The type of event. Must be one of the following:

EVENT

STAGE

SERIES

STRING

SINGULAR

NONE

Not required, defaults to NONE.

Children

List of strings.

The children of this event identified by the EventName. The score for this event is added together from the scores of the children.

Required and must have at least one name. Events are not allowed to be descendents of themselves.

Calculation

String

The method to use to calculate the score of this event from the children. Must be one of the following:

SUM: Sums the value of I (integer), D (decimal), and X (inner tens) based on the corresponding values of the children.

SUM( [special summation] ): Where 'special summation' is a comma separated lists of 'i', 'd', 'x', 's'. There should be one character in the list for each child. This function sums the integer, decimal, inner tens, or special summation, respectively, values from the children. For example 'SUM(i, d)' to sum the integer values of the first child plus the decimal values of the second child.

Not required, defaults to "SUM" if not included of if it is the wrong format.

ScoreFormat

String formatted as a Score Format

The default score format to use to display scores for this Event.

Not required, defaults to "d" if not included.

StageStyle

String formatted as a Set Name.

The StageStyle that this Event represents, and is assigned in the resulting ResultCOF, if any.

Not required. May not be listed if StageStyleSelection is included.

StageStyleSelection

List of EventStageStyleSelections.

A series of conditional tests that are used to assign a StageStyle to the resulting ResultCOF, if any.

Not required. May not be included if StageStyle is included.

EventStyle

String formatted as a Set Name.

The EventStyle that this Event represents, and is assigned in the resulting ResultCOF, if any.

Not required. May not be listed if EventStyleSelection is included.

EventStyleSelection

List of EventStageStyleSelections

A series of conditional tests that are used to assign a EventStyle to the resulting ResultCOF, if any.

Not required. May not be included if EventStyle is included.

Example Events for a 60 shot Air Pistol match

{

  "EventName": "Qualification",

  "EventType": "EVENT",

  "Children": [ "ST 1", "ST 2", "ST 3", "ST 4", "ST 5", "ST 6" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x",

  "EventStyleSelection" : "v1.0:usas:Air Pistol",

  "StageStyleSelection" : "v1.0:usas:Air Pistol Qualification"

},

{

  "EventName": "ST 1",

  "EventType": "SERIES",

  "Children": [ "S1", "S2", "S3", "S4", "S5", "S6", "S7", "S8", "S9", "S10" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "ST 2",

  "EventType": "SERIES",

  "Children": [ "S11", "S12", "S13", "S14", "S15", "S16", "S17", "S18", "S19", "S20" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "ST 3",

  "EventType": "SERIES",

  "Children": [ "S21", "S22", "S23", "S24", "S25", "S26", "S27", "S28", "S29", "S30" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "ST 4",

  "EventType": "SERIES",

  "Children": [ "S31", "S32", "S33", "S34", "S35", "S36", "S37", "S38", "S39", "S40" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "ST 5",

  "EventType": "SERIES",

  "Children": [ "S41", "S42", "S43", "S44", "S45", "S46", "S47", "S48", "S49", "S50" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "ST 6",

  "EventType": "SERIES",

  "Children": [ "S51", "S52", "S53", "S54", "S55", "S56", "S57", "S58", "S59", "S60" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

}

Example for Events in a Three-Position 3x10 Air Rifle match

{

  "EventName": "Individual",

  "EventType": "EVENT",

  "Children": [ "Prone", "Standing", "Kneeling" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x",

  "EventStyleSelection" : [

    {

      "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Sporter"

        }

      },

      "EventStyleDef" : "v1.0:ntparc:Three-Position Sporter Air Rifle"

    },

    {

      "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Precision"

        }

      },

      "EventStyleDef" : "v1.0:ntparc:Three-Position Precision Air Rifle"

    }

  ]

},

{

  "EventName": "Prone",

  "EventType": "STAGE",

  "Children": [ "PR 1" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x",

  "StageStyleSelection" : [        

    {

    "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Sporter"

        }

      },

      "StageStyleDef" : "v1.0:ntparc:Sporter Air Rifle Prone"

    },

    {

      "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Precision"

        }

      },

      "StageStyleDef" : "v1.0:ntparc:Precision Air Rifle Prone"

    }

  ]

},

{

  "EventName": "Standing",

  "EventType": "STAGE",

  "Children": [ "ST 1" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x",

  "StageStyleSelection" : [     

    {

    "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Sporter"

        }

      },

      "StageStyleDef" : "v1.0:ntparc:Sporter Air Rifle Standing"

    },

    {

      "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Precision"

        }

      },

      "StageStyleDef" : "v1.0:ntparc:Precision Air Rifle Standing"

    }

  ]

},

{

  "EventName": "Kneeling",

  "EventType": "STAGE",

  "Children": [ "KN 1" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x",

  "StageStyleSelection" : [     

    {

    "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Sporter"

        }

      },

      "StageStyleDef" : "v1.0:ntparc:Sporter Air Rifle Kneeling"

    },

    {

      "ConditionalTest" : 

      {

        "Operator" : "==",

        "A" : {

          "Attribute" : "v1.0:ntparc:Three-Position Air Rifle Type",

          "FieldName" : "Three-Position Air Rifle Type"

        },

        "B" : {

          "VariableName" : "Precision"

        }

      },

      "StageStyleDef" : "v1.0:ntparc:Precision Air Rifle Kneeling"

    }

  ]

},

{

  "EventName": "PR 1",

  "EventType": "SERIES",

  "Children": [ "P1", "P2", "P3", "P4", "P5", "P6", "P7", "P8", "P9", "P10" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "ST 1",

  "EventType": "SERIES",

  "Children": [ "S1", "S2", "S3", "S4", "S5", "S6", "S7", "S8", "S9", "S10" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

},

{

  "EventName": "KN 1",

  "EventType": "SERIES",

  "Children": [ "K1", "K2", "K3", "K4", "K5", "K6", "K7", "K8", "K9", "K10" ],

  "Calculation": "SUM",

  "ScoreFormat": "i - x"

}

 


 

Note:

The Reconfigurable Rulebook and functionality will be implemented with the release of Orion Scoring System v. 3.0 (TBA)