|
||||||||||
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
public abstract class SavingsClub
An abstract savings club. Used as super-class for Stokvel and BurialSociety.
Field Summary | |
---|---|
(package private) double |
holdings
current holdings of the club |
(package private) double |
monthlyFee
monthly membership fee. |
(package private) java.util.HashMap<Person,java.lang.Integer> |
onGrace
list of members on a grace period |
Fields inherited from class org.cfpm.caves.za.Group |
---|
memberIDs, members, model, name, pcs |
Constructor Summary | |
---|---|
SavingsClub(java.lang.String type,
double holdings,
java.util.ArrayList<Person> members,
SouthAfricaModel model)
Creates a new savings club of the given type with the given holdings and members |
Method Summary | |
---|---|
int[] |
getGracePeriods()
returns the starts of the currently granted grace periods |
double |
getHoldings()
returns the current holdings |
jess.Value[] |
getMembersOnGrace()
returns the members currently on a grace period |
double |
getMonthlyFee()
returns the monthly membership fee |
void |
payIn(Person p,
double amount)
lets a member pay in the specified amount |
void |
removeMember(Person member)
removes the given member from the club |
void |
requestGracePeriod(Person member)
lets the given member request a grace period from the club. |
void |
setHoldings(double amount)
sets the holdings to the given amount |
void |
setMonthlyFee(double amount)
sets the monthly membership fee |
Methods inherited from class org.cfpm.caves.za.Group |
---|
addMember, 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 |
---|
java.util.HashMap<Person,java.lang.Integer> onGrace
double holdings
double monthlyFee
Constructor Detail |
---|
public SavingsClub(java.lang.String type, double holdings, java.util.ArrayList<Person> members, SouthAfricaModel model)
type
- the club's typeholdings
- the club's holdingsmembers
- the list of membersmodel
- the modelMethod Detail |
---|
public double getHoldings()
public void setHoldings(double amount)
amount
- new holdingspublic double getMonthlyFee()
public void setMonthlyFee(double amount)
amount
- monthly feepublic void payIn(Person p, double amount)
p
- the member paying inamount
- the amount the member is paying inpublic void removeMember(Person member)
removeMember
in class Group
member
- the member to be removedpublic void requestGracePeriod(Person member)
member
- the requesting memberpublic jess.Value[] getMembersOnGrace()
public int[] getGracePeriods()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |