Example of how the rating engine executes the rate routine

The sample data for the personal auto line of business contains a PA Vehicle Coverage Premium Algorithm rate routine. This rate routine provides a cost for vehicle level coverages on the policy. The code for this rate routine is pa_veh_cov_premium_rr.

The PCRatingPlugin class calls the PARatingEngine class to rate a personal auto policy. The PARatingEngine class is in the gw.lob.pa.rating package.

In the PARatingEngine class, the rateVehicleCoverage method rates vehicle-specific coverages such as a coverage with the PALiabilityCov code. If the policy has this coverage, the code executes the pa_veh_cov_premium_rr rate routine.