|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.cam.util.AssetSeparatePaymentDistributor
public class AssetSeparatePaymentDistributor
This class is a calculator which will distribute the amounts and balance them by ratio. Inputs received are
Constructor Summary | |
---|---|
AssetSeparatePaymentDistributor(Asset sourceAsset,
List<AssetPayment> sourcePayments,
Integer maxPaymentSeqNo,
AssetGlobal assetGlobal,
List<Asset> newAssets)
Constructs a AssetSeparatePaymentDistributor.java. |
Method Summary | |
---|---|
void |
distribute()
|
double[] |
getAssetAllocateRatios()
Gets the assetAllocateRatios attribute. |
AssetGlobal |
getAssetGlobal()
Gets the assetGlobal attribute. |
List<Asset> |
getNewAssets()
Gets the newAssets attribute. |
List<AssetPayment> |
getOffsetPayments()
Gets the offsetPayments attribute. |
List<AssetPayment> |
getRemainingPayments()
Gets the remainingPayments attribute. |
double |
getRetainRatio()
Gets the retainRatio attribute. |
List<AssetPayment> |
getSeparatedPayments()
Gets the separatedPayments attribute. |
double |
getSeparateRatio()
Gets the separateRatio attribute. |
List<AssetPayment> |
getSourcePayments()
Gets the sourcePayments attribute. |
void |
negatePaymentAmounts(AssetPayment assetPayment)
Utility method which will negate the payment amounts for a given payment |
void |
setAssetAllocateRatios(double[] assetAllocateRatios)
Sets the assetAllocateRatios attribute value. |
void |
setAssetGlobal(AssetGlobal assetGlobal)
Sets the assetGlobal attribute value. |
void |
setNewAssets(List<Asset> newAssets)
Sets the newAssets attribute value. |
void |
setOffsetPayments(List<AssetPayment> offsetPayments)
Sets the offsetPayments attribute value. |
void |
setRemainingPayments(List<AssetPayment> remainingPayments)
Sets the remainingPayments attribute value. |
void |
setRetainRatio(double retainRatio)
Sets the retainRatio attribute value. |
void |
setSeparatedPayments(List<AssetPayment> separatedPayments)
Sets the separatedPayments attribute value. |
void |
setSeparateRatio(double separateRatio)
Sets the separateRatio attribute value. |
void |
setSourcePayments(List<AssetPayment> sourcePayments)
Sets the sourcePayments attribute value. |
static org.kuali.rice.kns.util.KualiDecimal |
sumPeriodicDepreciationAmounts(AssetPayment currPayment)
Sums up periodic amounts for a payment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetSeparatePaymentDistributor(Asset sourceAsset, List<AssetPayment> sourcePayments, Integer maxPaymentSeqNo, AssetGlobal assetGlobal, List<Asset> newAssets)
sourceAsset
- Source AssetsourcePayments
- Source PaymentsmaxPaymentSeqNo
- Current max of payment number used by source AssetassetGlobal
- AssetGlobal Document performing the separate actionnewAssets
- List of new assets to be created for this separate request documentMethod Detail |
---|
public void distribute()
public void negatePaymentAmounts(AssetPayment assetPayment)
assetPayment
- Payment to be negatedpublic static org.kuali.rice.kns.util.KualiDecimal sumPeriodicDepreciationAmounts(AssetPayment currPayment)
currPayment
- Payment
public List<AssetPayment> getRemainingPayments()
public void setRemainingPayments(List<AssetPayment> remainingPayments)
remainingPayments
- The remainingPayments to set.public List<AssetPayment> getOffsetPayments()
public void setOffsetPayments(List<AssetPayment> offsetPayments)
offsetPayments
- The offsetPayments to set.public List<AssetPayment> getSeparatedPayments()
public void setSeparatedPayments(List<AssetPayment> separatedPayments)
separatedPayments
- The separatedPayments to set.public AssetGlobal getAssetGlobal()
public void setAssetGlobal(AssetGlobal assetGlobal)
assetGlobal
- The assetGlobal to set.public List<Asset> getNewAssets()
public void setNewAssets(List<Asset> newAssets)
newAssets
- The newAssets to set.public double[] getAssetAllocateRatios()
public void setAssetAllocateRatios(double[] assetAllocateRatios)
assetAllocateRatios
- The assetAllocateRatios to set.public double getSeparateRatio()
public void setSeparateRatio(double separateRatio)
separateRatio
- The separateRatio to set.public double getRetainRatio()
public void setRetainRatio(double retainRatio)
retainRatio
- The retainRatio to set.public List<AssetPayment> getSourcePayments()
public void setSourcePayments(List<AssetPayment> sourcePayments)
sourcePayments
- The sourcePayments to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |