org.kuali.kfs.gl.batch.service
Interface BalanceCalculator

All Known Implementing Classes:
PostBalance

public interface BalanceCalculator

This interface declares methods needed for posting transactions to the appropriate balance records.


Method Summary
 Balance findBalance(Collection balanceList, Transaction t)
          Given a collection of balance records, returns the balance that the given transaction would post to or creates a new balance record
 void updateBalance(Transaction t, Balance b)
          Updates the balance based on the given transaction
 

Method Detail

findBalance

Balance findBalance(Collection balanceList,
                    Transaction t)
Given a collection of balance records, returns the balance that the given transaction would post to or creates a new balance record

Parameters:
balanceList - a Collection of balance records
t - the transaction to post
Returns:
the balance to post against

updateBalance

void updateBalance(Transaction t,
                   Balance b)
Updates the balance based on the given transaction

Parameters:
t - the transaction to post
b - the balance being posted against


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.