public abstract class AbstractBudgetCalculator extends Object
LineItemCalculator and PersonnelLineItemCalculator.| Modifier and Type | Field and Description |
|---|---|
protected Budget |
budget |
protected BudgetLineItemBase |
budgetLineItem |
| Constructor and Description |
|---|
AbstractBudgetCalculator(Budget budget,
BudgetLineItemBase budgetLineItem)
Constructs a CalculatorBase.java.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addCalculatedAmount(AbstractBudgetCalculatedAmount budgetCalculatedAmount) |
void |
calculate()
This method does the calculation for each line item.
|
protected void |
calculateBreakUpInterval() |
protected void |
createAndCalculateBreakupIntervals() |
List<Boundary> |
createBreakupBoundaries(QueryList<AbstractBudgetRate> qlCombinedRates,
Date liStartDate,
Date liEndDate)
Use the combined & sorted Prop & LA rates to create Boundary objects.
|
protected void |
createBreakUpInterval()
Combine the sorted Prop & LA rates, which should be in sorted order(asc).
|
QueryList |
filterRates(List rates)
This method is for filtering rates and lab allocation rates.
|
protected List<BreakUpInterval> |
getBreakupIntervals() |
protected BudgetForm |
getBudgetFormFromGlobalVariables() |
protected BudgetRatesService |
getBudgetRateService() |
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
protected org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService() |
QueryList<BudgetRate> |
getInflationRates() |
protected abstract AbstractBudgetCalculatedAmount |
getNewCalculatedAmountInstance() |
QueryList<BudgetLaRate> |
getQlLineItemPropLaRates()
Gets the qlLineItemPropLaRates attribute.
|
QueryList<BudgetRate> |
getQlLineItemPropRates()
Gets the qlLineItemPropRates attribute.
|
QueryList<BudgetRate> |
getUnderrecoveryRates()
Gets the underrecoveryRates attribute.
|
protected List<ValidCalcType> |
getValidCalcTypes() |
abstract void |
populateApplicableCosts(Boundary boundary)
Abstract method to populate the applicable cost and applicable cost sharing in boundary.
|
protected abstract void |
populateBudgetRateBaseList()
This abstract method should be implemented by LineItemCalculator and PersonnelLineItemCalculator.
|
protected abstract void |
populateCalculatedAmountLineItems() |
protected void |
setBreakupIntervals(List<BreakUpInterval> breakupIntervals) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setCalculatedAmounts(Budget budget,
BudgetLineItemBase budgetLineItem) |
void |
setInflationRates(QueryList<BudgetRate> inflationRates) |
protected void |
setInfltionValidCalcCeRates(QueryList<ValidCeRateType> infltionValidCalcCeRates) |
void |
setQlLineItemPropLaRates(QueryList<BudgetLaRate> qlLineItemPropLaRates)
Sets the qlLineItemPropLaRates attribute value.
|
void |
setQlLineItemPropRates(QueryList<BudgetRate> qlLineItemPropRates)
Sets the qlLineItemPropRates attribute value.
|
void |
setUnderrecoveryRates(QueryList<BudgetRate> underrecoveryRates)
Sets the underrecoveryRates attribute value.
|
protected void |
updateBudgetLineItemCalculatedAmounts()
This method is for populating the calculated amounts by looking at the rate class and rate type for each line item gets applied to.
|
protected Budget budget
protected BudgetLineItemBase budgetLineItem
public AbstractBudgetCalculator(Budget budget, BudgetLineItemBase budgetLineItem)
budget - budgetLineItem - public abstract void populateApplicableCosts(Boundary boundary)
boundary - public QueryList filterRates(List rates)
rates - public void calculate()
protected abstract void populateBudgetRateBaseList()
protected void updateBudgetLineItemCalculatedAmounts()
protected void createAndCalculateBreakupIntervals()
protected void createBreakUpInterval()
public List<Boundary> createBreakupBoundaries(QueryList<AbstractBudgetRate> qlCombinedRates, Date liStartDate, Date liEndDate)
protected void calculateBreakUpInterval()
protected List<ValidCalcType> getValidCalcTypes()
protected abstract void populateCalculatedAmountLineItems()
public final void setCalculatedAmounts(Budget budget, BudgetLineItemBase budgetLineItem)
protected void setInfltionValidCalcCeRates(QueryList<ValidCeRateType> infltionValidCalcCeRates)
protected abstract AbstractBudgetCalculatedAmount getNewCalculatedAmountInstance()
protected abstract void addCalculatedAmount(AbstractBudgetCalculatedAmount budgetCalculatedAmount)
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.protected List<BreakUpInterval> getBreakupIntervals()
protected void setBreakupIntervals(List<BreakUpInterval> breakupIntervals)
protected org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public QueryList<BudgetRate> getUnderrecoveryRates()
public void setUnderrecoveryRates(QueryList<BudgetRate> underrecoveryRates)
underrecoveryRates - The underrecoveryRates to set.public QueryList<BudgetRate> getInflationRates()
public void setInflationRates(QueryList<BudgetRate> inflationRates)
public QueryList<BudgetLaRate> getQlLineItemPropLaRates()
public void setQlLineItemPropLaRates(QueryList<BudgetLaRate> qlLineItemPropLaRates)
qlLineItemPropLaRates - The qlLineItemPropLaRates to set.public QueryList<BudgetRate> getQlLineItemPropRates()
public void setQlLineItemPropRates(QueryList<BudgetRate> qlLineItemPropRates)
qlLineItemPropRates - The qlLineItemPropRates to set.protected BudgetForm getBudgetFormFromGlobalVariables()
protected BudgetRatesService getBudgetRateService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.