|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRule
biz.hammurapi.rules.jsr94.tck.TckRule
public class TckRule
Constructor Summary | |
---|---|
TckRule()
|
Method Summary | |
---|---|
boolean |
accept(Invoice invoice,
AcceptInfo acceptInfo)
This method filters invoices so only unpaid ones are passed to infer(customer, invoice) |
void |
infer(Customer customer,
Invoice invoice)
If the credit limit of the customer is greater than the amount of the invoice and the status of the invoice is unpaid then decrement the credit limit with the amount of invoice and set the status of the invoice to paid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TckRule()
Method Detail |
---|
public boolean accept(Invoice invoice, AcceptInfo acceptInfo)
infer(customer, invoice)
invoice
- acceptInfo
- public void infer(Customer customer, Invoice invoice)
customer
- invoice
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |