|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.insurance.policy.AssessmentLine
com.ail.insurance.policy.CalculationLine
public abstract class CalculationLine
A Calculation Line is an assessment line which contains a calculated element.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
CalculationLine()
Default constructor |
|
CalculationLine(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount)
Constructor |
|
CalculationLine(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount,
int priority)
Constructor |
|
| Method Summary | |
|---|---|
abstract boolean |
calculate(AssessmentSheetList sheets,
AssessmentSheet sheet)
Process this line's calculation |
CurrencyAmount |
getAmount()
|
java.lang.String |
getAmountAsString()
Return this line's amount in String format (e.g."421.20 GBP") |
java.lang.String |
getContributesTo()
|
void |
setAmount(CurrencyAmount amount)
|
void |
setContributesTo(java.lang.String contributesTo)
|
| Methods inherited from class com.ail.insurance.policy.AssessmentLine |
|---|
compareTo, getCalculatedOrder, getId, getOrigin, getPriority, getReason, getRelatesTo, isDisabled, setCalculatedOrder, setDisabled, setId, setOrigin, setPriority, setReason, setRelatesTo |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalculationLine()
public CalculationLine(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount)
id - Id for this calculation linereason - Free text reason for the calculation line.relatesTo - Optional reference to the part of the policy that cause the calculation line.contributesTo - The id of the line that this one will contribute to.amount - The amount (value) of this line.
public CalculationLine(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount,
int priority)
id - Id for this calculation linereason - Free text reason for the calculation line.relatesTo - Optional reference to the part of the policy that cause the calculation line.contributesTo - The id of the line that this one will contribute to.amount - The amount (value) of this line.priority - The priority of this line wrt other lines in the same sheet (lines with higher priority values are processed first)| Method Detail |
|---|
public java.lang.String getContributesTo()
public void setContributesTo(java.lang.String contributesTo)
public abstract boolean calculate(AssessmentSheetList sheets,
AssessmentSheet sheet)
sheets - The list of assessment sheets currently being processed.sheet - The sheet this line is part of.
public CurrencyAmount getAmount()
public void setAmount(CurrencyAmount amount)
public java.lang.String getAmountAsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||