﻿---
title: clsPremiumRatingRuleBasis
summary: API reference for clsPremiumRatingRuleBasis.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Premium
reference_type: package
---

# clsPremiumRatingRuleBasis

Represents a rating rule basis record; holds the basis code and weighting used by the premium rating rule engine to determine the computational basis for a rating rule.*

## Purpose
- Persists and retrieves rating rule basis data (basis code, weighting) for use in premium rating engine computations.*
- Consumed by the premium rating engine to resolve the computational basis for applying a rating rule during premium calculation.*

## Context
- Namespace: `SAIF.Business.Policy.Premium.Rating`
- Assembly/package: `SAIF.Business.Policy.Premium`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| RatingRuleMasterID | `Public ReadOnly Property RatingRuleMasterID() As Decimal` | Identifier used to correlate this row with related premium records.* |
| PriorityNumber | `Public ReadOnly Property PriorityNumber() As Decimal` | Business value exposed as priority number for callers of this API.* |
| PremiumAdjustmentTypeCodeIncluded | `Public ReadOnly Property PremiumAdjustmentTypeCodeIncluded() As String` | Exposes the premium adjustment type code included used by this cls Premium Rating Rule Basis.* |
| IsDCBSTaxable | `Public ReadOnly Property IsDCBSTaxable() As String` | Indicates whether dcbs taxable applies to this cls Premium Rating Rule Basis.* |
| IsValid | `Public Overrides ReadOnly Property IsValid() As Boolean` | Returns True when all registered business rules pass; delegates to the framework rule engine. |
| IsDirty | `Public Overrides ReadOnly Property IsDirty() As Boolean` | Returns True when one or more tracked properties have been modified since the last save or MarkOld() call. |
| Equals | `Public Overloads Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean` | Static overload: compares two Object references for equality using value-equality semantics.* |
| Equals | `Public Overloads Overrides Function Equals(ByVal inObject As Object) As Boolean` | Compares this instance with another `Object` instance for value equality.* |
| Equals | `Public Overloads Function Equals(ByVal inObject As clsPremiumRatingRuleBasis) As Boolean` | Compares this instance with another `clsPremiumRatingRuleBasis` instance for value equality.* |
| GetHashCode | `Public Overrides Function GetHashCode() As Integer` | Returns a hash code consistent with the value-equality implementation. |
| ToString | `Public Overrides Function ToString() As String` | Returns a string representation of this instance, typically for diagnostics.* |
| GetPremiumRatingRuleBasis | `Public Shared Function GetPremiumRatingRuleBasis(ByVal inDataportal As IDataPortalInfo, ByVal inRatingRuleMasterID As Decimal, ByVal inPriorityNum As Decimal, ByVal inPremAdjustmentIncluded As String) As clsPremiumRatingRuleBasis` | Loads a cls premium rating rule basis that matches the supplied lookup criteria. |
## Inherited public members

| Member | Signature | Purpose | Origin |
| --- | --- | --- | --- |
| Rules | `Property Rules As clsRulesManager` | Framework rules manager used to register, evaluate, and surface broken rules on the object.† | `SAIF.Framework.Core — clsBusinessBase` |
| BeginEdit | `Sub BeginEdit()` | Starts an n-level edit session so callers can stage changes.† | `SAIF.Framework.Core — clsBusinessBase` |
| CancelEdit | `Sub CancelEdit()` | Rolls back the active edit session.† | `SAIF.Framework.Core — clsBusinessBase` |
| ApplyEdit | `Sub ApplyEdit()` | Commits the active edit session.† | `SAIF.Framework.Core — clsBusinessBase` |

## Behavioral notes
- Source file: `Business\SAIF.Business.Policy.Premium\Rating\clsPremiumRatingRuleBasis.vb`.

## Constraints and usage notes
- Basis codes must reference valid rating rule basis reference entries; weightings must be consistent with the rating rule's sub-total computation logic.*


> **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\Rating\clsPremiumRatingRuleBasis.vb`