|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Person | |
---|---|
org.cfpm.caves.za |
Uses of Person in org.cfpm.caves.za |
---|
Fields in org.cfpm.caves.za declared as Person | |
---|---|
(package private) Person |
Household.head
the household head |
(package private) Person |
Person.spouse
|
Fields in org.cfpm.caves.za with type parameters of type Person | |
---|---|
(package private) java.util.ArrayList<Person> |
Person.currentPartners
|
(package private) java.util.ArrayList<Person> |
Household.members
the household members |
(package private) java.util.ArrayList<Person> |
Group.members
member list |
(package private) java.util.HashMap<java.lang.String,Person> |
SouthAfricaModel.namePersonMap
data structure to map names to Person objects, helpful for the interface with Jess |
(package private) java.util.HashMap<Person,java.lang.Integer> |
SavingsClub.onGrace
list of members on a grace period |
(package private) java.util.ArrayList<Person> |
SouthAfricaModel.personList
list of agents (persons) |
Methods in org.cfpm.caves.za that return Person | |
---|---|
private Person |
SouthAfricaModel.createHouseholdMember(java.lang.String name,
Household hhold)
Creates a new member for the given household. |
private Person |
Person.findBestAccommodator(java.util.ArrayList<Person> relatives)
internal helper function: find the relative whose household is best suited to accomodate this agent (who is an orphan) |
private Person |
Household.findEldestMember()
internal function: finds the eldest person amongst the members to take over as household head |
(package private) Person |
Person.findLivingRelative(boolean forAccommodation)
searches for the closest living relative of this agent |
private Person |
Household.findNextEldestMember(Person p)
internal function: finds the member who is eldest after the given member |
private Person |
Person.findYoungestSon(java.util.ArrayList<Person> children)
internal helper function: determine youngest son of this agent to inherit the house of this agent (who has died) |
Person |
Household.getHead()
returns the household's head |
Person |
Person.getSpouse()
returns this agent's spouse |
(package private) Person |
Household.pickRandomAdult()
returns a random adult from the household members |
private Person |
Person.pickRandomlyFromSameVillage(java.util.ArrayList<Person> relatives)
internal helper function: pick a random relative from the same village (if possible) |
Methods in org.cfpm.caves.za that return types with arguments of type Person | |
---|---|
protected java.util.ArrayList<Person> |
Person.getFriends()
returns this agent's friends |
protected java.util.ArrayList<Person> |
Person.getKin()
retrieves relatives in other households (from kinship network) |
java.util.ArrayList<Person> |
Household.getMembers()
returns the household's members |
private java.util.ArrayList<Person> |
SouthAfricaModel.getPossibleMothers()
helper function: determines possible mothers for a baby. |
private java.util.ArrayList<Person> |
Person.removeDead(java.util.ArrayList<Person> list)
internal helper function: removes the dead persons from a list of persons |
(package private) java.util.ArrayList<Person> |
SouthAfricaModel.retrieveObjects(jess.Value[] names)
returns the Person objects for the given list of names. |
Methods in org.cfpm.caves.za with parameters of type Person | |
---|---|
private void |
Group.addAsKnown(Person member)
internal function: the given member adds every other member as a known person and vice versa. |
void |
Person.addChild(Person child)
add a child for this agent |
void |
Person.addCurrentPartner(Person p)
adds the given sexual partner |
void |
Stokvel.addMember(Person p)
lets the given person join this stokvel |
void |
Household.addMember(Person member)
Adds the given person as a household member |
void |
Group.addMember(Person member)
adds a new member to the group. |
void |
BurialSociety.addMember(Person member)
lets the given person join this burial society |
void |
Person.addSibling(Person sibling)
add a sibling for this agent |
private void |
SouthAfricaModel.adjustEducationLevel(Person p)
helper function for assignEducationLevels() |
boolean |
SouthAfricaModel.askPensionOracle(Person p)
Determines if the given person will receive a pension. |
void |
Person.assertNeighbourEndorsement(Person neighbour)
endorse the given neighbour, i.e. assert a new endorsed fact with endorsement "is-neighbour" for this agent |
void |
Person.assertSameClubEndorsement(Person fellowMember)
endorse the given fellow club member, i.e assert a new endorsed fact with endorsement "same-club" |
jess.Value |
SouthAfricaModel.buildNewHouse(Person head)
Create a new household with the given person as head. |
(package private) void |
SouthAfricaModel.checkDeath(Person p)
Old version of checkDeath(). |
private void |
SouthAfricaModel.createFamilyLinks(Household hh,
Person[] members,
int[] memberType)
helper function for populateHouseholds() |
private void |
SouthAfricaModel.createFamilyLinks(Person baby,
Person mother,
Household household)
creates family links between new person and members of the household |
private void |
Household.determineNewHead(Person oldHead)
internal function: finds a new household head among the members |
private void |
Household.dissolve(Person heir)
internal function: this household dissolves and the given heir inherits all assets |
private void |
Group.endorse(Person member)
internal function: the given member endorses every other member with same-club endorsement and vice versa. |
(package private) void |
SouthAfricaModel.endorseKin(Person baby)
Assert kinship endorsements in Jess for the given person (a newborn baby). |
(package private) void |
SouthAfricaModel.endorseNeighbours(Person p)
Assert neighbour endorsements in Jess for the given person (a newborn baby). |
private Person |
Household.findNextEldestMember(Person p)
internal function: finds the member who is eldest after the given member |
private int |
SouthAfricaModel.findParent(Person[] members,
int[] type,
int childIndex)
helper function for createFamilyLinks() |
(package private) boolean |
Household.hasMember(Person p)
checks if the given person is a member of the household |
void |
Person.marry(Person spouse)
let this agent marry the given person |
void |
SavingsClub.payIn(Person p,
double amount)
lets a member pay in the specified amount |
void |
BurialSociety.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) |
void |
SouthAfricaModel.HIVDeathRecorder.record(Person p)
|
void |
SouthAfricaModel.PartnershipRecorder.record(Person[] partners,
int ticks)
|
void |
SouthAfricaModel.StokvelRecorder.recordEvent(java.lang.String stokvel,
java.lang.String event,
Person member)
|
private void |
SouthAfricaModel.StokvelRecorder.recordFriends(uchicago.src.sim.analysis.DataFileWriter writer,
Stokvel stokvel,
Person p)
|
void |
SouthAfricaModel.recordStokvelEvent(java.lang.String stokvel,
java.lang.String event,
Person member)
records the given event regarding the given member for the given stokvel |
void |
Person.removeCurrentPartner(Person p)
removes the given sexual partner |
private void |
SouthAfricaModel.removeLinks(Person p)
Helper function: removes the links of the given dead person. |
void |
Stokvel.removeMember(Person p)
lets the given person leave this stokvel |
void |
SavingsClub.removeMember(Person member)
removes the given member from the club |
void |
Household.removeMember(Person member)
Removes the given person from the household. |
void |
Group.removeMember(Person member)
removes the given member from this group. |
void |
BurialSociety.removeMember(Person member)
lets the given person leave this burial society |
void |
SouthAfricaModel.removePerson(Person p)
Removes a dead person from the model and records his/her death. |
void |
Person.removeSameClubEndorsement(Person fellowMember)
un-endorse the given fellow club member, i.e retract the endorsed fact with endorsement "same-club" for this agent |
void |
SavingsClub.requestGracePeriod(Person member)
lets the given member request a grace period from the club. |
private void |
SouthAfricaModel.setAsHead(Person person,
SouthAfricaModel.EmpiricalDiscreteDist statusDistribution)
helper function for populateHouseholds() |
void |
Household.setHead(Person head)
sets the household's head |
void |
Person.setSpouse(Person spouse)
sets the agent's spouse |
private void |
Group.unEndorse(Person member)
internal function: the leaving member removes same-club endorsement for every other member and vice versa. |
private void |
Person.updatePartnerDuration(Person p)
internal helper function: updates the partner duration for the given partner |
private void |
Person.updatePartnerDuration(Person p,
int duration)
internal helper function: update recorded data about partnership duration |
void |
Person.updateTag(Person[] friends,
double[] endorsementValues)
Updates the agent's tag. |
Method parameters in org.cfpm.caves.za with type arguments of type Person | |
---|---|
private void |
Household.accommodate(java.util.ArrayList<Person> orphans)
internal function: let the given orphans join the household |
(package private) void |
SouthAfricaModel.checkDeath(java.util.ArrayList<Person> ageGroup,
SouthAfricaModel.WHOLifeTable table)
helper function for checkDeath(): determines deaths for given age group according to given life table. |
private Person |
Person.findBestAccommodator(java.util.ArrayList<Person> relatives)
internal helper function: find the relative whose household is best suited to accomodate this agent (who is an orphan) |
private java.util.ArrayList<jess.Value> |
SouthAfricaModel.findChurches(java.util.ArrayList<Person> list)
helper function for pickFriends |
private Person |
Person.findYoungestSon(java.util.ArrayList<Person> children)
internal helper function: determine youngest son of this agent to inherit the house of this agent (who has died) |
private void |
SouthAfricaModel.pickFriends(java.util.ArrayList<Person> members,
int maxNum,
java.util.ArrayList<Household> village)
helper function for createBurialSocieties() |
private Person |
Person.pickRandomlyFromSameVillage(java.util.ArrayList<Person> relatives)
internal helper function: pick a random relative from the same village (if possible) |
private void |
SouthAfricaModel.pickRelatives(java.util.ArrayList<Household> related,
int n,
java.util.ArrayList<Person> members)
helper function for createBurialSocieties() |
private java.util.ArrayList<Person> |
Person.removeDead(java.util.ArrayList<Person> list)
internal helper function: removes the dead persons from a list of persons |
void |
Household.setMembers(java.util.ArrayList<Person> mems)
sets the household's members |
private int[] |
SouthAfricaModel.sortPersonList(int lowAge,
int highAge,
java.util.ArrayList<Person> newList)
helper method for pickMigrants() |
Constructor parameters in org.cfpm.caves.za with type arguments of type Person | |
---|---|
BurialSociety(double holdings,
java.util.ArrayList<Person> members,
SouthAfricaModel model)
Creates a new burial society for the given members with the given holdings. |
|
Group(java.lang.String type,
java.util.ArrayList<Person> members,
SouthAfricaModel model)
Creates a new group of the given type with the given members. |
|
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 |
|
Stokvel(java.util.ArrayList<Person> members,
SouthAfricaModel model)
Creates a new stokvel for the given members |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |