In principle, a separate caller program will invoke the Forward_Insurance_Pricing_TierSession.infer() method to perform the pricing tier analysis. For simplicity, the session class has been made directly runnable. To execute it, just start a command shell and change directory to the folder that contains the code files for this tutorial. Assuming default has been taken when running the Infix2RDL and the WrapperMaker tools, this folder should contain the following 3 XML files and 6 Java source files:
First the Java source files need to be compiled. Assuming PATH and CLASSPATH have been set as described at the beginning of this chapter, the following command compiles the Java source files:
javac *.java
The following command can be used to run the application:
java Forward_Insurance_Pricing_TierSession
The following outputs should be the results of the execution:
Customer time in business: P3Y Customer bankrupted 1 time(s) Policy liability is unknown Resulting pricing tier is: Reject Customer time in business: P7Y Customer bankrupted 0 time(s) Policy liability is Med Resulting pricing tier is: C Customer time in business: P2Y Customer bankrupted unknown time(s) Policy liability is Med Resulting pricing tier is: unknown
For the first two cases, the pricing tier rulebase successfully resolved the pricing tier and the results can be easily verified by referring back to the decision trees given in The Pricing Tier Decision Tree and The Customer Financial Stability Decision Tree, and taking the default liability type rule into account. For the last case, with the customer's bankruptcy information as unknown, the existing rules cannot resolve the case and the resulting pricing tier is still unknown.
| Copyright © 2009 CA. All rights reserved. | Email CA Technologies about this topic |