Class Policy
java.lang.Object
org.drools.examples.decisiontable.Policy
This represents a policy that a driver is applying for.
Obviously in the real world, there are actuaries to mess things up, but lets just pretend there is
some simple base price and discount that we can calculate with relatively simple rules !
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDiscount(int discount) intintgetType()booleanvoidsetApproved(boolean approved) voidsetBasePrice(int basePrice) voidsetDiscountPercent(int discountPercent) void
-
Constructor Details
-
Policy
public Policy()
-
-
Method Details
-
isApproved
public boolean isApproved() -
setApproved
public void setApproved(boolean approved) -
getDiscountPercent
public int getDiscountPercent() -
setDiscountPercent
public void setDiscountPercent(int discountPercent) -
getType
-
setType
-
applyDiscount
public void applyDiscount(int discount) -
getBasePrice
public int getBasePrice() -
setBasePrice
public void setBasePrice(int basePrice)
-