Cost adapter methods
The classes that implement the cost adapter interface must implement these methods.
Create Transactions
The createTransaction
method creates a Transaction
object in the given policy period branch that is appropriate for the
Cost type. The method
signature is:
Transaction createTransaction( PolicyPeriod branch )Get Reinsurable
The getReinsurable method gets the single reinsurable that is associated with this cost. The method signature is:
Reinsurable getReinsurable()This method returns null if the cost does not represent
a premium. For example, a cost for taxes or fees does not represent a
premium.
Get Coverable
Implement a getter for the Coverable property. The getter
returns a coverable if there is a coverable associated with this cost.
Impact testing uses this getter. The signature is:
override property get Coverable()This getter returns the coverable
associated with this cost or null
if this cost is not associated with a coverable. This method can return
null if impact testing
is not enabled for this line of business.
Get Name of Coverable
Implement a getter for the NameOfCoverable property.
The signature is:
override property get NameOfCoverable()The getter returns the name
of the coverable if there is a coverable associated with this cost. The
name is usually, but not always, equivalent to the display name or the
coverable. An exception is in the Personal Auto line. All premium costs
are computed with respect to a vehicle. The getNameOfCoverable returns the
DisplayName of the vehicle
even where getCoverable
returns the Personal Auto Line instance.
Is Matching Bean
For reporting differences, returns true if the two beans are a match.
The signature is:
override function isMatchingBean(bean : KeyableBean)The bean parameter is the other bean to compare with this one.
Get Policy Line
Implement a getter that returns the PolicyLine associated with this
cost. The signature is:
override property get PolicyLine()