|
||||||||||
| 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
com.ail.insurance.policy.Behaviour
com.ail.insurance.policy.RateBehaviour
public class RateBehaviour
An assessment line which applies a rate behaviour - i.e. it applies a rate to the value of another line and optionally contributes the result to another line.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
RateBehaviour()
Default constructor |
|
RateBehaviour(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
java.lang.String dependsOn,
BehaviourType type,
Rate rate)
Constructor |
|
RateBehaviour(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
java.lang.String dependsOn,
BehaviourType type,
Rate rate,
int priority)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
calculate(AssessmentSheetList sheets,
AssessmentSheet sheet)
Perform this lines calculation. |
java.lang.String |
getDependsOn()
Get the name of the assessment sheet line that this line depends on. |
Rate |
getRate()
Get the Rate for this line. |
void |
setDependsOn(java.lang.String dependsOn)
Set the name of the assessment sheet line that this line depends on. |
void |
setRate(Rate rate)
Set the Rate for this line. |
| Methods inherited from class com.ail.insurance.policy.Behaviour |
|---|
getType, getTypeAsString, setType, setTypeAsString |
| Methods inherited from class com.ail.insurance.policy.CalculationLine |
|---|
getAmount, getAmountAsString, getContributesTo, setAmount, setContributesTo |
| 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 RateBehaviour()
public RateBehaviour(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
java.lang.String dependsOn,
BehaviourType type,
Rate rate)
id - The Id to use for this linereason - 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 cntributes to.dependsOn - The Id of the line that this on is derived from.type - Behaviour type (Load or Discount)rate - The rate to be used in the calculation.
public RateBehaviour(java.lang.String id,
java.lang.String reason,
Reference relatesTo,
java.lang.String contributesTo,
java.lang.String dependsOn,
BehaviourType type,
Rate rate,
int priority)
id - The Id to use for this linereason - 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 cntributes to.dependsOn - The Id of the line that this on is derived from.type - Behaviour type (Load or Discount)rate - The rate to be used in the calculation.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 getDependsOn()
public void setDependsOn(java.lang.String dependsOn)
dependsOn - Name of an assessment sheet linepublic Rate getRate()
public void setRate(Rate rate)
rate - This line's rate
public boolean calculate(AssessmentSheetList sheets,
AssessmentSheet sheet)
calculate in class CalculationLinesheets - The sheets being evaluatedsheet - The sheet that this line is part of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||