|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cfpm.caves.za.Group
org.cfpm.caves.za.SavingsClub
org.cfpm.caves.za.BurialSociety
public class BurialSociety
A burial society is a community insurance that pays out money when a relative of a member dies. Monthly fees have to be paid in order to get anything. If someone can't pay there's a grace period of 3-6 months. If they pull out of the society they don't get any money (i.e. it's NOT a savings club!) Members usually try to stick with the society as long as possible.
Field Summary | |
---|---|
(package private) double |
payoutSum
the standard sum paid out for a burial. |
Fields inherited from class org.cfpm.caves.za.SavingsClub |
---|
holdings, monthlyFee, onGrace |
Fields inherited from class org.cfpm.caves.za.Group |
---|
memberIDs, members, model, name, pcs |
Constructor Summary | |
---|---|
BurialSociety(double holdings,
java.util.ArrayList<Person> members,
SouthAfricaModel model)
Creates a new burial society for the given members with the given holdings. |
Method Summary | |
---|---|
void |
addMember(Person member)
lets the given person join this burial society |
void |
payIn(Person member,
double amount)
lets the given member pay in their monthly fee (or more in case they have to pay off a grace period) |
double |
payOut(java.lang.String requestingMemberName,
java.lang.String deceasedName)
pay out to the requesting member for the burial of the deceased person |
double |
payOut(jess.Value requestingMember,
jess.Value deceased)
pay out to the requesting member for the burial of the deceased person |
void |
removeMember(Person member)
lets the given person leave this burial society |
Methods inherited from class org.cfpm.caves.za.SavingsClub |
---|
getGracePeriods, getHoldings, getMembersOnGrace, getMonthlyFee, requestGracePeriod, setHoldings, setMonthlyFee |
Methods inherited from class org.cfpm.caves.za.Group |
---|
addPropertyChangeListener, getMemberIDs, getName, removePropertyChangeListener, setMemberIDs, setName, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
double payoutSum
Constructor Detail |
---|
public BurialSociety(double holdings, java.util.ArrayList<Person> members, SouthAfricaModel model)
holdings
- the holdingsmembers
- the list of membersmodel
- the modelMethod Detail |
---|
public void addMember(Person member)
addMember
in class Group
member
- the new memberpublic void removeMember(Person member)
removeMember
in class SavingsClub
member
- the leaving memberpublic double payOut(jess.Value requestingMember, jess.Value deceased)
requestingMember
- the member requesting a payoutdeceased
- the person whose burial is covered by this burial society
public double payOut(java.lang.String requestingMemberName, java.lang.String deceasedName)
requestingMemberName
- name of the member requesting a payoutdeceasedName
- name of the person whose burial is covered by this burial society
public void payIn(Person member, double amount)
payIn
in class SavingsClub
member
- the member paying inamount
- the amount paid in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |