For Babelfish Release 1.11.1.3

IPenalty Interface

Interface describing classes that can have a penalty applied.

Definition

Namespace: Scopos.BabelFish.DataModel.Athena.Interfaces
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public interface IPenalty

Properties

Penalties Get set the list of Penalties. Generally avoid using this function (except for serilaization).

Methods

AddPenalty Adds the passed in penalty to the list of Penalties
GetPenalties Returns the list of Penalties. Same as calling .Penalties
GetSumPenaltyPoints Returns the sum of all penalty points.
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.
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

See Also