Adding a new parameter to the rating engine
These instructions describe how to add a new parameter to the rating engine. When the rating engine runs a rate routine, the rating engine maps each parameter to an object or entity instance. The map is of type java.util.Map. The rating engine uses this map to pass run-time objects and entity instances to the method that executes the rate routine. This object or entity instance must be compatible with the type specified in the parameter set associated with the rate routine being executed. A compatible type is the same type or a subtype. If the object or entity instance is not compatible, then PolicyCenter throws an exception.
In these steps, you include the new parameter in Gosu code that executes each rate routine associated with this parameter set.
The rating engine code executes each rate routine by calling the RateBook.executeCalcRoutine method. One of the parameters to this method is a map of parameters that the rate routine uses. This map must be a superset of the parameter set in PolicyCenter. By definition, a superset contains at least all of a set.
