org.drools.examples.decisiontable
Class Policy

java.lang.Object
  extended by org.drools.examples.decisiontable.Policy

public class Policy
extends Object

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
Policy()
           
 
Method Summary
 void applyDiscount(int discount)
           
 int getBasePrice()
           
 int getDiscountPercent()
           
 String getType()
           
 boolean isApproved()
           
 void setApproved(boolean approved)
           
 void setBasePrice(int basePrice)
           
 void setDiscountPercent(int discountPercent)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Policy

public Policy()
Method Detail

isApproved

public boolean isApproved()

setApproved

public void setApproved(boolean approved)

getDiscountPercent

public int getDiscountPercent()

setDiscountPercent

public void setDiscountPercent(int discountPercent)

getType

public String getType()

setType

public void setType(String type)

applyDiscount

public void applyDiscount(int discount)

getBasePrice

public int getBasePrice()

setBasePrice

public void setBasePrice(int basePrice)


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.