Overview of classes that implement parallel rating
Rating engine using entities
For parallel rating using entities, the policy line implementation of the rating engine,
XXRatingEngine extends
AbstractEntityParallelRatingEngine.
For commercial property, the rating engine is CPRatingEngine. You can use
this as a reference implementation for adding parallel rating to a line of business.
Rating engine using DTOs
For parallel rating using DTOs, the policy line implementation of the rating engine,
XXDTORatingEngine extends
AbstractDTOParallelRatingEngine.
For commercial property, the rating engine is CPDTORatingEngine. You can
use this as a reference implementation for adding parallel rating using DTOs to a line of
business.
Policy line methods
For both types of parallel rating, AbstractPolicyLineMethodsImpl
implements policy line methods and contains the Boolean
shouldParallelizeRating method. Each line of business can override this
value in XXPolicyLineMethods class.
For commercial property, CPPolicyLineMethods overrides this method to
always returns true. Modify this method to specify criteria for parallel
rating of commercial property policies.
Abstract parallel rating engine
For both types of parallel rating, the AbstractParallelRatingEngineBase
class encapsulates the code that implements parallel rating, and contains the
rateInParallel method.
AbstractParallelRatingEngineBase rates serially instead of in parallel
when either of the following is true:
- The
ParallelizedRatingEnabledconfiguration parameter isfalse XXPolicyLineMethods#shouldParallelizeRatingreturnsfalse
