For Babelfish Release 1.11.1.3

Shot Class

Definition

Namespace: Scopos.BabelFish.DataModel.Athena.Shot
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
[SerializableAttribute]
public class Shot : IEquatable<Shot>, IPenalty
Inheritance
Object    Shot
Implements
IPenalty, IEquatableShot

Constructors

Shot Public constructor

Properties

Attributes 
BulletDiameter The diamter of the bullet shot at the target. Measured in mm. Value values are 4.0 to 15.0. A value of 0 is considered the reset to default condition. When getting, if the value is not set, the value of Scoring Diamter is instead returned. If Scoring Diamter is not set, then 4.5 is returned.
DataObjectTag Links to some other object that is related to this Shot. Most likely a VIS.Shot Non serializable property.
EventName EventName is only set when the shot is part of a Result COF .Shots dictionary
FiringPoint The firing point number the shot was fired on.
IsADeletedShot Helper property that indicates if this shot is marked as a deleted shot. A Deleted shot has "DELETED" as an Attribute
IsASighter Helper property that indicates if this shot is marked as a sighter shot. A Deleted shot has "SIGHTER" as an Attribute
Location 
MatchID 
Meta Additional information about the shot. Format is dependent of the type of EST system used to score the shot.
Penalties Get set the list of Penalties. Generally avoid using this function (except for serilaization).
RangeTime The value of the Range Clock when the shot was fired and scored.
ResultCOFID GUID formatted string representing the ResultCOF
Score 
ScoreFormatted ScoreFormatted may only be set when the Shot is part of a Result COF .Shots dictrionary
ScoringDiameter The diamter to use when scoring this shot against the scoring rings. Measured in mm. Value values are 4.0 to 15.0. A value of 0 is considered the reset to default condition. When getting, if the value is not set, the value of Bullet Diamter is instead returned. If Bullet Diamter is not set, then 4.5 is returned.
Sequence An in order numbering of the shot, for the Result COF. Valid values are greater than zero (but not zero). Typically stored as integers.
StageLabel 
TargetName The IoT Thing Name for the Target that scored the shot.
TargetSetName 
TimeScored 
Update A Shot is uniquely identified (and stored in a database) by the combination of its Result COF ID, Sequence number, and Update value. Each time a shot is updated, a ShotLog entry must be added. By adding a ShotLog, the value for .Update is also updated. NOTE: A Shot may not have a log entry with .Update == 0. This would be, for example, a manually added shot such as a MISS or Cross Fire. When adding a manual shot, it should come with a ShotLog, which would be .Update == 1.
UpdateLog A shot log entry is required for each Update to a shot. the .Update value for a original (hasn't been changed) shot is 0. By adding a ShotLog, the value for .Update is also updated.
ValidationPhoto URL of the image showing the scored shot

Methods

AddPenalty Adds the passed in penalty to the list of Penalties
Equals(Object)
(Overrides ObjectEquals(Object))
Equals(Shot) 
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode
(Overrides ObjectGetHashCode)
GetPenalties Returns the list of Penalties. Same as calling .Penalties
GetSumPenaltyPoints Returns the sum of all penalty points.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetVerificationImageAimingBullCoordinates Returns the x and y coordinates, measured in pixels, of the aiming bull center in the verification photo. These values are read from the Meta dictionary using VerImgBullXCoor and VerImgBullYCoor.
GetVerificationImageDPMM Returns the Dot per mm value (pixes per mm) of the verification image. This value is read from the Meta dictionary using VerImgDPMM
GetVerificationImageRotation Return the rotation of the verification image around the center of the aiming bull. Measured in degrees (not radians)
HasPenalty(Penalty) Returns a boolean indicating if the passed in Peanlty is already applied.
HasPenalty(String) Returns a boolean indicating if the passed in Peanlty ID exists.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RemovePenalty(Penalty) Remove the passed in Penalty. If this penalty is not part of the Peanlties list, no action is applied.
RemovePenalty(String) Removes the penalty that has the passed in penaltyID
SetPenalties Replaces the existing list of penalties with the passed in list. Same as calling .Penalties = value
ShouldSerializeAttributes A Newtonsoft Conditional Property to only serialize Attributes when the list has something in it. https://www.newtonsoft.com/json/help/html/ConditionalProperties.htm
ShouldSerializePenalties A Newtonsoft Conditional Property to only serialize Penalties when the list has something in it. https://www.newtonsoft.com/json/help/html/ConditionalProperties.htm
ShouldSerializeScoringDiameter A Newtonsoft Conditional Property to only serialize ScoringDiameter when it is different from BulletDiameter. https://www.newtonsoft.com/json/help/html/ConditionalProperties.htm
ShouldSerializeUpdateLog A Newtonsoft Conditional Property to only serialize UpdateLog when the list has something in it. https://www.newtonsoft.com/json/help/html/ConditionalProperties.htm
ToString
(Overrides ObjectToString)

Fields

MANUALLY_MODIFIEDShot Attribute to indicate the shot's precise cooredinates are not known.
SHOT_ATTRIBUTE_EMPTYShot Attribute to indicate the shot is an empty shot.
SHOT_ATTRIBUTE_FRAME_HITShot Attribute to indicate the shot was a frame hit.
SHOT_ATTRIBUTE_MISSED_SHOTShot Attribute to indicate the shot was a missed shot.
SHOT_ATTRIBUTE_SIGHTERShot Attribute to indicate the shot was a sighter.
SHOT_ATTRIBUTE_SIMULATEDShot Attribute to indicate the shot was simulated.
SHOT_ATTRIBUTE_UNKNOWN_COORDINATESShot Attribute to indicate the shot's precise cooredinates are not known.

See Also