Skip to content

clsClassCoverageCollection

BOF collection of clsClassCoverage instances; groups all class coverage lines within a premium set for persistence and enumeration. Used by clsPremiumSet to manage the set of class-level premium entries.*

Purpose

  • Holds and manages the ordered set of clsClassCoverage lines for a premium set.*
  • Enables class-level premium accumulation by providing access to all class coverage lines for a given premium set.*

Context

  • Namespace: SAIF.Business.Policy.Premium
  • Assembly/package: SAIF.Business.Policy.Premium

Public members

Member Signature Purpose
CurrentItem Public Shadows ReadOnly Property CurrentItem() As clsClassCoverage Business value exposed as current item for callers of this API.*
ProratedPayroll Public ReadOnly Property ProratedPayroll(ByVal inAsOfDate As Date) As Decimal Calculates the prorated payroll used by this cls Class Coverage Collection.
LatestClassSet Public ReadOnly Property LatestClassSet() As IEnumerable(Of clsClassCoverage) Business value exposed as latest class set for callers of this API.*
Add Public Shadows Function Add(ByVal inPremiumClassCoverage As clsClassCoverage) As Integer Adds the supplied cls class coverage to the collection.
Contains Public Overloads Function Contains(ByVal inPremiumClassCoverage As clsClassCoverage) As Boolean Checks whether the collection already contains the specified item or identifier.
Contains Public Overloads Function Contains(ByVal inClassCoverageID As Decimal) As Boolean Checks whether the collection already contains the specified item or identifier.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inPremiumClassCoverage As clsClassCoverage) As Boolean Checks whether the collection's deleted-items list already contains the specified item or identifier.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inClassCoverageID As Decimal) As Boolean Checks whether the collection's deleted-items list already contains the specified item or identifier.
Remove Public Function Remove(ByVal inPremiumClassCoverage As clsClassCoverage) As Boolean Removes the matching cls class coverage from the collection.
Remove Public Sub Remove(ByVal inClassCoverageID As Decimal) Removes the matching cls class coverage from the collection.
Where Public Function Where(ByVal match As Predicate(Of clsClassCoverage)) As clsClassCoverageCollection Returns a typed subset containing only items that satisfy the supplied predicate.
New Public Sub New() Constructs a new instance with the supplied initialization parameters.*
NewPremiumClassCoverageCollection Public Shared Function NewPremiumClassCoverageCollection(ByVal inDataportal As IDataPortalInfo, ByVal inPremiumSetID As Decimal) As clsClassCoverageCollection Creates a new cls class coverage collection initialized from the supplied source values.*
GetClassCoverages Public Shared Function GetClassCoverages(ByVal inDataportal As IDataPortalInfo, ByVal inPremiumSetID As Decimal, ByRef inPeriodRatingInfo As iPeriodRatingInfo, Optional ByVal inPremiumSetDatabase As PremiumSetDatabases = PremiumSetDatabases.Enterprise) As clsClassCoverageCollection Loads cls class coverage collection for the supplied lookup criteria.
GetClassCoverages Public Shared Function GetClassCoverages(ByVal inDataportal As IDataPortalInfo, ByVal inPremiumSetID As Decimal, ByVal inAffiliateID As String, ByRef inPeriodRatingInfo As iPeriodRatingInfo, Optional ByVal inPremiumSetDatabase As PremiumSetDatabases = PremiumSetDatabases.Enterprise) As clsClassCoverageCollection Loads cls class coverage collection for the supplied lookup criteria.
AddNewClassCoverage Public Function AddNewClassCoverage() As clsClassCoverage Executes the add new class coverage behavior defined by this type.
## Behavioral notes
- Source file: Business\SAIF.Business.Policy.Premium\clsClassCoverageCollection.vb.

Constraints and usage notes

  • Collection membership is scoped to a single premium set; class coverage records are persisted via the parent premium set's save operation.*

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.Policy.Premium\clsClassCoverageCollection.vb