Configuring new wrappers for parameter sets
You may have parameters sets that are essentially the same, but each line of business uses a different coverage, for example. Using wrappers, you can combine these parameters sets into one parameter set that uses a wrapper to select the coverage by line of business.
The wrapper calls Gosu code that selects a coverage based upon characteristic of the policy. You must first create the wrapper before you use it in a parameter set.
In Studio, create a new Gosu class the implements gw.rating.flow.CoverageWrapper. For an example, see CPCoverageWrapper.gs in the gw.lob.cp.rating package.
See also
Example with Wrappers
In the base configuration, the CP Coverage Parameter Set With Wrapped Coverages parameter set (CPCoverageWrapperParamSet) uses a wrapper. The Coverage parameter uses the wrapper gw.lob.cp.rating.CPCoverageWrapper to select either the Business Personal Property Coverage (CPBPPCov) or the Building Coverage (CPBldgCov). In Product Designer, you can view these coverages in the Commercial Property Line.
The CP Coverage Premium Algorithm rate routine (cp_cov_premium_rr) uses the CP Coverage Parameter Set With Wrapped Coverages parameter set. In this rate routine, the Basis is assigned the value of Coverage.Limit. The wrapper calculates the value of the limit based upon whether the coverage is Business Personal Property Coverage or Building Coverage.
