com.ail.insurance.policy
Class FixedSum
java.lang.Object
com.ail.core.Type
com.ail.insurance.policy.AssessmentLine
com.ail.insurance.policy.CalculationLine
com.ail.insurance.policy.FixedSum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<AssessmentLine>
public class FixedSum
- extends CalculationLine
A type of assessment line representing a fixed amount (as opposed to one that is calculated by applying a rate to
another line).
- Version:
- $Revision: 1.3 $
- See Also:
- Serialized Form
|
Constructor Summary |
FixedSum()
Default constructor |
FixedSum(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount)
Constructor |
FixedSum(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount,
int priority)
Constructor |
| 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 |
FixedSum
public FixedSum()
- Default constructor
FixedSum
public FixedSum(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount)
- Constructor
- Parameters:
id - This line's Idreason - Free text reson for this behaviour being created.relatesTo - Optional reference to the part of the policy that caused this behaviour.contributesTo - The Id of the line that this one will contribute to.amount - The amount to be contributed.
FixedSum
public FixedSum(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
CurrencyAmount amount,
int priority)
- Constructor
- Parameters:
id - This line's Idreason - Free text reson for this behaviour being created.relatesTo - Optional reference to the part of the policy that caused this behaviour.contributesTo - The Id of the line that this one will contribute to.amount - The amount to be contributed.priority - The priority of this line wrt other lines in the same sheet (lines with higher priority values are processed first)
calculate
public boolean calculate(AssessmentSheetList sheets,
AssessmentSheet sheet)
- A FixedSum can only either contribute to another FixedSum, or do nothing.
- Specified by:
calculate in class CalculationLine
- Parameters:
sheets - All the sheets in the current process.sheet - The sheet that this line is part of.
- Returns:
- true - always