units
Class Agent

java.lang.Object
  extended by units.Agent
All Implemented Interfaces:
java.lang.Comparable

public class Agent
extends java.lang.Object
implements java.lang.Comparable

Class representing an individual person as agent.


Field Summary
static int ACCEPT
           
private  java.util.ArrayList<Agent> acceptances
          friends list
private  java.lang.String achievedEducation
          default education level
private  java.util.ArrayList<Agent> acquaintances
          List of my acquaintances
private  int age
          age of the agent
private  int ageGroup
           
private  boolean alive
           
private  double aspirationLevel
           
private  boolean atSchool
           
private  double base
           
private  int birthTick
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  boolean committed
           
private  int courtShipDuration
           
private  int deathTick
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  Household employer
          My current empoloyer
private  int expectedLife
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  int fatherID
           
private  int fatherOfMyChildID
          father id for single mother's casde
private  int feedStatus
          Initial feed status
private  int fertilityAgeLimit
          to be replaced by a sigmoid curve
private  java.util.ArrayList<Agent> friends
          friends list
private  int gender
          assign 0 -> 'Female'; '1' -> 'Male' ; -1 -> 'unassigned'
private  Grant grant
          a grant is an agent's property, though it's shared by the entire household.
private  boolean head
          is head of the household
private  int healthCount
          the health count
private  int healthStatus
          health status of the agent
private  Household household
          Household of the agent
private  int houseHoldID
          ID of this household to this individual belongs
private  int id
          agent's id ...
private  int infectedAge
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  int infectedLag
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  int infectedTick
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  boolean innovator
           
static int INVITE
           
static int INVITE2
           
private  java.util.ArrayList<Agent> invited
          friends list
private  boolean laborFit
          is fit ofr labor
private  int lastMigrationTry
           
private  double lastTryStokvel
          last try for stokvel count
private  int lastVisit
           
private  int lateLag
           
private  int maritalStatus
           
private  int maternalHouseholdID
          for wives only
private  int maxCourtShipDuration
           
private  int maxOutsiderWaitingMonths
           
private  int maxSexualPartners
          Max sexual partners I can have
private  boolean memberFuneralClub
          is memebr of funeral club
private  boolean memberSavings
           
private  int midLag
           
private  boolean migrated
          is migrated
private  int migratedTick
           
private  boolean mineJob
           
private  boolean mineTrained
          mining stuff
private  Model model
           
private  int motherID
           
private  java.lang.String[] negativeEndorsements
           
private  int[] negativeEndosrsementValues
           
private  int numEndorsementClasses
           
private  int numMigrationTries
           
private  int numMonthsOutsiderArrival
           
private  int numStokvelTries
          number of stokvel tries
private  java.util.ArrayList<Agent> offSprings
          My offsprings
private  boolean onVisit
          is visiting home
private  boolean orphan
           
private  boolean outsider
           
private  boolean pieceJob
          is having piecejob
private  java.lang.String[] positiveEndorsements
          start: the following are regarding the endorsement mech to be implemented for finding partners
private  int[] positiveEndosrsementValues
           
private  java.util.ArrayList<Agent> potentialFemales
          Potential female sexual partners
private  Agent potentialPartner
           
private  int pregnancyTick
          Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ...
private  boolean pregnant
          is pregnant
private  java.util.ArrayList<Agent> proposers
          Current proposers for sexual relation
private  boolean pullOutMembership
           
private  double quality
          the following is from my implementation of the marriage model proposed by Todd and Billari (2003), reported by Heuveline (2003) Ref: Todd, P.M.
static int REJECT
           
private  int remittance_Amount
           
private  java.util.ArrayList<Agent> sexualPartners
          Current sexual partners
private  java.util.ArrayList<Message> sexualPartnershipMessageInbox
           
private  java.util.ArrayList<Message> sexualPartnershipMessageOutbox
           
private  boolean singleMother
          is single mother
private  int singleRemittanceLimit
           
private  int spouseID
           
static int STOKVEL
           
private  java.util.ArrayList<Message> stovelMessageInbox
           
private  java.util.ArrayList<Message> stovelMessageOutbox
           
private  int waitingThreshold
          number of months I can wait without a partner
private  int waitingTime
          number of months I have been waiting without a partner
private  boolean wouldGetChildGrant
          Chance that I get a child grant, if eligible
private  boolean wouldGetDisabilityGrant
          Chance that I get a disability grant, if eligible
private  boolean wouldGetPension
          Chance that I get a pension grant, if eligible
 
Constructor Summary
Agent()
           
Agent(int _id)
           
Agent(int _id, Household _household, Model _model)
          for Empirical Households
Agent(int _id, int _gender, int _healthStatus, Household _household, Model _model)
          This is for child who's born during simulation
Agent(int _id, int _gender, int _ageGroup, int _healthStatus, Household _household, Model _model)
          Used for creating coarse-grained household composition
Agent(int _id, Model _model)
          For outsider agents
 
Method Summary
 void applyForPieceWork(int currentTick)
          Apply for piecwork for this agent
 boolean askFood(Agent friend)
          from RADAR: a hungry person would ask their neighbors (in our case, it's friends) not more than two days in a row.
 void assignAspiration()
          Assign aspiration to the partners
 void assignEndorsmentValues()
           
 void attemptMigration(int currentTick)
          My attempt to migrate at this time
 boolean availableAtVillage()
          Am I currently in village
 boolean birthPossible(int currenTick)
          If birth possible for the female agent at this time
 double calculateEndorsement(Agent agent)
           
 void checkDeath()
          there could be several reasons for a person dying ...
 Agent chooseMaleSexualPartner()
          Choose the best male partner for me
 Agent chooseMaleSexualPartner2()
           
 void clearAllFriends()
          Remove all agents as my friends
 void clearAllSexualPartners()
          Remove all my sexual partners
 int compareTo(java.lang.Object anotherAgent)
          Compare the agent based on quality
 void courtshipBroken(Agent partner)
          Break my courtship with this partner
 void createStokvel()
          I'm the moderator/facilitator; creating the stokvel
 void decNumStokvelTries()
           
 void decreaseAspiration()
          Decrease aspiration
 void education(int currentTick)
          assigne education levels - from RM
 boolean endogamicRelation(Agent agent)
          Check if I have an endogamic relation
 void fastDecayHealth(int currentTick)
          Decay health based on Sigmoid function
 boolean feedFriend(Agent agent)
          Should I feed my friend
 boolean fertility(int currentTick)
          SJA: Aug 27, 2007 now introducing the fertility rate and declining of age into fertility with age TODO: we need to introduce a sigmoid for a gradual decline in the fertility of women Reference: www.bcm.edu/news/item.cfm?newsID=66 TODO: to get a proper reference
 Agent findBestEndorsedSuitor()
          Find the best endorsded suitor for me.
 void findFuneralClub()
          Find me a funeral club
 java.util.ArrayList<Agent> findRandomFemales()
          now here, we must implement assortative mixing and age specific rules depending upon the men's preferences
 java.util.ArrayList<Agent> findSuitableFemalePartners(java.util.ArrayList<Agent> availableFemales)
          Find suitabl femal partners for me.
 void flushMembership()
           
 java.util.ArrayList<Agent> getAcceptances()
           
 java.lang.String getAchievedEducation()
          Get my achieved education status
 java.util.ArrayList<Agent> getAcquaintances()
          Get my acquaintances list
 int getAge()
          Get my age
 int getAgeGroup()
          Get my age group
 double getAspirationLevel()
           
 double getBase()
           
 int getBirthTick()
          Get my birth month
 int getCourtShipDuration()
           
 int getDeathTick()
           
 Household getElderSiblingOrAuntHousehold()
           
 Household getEmployer()
           
 int getExpectedLife()
          Return my expected life
 int getFatherID()
          Return my father id
 int getFatherOfMyChildID()
          Get the father id of the child I have delivered
 int getFeedStatus()
          Return feed status
 int getFertilityAgeLimit()
          Get fertility age limit
 java.util.ArrayList<Agent> getFriends()
          Get my friends
 int getGender()
          Get my gender
 Household getGPHousehold()
          Get the grandparent's household, if it exists
 Grant getGrant()
           
 int getGrantValue()
          Get my grant value
 int getHealthCount()
          Get my health count
 int getHealthStatus()
          Get my health status
 Household getHousehold()
          Get my household
 int getHouseHoldID()
          Get my health count
 int getId()
          Get my Id
 int getInfectedLag()
          Get my infected lag
 int getInfectedTick()
          Get my infected
 int getLastVisit()
           
 int getLateLag()
          Return lag for Late HIV Stage
 int getMaritalStatus()
          Return my marital status
 int getMaternalHouseholdID()
          Get my pre-marriage household id
 int getMaxOutsiderWaitingMonths()
           
 int getMaxSexualPartners()
          Get my sexual partenrs list
 boolean getMemberFuneralClub()
          Get my funeral club
 int getMidLag()
          Get lag for mid HIV Stage
 int getMigratedTick()
           
 int getMotherID()
          Return my mother id
 java.lang.String[] getNegativeEndorsements()
           
 int getNumEndorsementClasses()
           
 int getNumMonthsOutsiderArrival()
           
 int getNumStokvelTries()
           
 java.util.ArrayList<Agent> getOffSprings()
           
 void getPieceWork(int currentTick)
          Get piecwork for this agent
 java.lang.String[] getPositiveEndorsements()
           
 java.util.ArrayList<Agent> getPotentialFemales()
          Get my potential female partners list
 Agent getPotentialPartner()
           
 int getPregnancyTick()
          Get my household
 java.util.ArrayList<Agent> getProposers()
           
 double getQuality()
           
 int getRemittance_Amount()
          Return my remittance
 java.util.ArrayList<Agent> getSexualPartners()
          Get my sexual partenrs list
 java.util.ArrayList<Message> getSexualPartnershipMessageInbox()
           
 java.util.ArrayList<Message> getSexualPartnershipMessageOutbox()
           
 Agent getSpouse()
          Return my spouse if married
 int getSpouseID()
          Return my spouse id
protected  java.util.ArrayList<Agent> getStokvelCandidates()
          Return stokvel candidates for the new stokvel
 java.util.ArrayList<Message> getStovelMessageInbox()
           
 java.util.ArrayList<Message> getStovelMessageOutbox()
           
 int getWaitingThreshold()
           
 int getWaitingTime()
           
 void handleAcceptance(Message message)
          handle acceptance for stokvel invitation
 void handleCourshipAcceptance(Message message)
          handle acceptance for courtship offer
 void handleCourshipRejection(Message message)
          handle rejection for courtship offer
 void handleCourtshipOffer(Message message)
          handle offer for courtship
 void handleIntivation(Message message)
          Handle stokvel invitation
 void handleMessage(Message message)
          Handle stokvel related message
 void handleRejection(Message message)
          handle rejection for stokvel invitation
 void handleSexualPartnershipMessage(Message message)
          Handle messages related to formation of sexual partnerships
 boolean hasHIV()
          Is having HIV/AIDS?
 void hivTreatment(int currentTick)
          Add me to the clinic
 void incNumStokvelTries()
           
 void increaseAspiration()
          Inmcrease aspiration
 void incrementAge()
          Increase age
 void initialize()
          Initialize settings for village agents
 void initializeAgeGroup()
          Initialize age groups
 void initializeCourtshipSettings()
          from the marriage model ...
private  void initializeFertlityLimit()
          Assign fertility age limit
 void initializeFriends()
          friendship is dyadic (symmetric) a and there's another starting assumption that no two friends belong to the same household ..
 void initializeOutsider()
          Initialize settings for Outsider agents
 boolean isAlive()
          Am I alive?
 boolean isAspirationFit(Agent potentialPartner)
           
 boolean isAtSchool()
          Am I at school
 boolean isCommitted()
           
 boolean isHead()
          Am I a head
 boolean isInnovator()
          Am I innovator
 boolean isLaborFit()
          Am I labor fir
 boolean isLaborFit(int currentTick)
          following meeting with Gina at Aberdeen ...
 boolean isMemberSavings()
           
 boolean isMigrated()
          Have I migrated
 boolean isMineJob()
          Am I on mine job
 boolean isMineTrained()
          Am I mine trained
 boolean isNuclearFamilyRelation(Agent agent)
          Check if I have a nuclear family relation with this agent
 boolean isOnVisit()
           
 boolean isOrphan()
          Is this one an orphan
 boolean isOutsider()
          Am I an outsider
 boolean isPieceJob()
          Am I on piecejob
 boolean isPregnant()
          is pregnant
 boolean isPullOutMembership()
          Am I pulling out from stokvel
 boolean isSavingsPossible()
          Check if I can join a stokvel
 boolean isSingleMother()
          Am I single mother
 boolean isUncleOrAunty(Agent agent)
          Check if this is my uncle or aunty
 boolean isWouldGetChildGrant()
          Get my chance for child grant
 boolean isWouldGetDisabilityGrant()
          Get my chance for disability grant
 boolean isWouldGetPension()
          Get my chance for pension
 boolean isYoungestSon()
          currently, it's not the youngest ...
 void makeFriend(Agent friend)
          Make new friend
 void makePregnanct(int currentTick)
          Set as pregnant at this step
 void migrate(int currentTick)
          I migrate at this time
 boolean pregnancyPossible(int currentTick)
          Is pregnancy possible
 void printMyCurrentProfile()
          Print my current profile
 void processSexualPartnershipInbox()
          Process my proposals and messages for forming sexual relationship
 void processSexualPartnershipOutbox(java.util.ArrayList<Agent> females)
          Process my proposals and messages for forming sexual relationship
 void processStokvelInbox()
          Processes stokvel messages inbox
 void processStokvelOutbox()
          Processes stokvel messages outbox
 void removeFriend(Agent friend)
          Remove this friend from my friendship network
 void resetMyCouples()
          Remove all my sexual relations
 boolean resumeMigration(int currentTick)
          break up with all current sexual partners except the spouse
 Household retrieveGPHousehold(Agent parent)
          Get grandparent's household: maternal or paternal depending upon the parent
 Agent returnAcquaintanceCity()
          Return an acquaintance who has already migrated
 java.util.ArrayList<Agent> returnFemaleAcquaintances()
          Return my female acquaintances
 java.util.ArrayList<Agent> returnFemaleFriends()
          Return my female friends
 int returnIndexOf(java.lang.String str, int endorsementType)
           
 int returnMyMineJobEarning()
          Return my renumeration from mine
 int returnMyPieceWorkEarning()
          Return my renumeration from piecework
 int returnMyRemittance()
          again magic assumptions ...
 void sendAcceptance(Message message)
          send acceptance for stokvel invitation
 void sendCourtshipAcceptnce(Agent proposer)
          send offer for courtship
 void sendCourtShipInvitation()
          Send courtship offer to suitable females
 void sendCourtshipRejection(Agent proposer)
          send rejection for courtship offer
 void sendInvitation()
          Send invitation to join stokvel
 void sendInvitation2()
           
 void sendRejection(Message message)
          send rejection for stokvel invitation
 boolean sendStokvelInvitation()
          send invitation to join stokvel
 void setAcceptances(java.util.ArrayList<Agent> acceptances)
           
 void setAchievedEducation(java.lang.String educationLevel)
          Set my achieved education status
 void setAcquaintances(java.util.ArrayList<Agent> acquaintances)
          Set my acquaintances list
 void setAge(int _age)
          Set my age
 void setAgeGroup(int _ageGroup)
          Set my age group
 void setAlive(boolean _alive)
          set life status
 void setAspirationLevel(double aspirationLevel)
           
 void setAtSchool(boolean atSchool)
           
 void setBase(double base)
           
 void setBirthTick(int birthTick)
          Set my birth month
 void setCommitted(boolean _committed)
           
 void setCourtShipDuration(int courtShipDuration)
           
 void setDeathTick(int deathTick)
           
 void setEmployer(Household employer)
           
 void setExpectedLife(int expectedLife)
          Set my expected life
 void setFatherID(int fatherID)
          Set my father id
 void setFatherOfMyChildID(int fatherOfMyChildID)
          Set the father id of the child I have delivered
 void setFeedStatus(int feedStatus)
          Set feed status
 void setFertilityAgeLimit(int fertilityAge)
          Set fertility age limit
 void setFriends(java.util.ArrayList<Agent> friends)
          set my friends
 void setGender(int gender)
          Set my age group
 void setGrant(Grant _grant)
           
 void setGrant(int grantType)
           
 void setHead(boolean isHead)
          Make me household head
 void setHealthCount(int _healthCount)
          Set my health count
 void setHealthStatus(int _healthStatus)
          Set my health status
 void setHousehold(Household household)
          Set my household
 void setHouseHoldID(int houseHoldID)
          Set my health count
 void setId(int id)
          Set my Id
 void setInfectedTick(int currentTick)
          this method used for monthly scale
 void setInnovator(boolean isInnovator)
          Make me an innovator
 void setIsMemberFuneralClub(boolean _isMemberFuneralClub)
           
 void setLaborFit(boolean laborFit)
          Set my fitness status
 void setLastVisit(int lastVisit)
           
 void setLateLag(int lateLag)
          Set lag for Late HIV Stage
 void setMaritalStatus(int maritalStatus)
          Set my marital status
 void setMaternalHouseholdID(int maternalHouseholdID)
          Set my pre-marriage household id
private  void setMaxSexualPartners()
          Set Maximum sexual partners
 void setMaxSexualPartners(int maxSexualPartners)
          Set my sexual partenrs list
 void setMemberSavings(boolean _isMemberSavings)
           
 void setMidLag(int midLag)
          Set lag for mid HIV Stage
 void setMigrated(boolean isMigrated)
          Set me as migrated
 void setMineJob(boolean mineJob)
           
 void setMineTrained(boolean mineTrained)
           
 void setMotherID(int motherID)
          Set my mother id
 void setNumEndorsementClasses(int maximumWeightForEndorsementClasses)
           
 void setNumMonthsOutsiderArrival(int numMonthsOutsiderArrival)
           
 void setNumStokvelTries(int n)
           
 void setOnVisit(boolean onVisit)
           
 void setOrphan(boolean isOrphan)
          make orphan
 void setOutsider(boolean outsider)
          Set I am an outsider
 void setPieceJob(boolean isPieceJob)
           
 void setPotentialFemales(java.util.ArrayList<Agent> potentialFemales)
          Set my potential female partners list
 void setPotentialPartner(Agent potentialPartner)
           
 void setPregnancyTick(int pregnancyTick)
          Set my household
 void setPregnant(boolean pregnant)
           
 void setPullOutMembership(boolean pullOutMembership)
          Set me as pulling out from stokvel
 void setQuality(double baseQuality)
           
 void setRemittance_Amount(int remittance_Amount)
          Set my remittance
 void setSavingsPool(int sum)
           
 void setSexualPartners(java.util.ArrayList<Agent> sexualPartners)
          Set my sexual partenrs list
 void setSexualPartnershipMessageInbox(java.util.ArrayList<Message> sexInbox)
           
 void setSexualPartnershipMessageOutbox(java.util.ArrayList<Message> sexOutbox)
           
 void setSingleMother(boolean singleMother)
          Set single mother
 void setSpouseID(int spouseID)
          Sets my spouse id
 void setStovelMessageInbox(java.util.ArrayList<Message> inbox)
           
 void setStovelMessageOutbox(java.util.ArrayList<Message> outbox)
           
 void setWaitingThreshold(int waitingThreshold)
           
 void setWaitingTime(int waitingTime)
           
 void setWouldGetChildGrant(boolean wouldGetChildGrant)
          Set my chance for child grant
 void setWouldGetDisabilityGrant(boolean wouldGetDisabilityGrant)
          Set my chance for disability grant
 void setWouldGetPension(boolean wouldGetPension)
          Set my chance for child grant
 boolean shouldMigrate()
          Post-Validation and Post-Fieldtrip* Decide whether should I migrate or not
 boolean shouldSendOffer(Agent potentialPartner)
          Should send offer to this potential partner
 boolean shouldSendOffer2(Agent potentialPartner)
           
 boolean shouldSendOfferOutsider(Agent potentialPartner)
          Should send offer to this potential partner - called if I am an outsider agent
 void stokvelTries(int currentTick)
           
 boolean stopMigration(int currentTick)
          Migration stopped; returned to village.
 void tryBestFemale()
          Find the best female potential partner
 void tryBestProposer()
          Find the best male suitor
 void updateAge()
          Update my age and age groups
 void updateAspirationLevel()
          Update my aspiration level (Heuveline et al.
 void updateCourtshipThreshold()
          Update my courtship duration with age
 void updateFriendshipGui()
          Update my friendship network gui
private  void updateGrantChances()
          Update my grant chances
 void updateHealthCount(int currentTick)
          this only updates the health count of agents regardless of their age and sex and HIV ...
 void updateHealthStatus(int currentTick)
          Update My health stauts
 void updateHIVHealthStatus(int currentTick)
          Decay health of agents having HIV/AIDS late stages
 void updateOutsiderProfile(int currentTick)
          Updates age and health of outsider agents
 void updateProfile(int currentTick)
          Update agents' profile at every step; includes ageing, death, pregnancy, health status and health count
 void visitHome(int currentTick)
          It is assumed that a migrant agent sends the remittances every month through someone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private int id
agent's id ...


gender

private int gender
assign 0 -> 'Female'; '1' -> 'Male' ; -1 -> 'unassigned'


houseHoldID

private int houseHoldID
ID of this household to this individual belongs


maternalHouseholdID

private int maternalHouseholdID
for wives only


healthStatus

private int healthStatus
health status of the agent


age

private int age
age of the agent


grant

private Grant grant
a grant is an agent's property, though it's shared by the entire household. It's also assumed that an individual is getting exactly one grant, e.g. if there is a child suffering from HIV we allocate the grant which is more i.e., the child_grant and when he/she gets old, it start receiving the hiv grant because the child grant stops


model

private Model model

household

private Household household
Household of the agent


maritalStatus

private int maritalStatus

motherID

private int motherID

fatherID

private int fatherID

spouseID

private int spouseID

ageGroup

private int ageGroup

alive

private boolean alive

orphan

private boolean orphan

achievedEducation

private java.lang.String achievedEducation
default education level


atSchool

private boolean atSchool

healthCount

private int healthCount
the health count


feedStatus

private int feedStatus
Initial feed status


head

private boolean head
is head of the household


singleMother

private boolean singleMother
is single mother


pregnant

private boolean pregnant
is pregnant


fatherOfMyChildID

private int fatherOfMyChildID
father id for single mother's casde


expectedLife

private int expectedLife
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


birthTick

private int birthTick
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


deathTick

private int deathTick
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


infectedTick

private int infectedTick
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


infectedAge

private int infectedAge
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


pregnancyTick

private int pregnancyTick
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


infectedLag

private int infectedLag
Last Age: is drawn from a normal distribution with a mean life expectancy and standard deviation ... both PARAMETERS in the Settings ... SEE constructor ... needs separate parameter values for males and females


innovator

private boolean innovator

memberSavings

private boolean memberSavings

pullOutMembership

private boolean pullOutMembership

committed

private boolean committed

friends

private java.util.ArrayList<Agent> friends
friends list


invited

private java.util.ArrayList<Agent> invited
friends list


acceptances

private java.util.ArrayList<Agent> acceptances
friends list


lastTryStokvel

private double lastTryStokvel
last try for stokvel count


numStokvelTries

private int numStokvelTries
number of stokvel tries


INVITE

public static int INVITE

INVITE2

public static int INVITE2

ACCEPT

public static int ACCEPT

REJECT

public static int REJECT

STOKVEL

public static int STOKVEL

memberFuneralClub

private boolean memberFuneralClub
is memebr of funeral club


numMigrationTries

private int numMigrationTries

lastMigrationTry

private int lastMigrationTry

laborFit

private boolean laborFit
is fit ofr labor


pieceJob

private boolean pieceJob
is having piecejob


migrated

private boolean migrated
is migrated


migratedTick

private int migratedTick

singleRemittanceLimit

private int singleRemittanceLimit

remittance_Amount

private int remittance_Amount

onVisit

private boolean onVisit
is visiting home


lastVisit

private int lastVisit

fertilityAgeLimit

private int fertilityAgeLimit
to be replaced by a sigmoid curve


employer

private Household employer
My current empoloyer


stovelMessageInbox

private java.util.ArrayList<Message> stovelMessageInbox

stovelMessageOutbox

private java.util.ArrayList<Message> stovelMessageOutbox

sexualPartnershipMessageInbox

private java.util.ArrayList<Message> sexualPartnershipMessageInbox

sexualPartnershipMessageOutbox

private java.util.ArrayList<Message> sexualPartnershipMessageOutbox

positiveEndorsements

private java.lang.String[] positiveEndorsements
start: the following are regarding the endorsement mech to be implemented for finding partners


negativeEndorsements

private java.lang.String[] negativeEndorsements

base

private double base

numEndorsementClasses

private int numEndorsementClasses

positiveEndosrsementValues

private int[] positiveEndosrsementValues

negativeEndosrsementValues

private int[] negativeEndosrsementValues

quality

private double quality
the following is from my implementation of the marriage model proposed by Todd and Billari (2003), reported by Heuveline (2003) Ref: Todd, P.M. and Billari, F.C. (2003), Population-wide marriage patterns by individual mate-heuristics, in Billari, F.C. and F/urnkranz-Prskawetz, A. (eds.) Agent-Based Computational Demographic Behavior, New York: Physica-Verlag. *


aspirationLevel

private double aspirationLevel

waitingThreshold

private int waitingThreshold
number of months I can wait without a partner


waitingTime

private int waitingTime
number of months I have been waiting without a partner


courtShipDuration

private int courtShipDuration

maxCourtShipDuration

private int maxCourtShipDuration

potentialPartner

private Agent potentialPartner

proposers

private java.util.ArrayList<Agent> proposers
Current proposers for sexual relation


sexualPartners

private java.util.ArrayList<Agent> sexualPartners
Current sexual partners


maxSexualPartners

private int maxSexualPartners
Max sexual partners I can have


potentialFemales

private java.util.ArrayList<Agent> potentialFemales
Potential female sexual partners


offSprings

private java.util.ArrayList<Agent> offSprings
My offsprings


wouldGetChildGrant

private boolean wouldGetChildGrant
Chance that I get a child grant, if eligible


wouldGetDisabilityGrant

private boolean wouldGetDisabilityGrant
Chance that I get a disability grant, if eligible


wouldGetPension

private boolean wouldGetPension
Chance that I get a pension grant, if eligible


mineTrained

private boolean mineTrained
mining stuff


mineJob

private boolean mineJob

outsider

private boolean outsider

numMonthsOutsiderArrival

private int numMonthsOutsiderArrival

maxOutsiderWaitingMonths

private int maxOutsiderWaitingMonths

midLag

private int midLag

lateLag

private int lateLag

acquaintances

private java.util.ArrayList<Agent> acquaintances
List of my acquaintances

Constructor Detail

Agent

public Agent()

Agent

public Agent(int _id)

Agent

public Agent(int _id,
             Household _household,
             Model _model)
for Empirical Households


Agent

public Agent(int _id,
             int _gender,
             int _ageGroup,
             int _healthStatus,
             Household _household,
             Model _model)
Used for creating coarse-grained household composition

Parameters:
_id -
_gender -
_ageGroup -
_healthStatus -
_household -
_model -

Agent

public Agent(int _id,
             Model _model)
For outsider agents


Agent

public Agent(int _id,
             int _gender,
             int _healthStatus,
             Household _household,
             Model _model)
This is for child who's born during simulation

Method Detail

initializeOutsider

public void initializeOutsider()
Initialize settings for Outsider agents


initialize

public void initialize()
Initialize settings for village agents


updateGrantChances

private void updateGrantChances()
Update my grant chances


initializeFertlityLimit

private void initializeFertlityLimit()
Assign fertility age limit


initializeCourtshipSettings

public void initializeCourtshipSettings()
from the marriage model ...


setMaxSexualPartners

private void setMaxSexualPartners()
Set Maximum sexual partners


initializeFriends

public void initializeFriends()
friendship is dyadic (symmetric) a and there's another starting assumption that no two friends belong to the same household .. even though it might be possible later on, i.e. when the hh are accommodated etc.


assignEndorsmentValues

public void assignEndorsmentValues()

incrementAge

public void incrementAge()
Increase age


setAlive

public void setAlive(boolean _alive)
set life status


isAlive

public boolean isAlive()
Am I alive?


education

public void education(int currentTick)
assigne education levels - from RM


updateProfile

public void updateProfile(int currentTick)
Update agents' profile at every step; includes ageing, death, pregnancy, health status and health count


updateHIVHealthStatus

public void updateHIVHealthStatus(int currentTick)
Decay health of agents having HIV/AIDS late stages


updateOutsiderProfile

public void updateOutsiderProfile(int currentTick)
Updates age and health of outsider agents


shouldMigrate

public boolean shouldMigrate()
Post-Validation and Post-Fieldtrip* Decide whether should I migrate or not


returnAcquaintanceCity

public Agent returnAcquaintanceCity()
Return an acquaintance who has already migrated


updateHealthCount

public void updateHealthCount(int currentTick)
this only updates the health count of agents regardless of their age and sex and HIV ... this is a crude implementation and needs to be worked on in much detail ... a crucial method


updateHealthStatus

public void updateHealthStatus(int currentTick)
Update My health stauts


fastDecayHealth

public void fastDecayHealth(int currentTick)
Decay health based on Sigmoid function


updateAge

public void updateAge()
Update my age and age groups


checkDeath

public void checkDeath()
there could be several reasons for a person dying ... so that's why we've got a separate method - to kill ... - old age == Need Normal Dist central at 50 ~ life expectancy rate: South Africa - hiv/aids - lack of nutrition or illness


getGPHousehold

public Household getGPHousehold()
Get the grandparent's household, if it exists

Returns:

getElderSiblingOrAuntHousehold

public Household getElderSiblingOrAuntHousehold()

fertility

public boolean fertility(int currentTick)
SJA: Aug 27, 2007 now introducing the fertility rate and declining of age into fertility with age TODO: we need to introduce a sigmoid for a gradual decline in the fertility of women Reference: www.bcm.edu/news/item.cfm?newsID=66 TODO: to get a proper reference


retrieveGPHousehold

public Household retrieveGPHousehold(Agent parent)
Get grandparent's household: maternal or paternal depending upon the parent

Parameters:
parent -
Returns:

isLaborFit

public boolean isLaborFit(int currentTick)
following meeting with Gina at Aberdeen ... usually, it's 60% male and 20% female "(and(agent (isAlive TRUE)(ageGroup ~" + Settings.AGE_GROUP.CHILD + ")(isRemittance FALSE)(OBJECT ?agent))" + "(agent (ageGroup " + Settings.AGE_GROUP.SENIOR + ")(healthStatus " + Settings.HEALTH_STATUS.DISABLE + ")(OBJECT ?agent)))" +


isYoungestSon

public boolean isYoungestSon()
currently, it's not the youngest ... but picking the last male in the family ... the last one to marry ...


returnMyRemittance

public int returnMyRemittance()
again magic assumptions ... but this time, the remittance corresponds to the education level of the agents TODO: 1. agents on migrationn should have tenures/durations for jobs ... also ... their income should remain fixed ...


returnMyMineJobEarning

public int returnMyMineJobEarning()
Return my renumeration from mine


returnMyPieceWorkEarning

public int returnMyPieceWorkEarning()
Return my renumeration from piecework


askFood

public boolean askFood(Agent friend)
from RADAR: a hungry person would ask their neighbors (in our case, it's friends) not more than two days in a row. this 25% chance is just a Q&D solution to making the daily 'two days in a row' to our monthly scale ... this needs further work


feedFriend

public boolean feedFriend(Agent agent)
Should I feed my friend


hivTreatment

public void hivTreatment(int currentTick)
Add me to the clinic


attemptMigration

public void attemptMigration(int currentTick)
My attempt to migrate at this time


migrate

public void migrate(int currentTick)
I migrate at this time


getPieceWork

public void getPieceWork(int currentTick)
Get piecwork for this agent


applyForPieceWork

public void applyForPieceWork(int currentTick)
Apply for piecwork for this agent


sendInvitation

public void sendInvitation()
Send invitation to join stokvel


sendInvitation2

public void sendInvitation2()

getStokvelCandidates

protected java.util.ArrayList<Agent> getStokvelCandidates()
Return stokvel candidates for the new stokvel


createStokvel

public void createStokvel()
I'm the moderator/facilitator; creating the stokvel


getFatherID

public int getFatherID()
Return my father id


setFatherID

public void setFatherID(int fatherID)
Set my father id


getMotherID

public int getMotherID()
Return my mother id


setMotherID

public void setMotherID(int motherID)
Set my mother id


getMaritalStatus

public int getMaritalStatus()
Return my marital status


setMaritalStatus

public void setMaritalStatus(int maritalStatus)
Set my marital status


isOrphan

public boolean isOrphan()
Is this one an orphan


setOrphan

public void setOrphan(boolean isOrphan)
make orphan


getSpouseID

public int getSpouseID()
Return my spouse id


setSpouseID

public void setSpouseID(int spouseID)
Sets my spouse id


getExpectedLife

public int getExpectedLife()
Return my expected life


setExpectedLife

public void setExpectedLife(int expectedLife)
Set my expected life


setInfectedTick

public void setInfectedTick(int currentTick)
this method used for monthly scale


getInfectedTick

public int getInfectedTick()
Get my infected


getFeedStatus

public int getFeedStatus()
Return feed status


setFeedStatus

public void setFeedStatus(int feedStatus)
Set feed status


getRemittance_Amount

public int getRemittance_Amount()
Return my remittance


setRemittance_Amount

public void setRemittance_Amount(int remittance_Amount)
Set my remittance


isInnovator

public boolean isInnovator()
Am I innovator


setInnovator

public void setInnovator(boolean isInnovator)
Make me an innovator


isMemberSavings

public boolean isMemberSavings()

setMemberSavings

public void setMemberSavings(boolean _isMemberSavings)

isHead

public boolean isHead()
Am I a head


setHead

public void setHead(boolean isHead)
Make me household head


getFriends

public java.util.ArrayList<Agent> getFriends()
Get my friends


setFriends

public void setFriends(java.util.ArrayList<Agent> friends)
set my friends


isPullOutMembership

public boolean isPullOutMembership()
Am I pulling out from stokvel


setPullOutMembership

public void setPullOutMembership(boolean pullOutMembership)
Set me as pulling out from stokvel


setSavingsPool

public void setSavingsPool(int sum)

flushMembership

public void flushMembership()

getAcceptances

public java.util.ArrayList<Agent> getAcceptances()

setAcceptances

public void setAcceptances(java.util.ArrayList<Agent> acceptances)

isCommitted

public boolean isCommitted()

setCommitted

public void setCommitted(boolean _committed)

getNumStokvelTries

public int getNumStokvelTries()

setNumStokvelTries

public void setNumStokvelTries(int n)

incNumStokvelTries

public void incNumStokvelTries()

decNumStokvelTries

public void decNumStokvelTries()

findFuneralClub

public void findFuneralClub()
Find me a funeral club


getMemberFuneralClub

public boolean getMemberFuneralClub()
Get my funeral club


setIsMemberFuneralClub

public void setIsMemberFuneralClub(boolean _isMemberFuneralClub)

isMigrated

public boolean isMigrated()
Have I migrated


setMigrated

public void setMigrated(boolean isMigrated)
Set me as migrated


getMigratedTick

public int getMigratedTick()

getMaternalHouseholdID

public int getMaternalHouseholdID()
Get my pre-marriage household id


setMaternalHouseholdID

public void setMaternalHouseholdID(int maternalHouseholdID)
Set my pre-marriage household id


getHousehold

public Household getHousehold()
Get my household


setHousehold

public void setHousehold(Household household)
Set my household


makeFriend

public void makeFriend(Agent friend)
Make new friend


clearAllFriends

public void clearAllFriends()
Remove all agents as my friends


clearAllSexualPartners

public void clearAllSexualPartners()
Remove all my sexual partners


updateFriendshipGui

public void updateFriendshipGui()
Update my friendship network gui


getPregnancyTick

public int getPregnancyTick()
Get my household


setPregnancyTick

public void setPregnancyTick(int pregnancyTick)
Set my household


stokvelTries

public void stokvelTries(int currentTick)

isLaborFit

public boolean isLaborFit()
Am I labor fir


setLaborFit

public void setLaborFit(boolean laborFit)
Set my fitness status


isPieceJob

public boolean isPieceJob()
Am I on piecejob


setPieceJob

public void setPieceJob(boolean isPieceJob)

setAge

public void setAge(int _age)
Set my age


getAge

public int getAge()
Get my age


getGrantValue

public int getGrantValue()
Get my grant value


getGrant

public Grant getGrant()

setGrant

public void setGrant(Grant _grant)

setGrant

public void setGrant(int grantType)

getAgeGroup

public int getAgeGroup()
Get my age group


setAgeGroup

public void setAgeGroup(int _ageGroup)
Set my age group


getGender

public int getGender()
Get my gender


setGender

public void setGender(int gender)
Set my age group


getHealthCount

public int getHealthCount()
Get my health count


setHealthCount

public void setHealthCount(int _healthCount)
Set my health count


setHealthStatus

public void setHealthStatus(int _healthStatus)
Set my health status


getHealthStatus

public int getHealthStatus()
Get my health status


getHouseHoldID

public int getHouseHoldID()
Get my health count


setHouseHoldID

public void setHouseHoldID(int houseHoldID)
Set my health count


getId

public int getId()
Get my Id


setId

public void setId(int id)
Set my Id


printMyCurrentProfile

public void printMyCurrentProfile()
Print my current profile


getEmployer

public Household getEmployer()

setEmployer

public void setEmployer(Household employer)

getInfectedLag

public int getInfectedLag()
Get my infected lag


processStokvelInbox

public void processStokvelInbox()
Processes stokvel messages inbox


processStokvelOutbox

public void processStokvelOutbox()
Processes stokvel messages outbox


processSexualPartnershipOutbox

public void processSexualPartnershipOutbox(java.util.ArrayList<Agent> females)
Process my proposals and messages for forming sexual relationship

Parameters:
females -

sendCourtShipInvitation

public void sendCourtShipInvitation()
Send courtship offer to suitable females


processSexualPartnershipInbox

public void processSexualPartnershipInbox()
Process my proposals and messages for forming sexual relationship


handleSexualPartnershipMessage

public void handleSexualPartnershipMessage(Message message)
Handle messages related to formation of sexual partnerships

Parameters:
message -

handleCourtshipOffer

public void handleCourtshipOffer(Message message)
handle offer for courtship


assignAspiration

public void assignAspiration()
Assign aspiration to the partners


tryBestProposer

public void tryBestProposer()
Find the best male suitor


tryBestFemale

public void tryBestFemale()
Find the best female potential partner


sendCourtshipAcceptnce

public void sendCourtshipAcceptnce(Agent proposer)
send offer for courtship


sendCourtshipRejection

public void sendCourtshipRejection(Agent proposer)
send rejection for courtship offer


handleCourshipAcceptance

public void handleCourshipAcceptance(Message message)
handle acceptance for courtship offer


handleCourshipRejection

public void handleCourshipRejection(Message message)
handle rejection for courtship offer


sendStokvelInvitation

public boolean sendStokvelInvitation()
send invitation to join stokvel


isSavingsPossible

public boolean isSavingsPossible()
Check if I can join a stokvel


handleMessage

public void handleMessage(Message message)
Handle stokvel related message


handleIntivation

public void handleIntivation(Message message)
Handle stokvel invitation


sendAcceptance

public void sendAcceptance(Message message)
send acceptance for stokvel invitation


handleAcceptance

public void handleAcceptance(Message message)
handle acceptance for stokvel invitation


endogamicRelation

public boolean endogamicRelation(Agent agent)
Check if I have an endogamic relation


isNuclearFamilyRelation

public boolean isNuclearFamilyRelation(Agent agent)
Check if I have a nuclear family relation with this agent


isUncleOrAunty

public boolean isUncleOrAunty(Agent agent)
Check if this is my uncle or aunty


sendRejection

public void sendRejection(Message message)
send rejection for stokvel invitation


handleRejection

public void handleRejection(Message message)
handle rejection for stokvel invitation


getStovelMessageInbox

public java.util.ArrayList<Message> getStovelMessageInbox()

setStovelMessageInbox

public void setStovelMessageInbox(java.util.ArrayList<Message> inbox)

getStovelMessageOutbox

public java.util.ArrayList<Message> getStovelMessageOutbox()

setStovelMessageOutbox

public void setStovelMessageOutbox(java.util.ArrayList<Message> outbox)

getAchievedEducation

public java.lang.String getAchievedEducation()
Get my achieved education status


setAchievedEducation

public void setAchievedEducation(java.lang.String educationLevel)
Set my achieved education status


isAtSchool

public boolean isAtSchool()
Am I at school


setAtSchool

public void setAtSchool(boolean atSchool)

getFertilityAgeLimit

public int getFertilityAgeLimit()
Get fertility age limit


setFertilityAgeLimit

public void setFertilityAgeLimit(int fertilityAge)
Set fertility age limit


getBase

public double getBase()

setBase

public void setBase(double base)

getNumEndorsementClasses

public int getNumEndorsementClasses()

setNumEndorsementClasses

public void setNumEndorsementClasses(int maximumWeightForEndorsementClasses)

getNegativeEndorsements

public java.lang.String[] getNegativeEndorsements()

getPositiveEndorsements

public java.lang.String[] getPositiveEndorsements()

calculateEndorsement

public double calculateEndorsement(Agent agent)

returnIndexOf

public int returnIndexOf(java.lang.String str,
                         int endorsementType)

getAspirationLevel

public double getAspirationLevel()

setAspirationLevel

public void setAspirationLevel(double aspirationLevel)

getQuality

public double getQuality()

setQuality

public void setQuality(double baseQuality)

getCourtShipDuration

public int getCourtShipDuration()

setCourtShipDuration

public void setCourtShipDuration(int courtShipDuration)

getWaitingThreshold

public int getWaitingThreshold()

setWaitingThreshold

public void setWaitingThreshold(int waitingThreshold)

getWaitingTime

public int getWaitingTime()

setWaitingTime

public void setWaitingTime(int waitingTime)

getPotentialPartner

public Agent getPotentialPartner()

setPotentialPartner

public void setPotentialPartner(Agent potentialPartner)

getProposers

public java.util.ArrayList<Agent> getProposers()

isAspirationFit

public boolean isAspirationFit(Agent potentialPartner)

shouldSendOffer

public boolean shouldSendOffer(Agent potentialPartner)
Should send offer to this potential partner


shouldSendOffer2

public boolean shouldSendOffer2(Agent potentialPartner)

shouldSendOfferOutsider

public boolean shouldSendOfferOutsider(Agent potentialPartner)
Should send offer to this potential partner - called if I am an outsider agent


findBestEndorsedSuitor

public Agent findBestEndorsedSuitor()
Find the best endorsded suitor for me.


chooseMaleSexualPartner2

public Agent chooseMaleSexualPartner2()

chooseMaleSexualPartner

public Agent chooseMaleSexualPartner()
Choose the best male partner for me


courtshipBroken

public void courtshipBroken(Agent partner)
Break my courtship with this partner


updateCourtshipThreshold

public void updateCourtshipThreshold()
Update my courtship duration with age


updateAspirationLevel

public void updateAspirationLevel()
Update my aspiration level (Heuveline et al. 2003)


findSuitableFemalePartners

public java.util.ArrayList<Agent> findSuitableFemalePartners(java.util.ArrayList<Agent> availableFemales)
Find suitabl femal partners for me.


findRandomFemales

public java.util.ArrayList<Agent> findRandomFemales()
now here, we must implement assortative mixing and age specific rules depending upon the men's preferences


decreaseAspiration

public void decreaseAspiration()
Decrease aspiration


increaseAspiration

public void increaseAspiration()
Inmcrease aspiration


getBirthTick

public int getBirthTick()
Get my birth month


setBirthTick

public void setBirthTick(int birthTick)
Set my birth month


getSexualPartners

public java.util.ArrayList<Agent> getSexualPartners()
Get my sexual partenrs list


setSexualPartners

public void setSexualPartners(java.util.ArrayList<Agent> sexualPartners)
Set my sexual partenrs list


getMaxSexualPartners

public int getMaxSexualPartners()
Get my sexual partenrs list


setMaxSexualPartners

public void setMaxSexualPartners(int maxSexualPartners)
Set my sexual partenrs list


isMineTrained

public boolean isMineTrained()
Am I mine trained


setMineTrained

public void setMineTrained(boolean mineTrained)

isMineJob

public boolean isMineJob()
Am I on mine job


setMineJob

public void setMineJob(boolean mineJob)

isOutsider

public boolean isOutsider()
Am I an outsider


setOutsider

public void setOutsider(boolean outsider)
Set I am an outsider


getNumMonthsOutsiderArrival

public int getNumMonthsOutsiderArrival()

setNumMonthsOutsiderArrival

public void setNumMonthsOutsiderArrival(int numMonthsOutsiderArrival)

getMaxOutsiderWaitingMonths

public int getMaxOutsiderWaitingMonths()

compareTo

public int compareTo(java.lang.Object anotherAgent)
              throws java.lang.ClassCastException
Compare the agent based on quality

Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

isOnVisit

public boolean isOnVisit()

setOnVisit

public void setOnVisit(boolean onVisit)

visitHome

public void visitHome(int currentTick)
It is assumed that a migrant agent sends the remittances every month through someone. This is being weakly confirmed by the villagers though it is likely that the remittances may not be that conveniently accessible to the migrants' households.


getLastVisit

public int getLastVisit()

setLastVisit

public void setLastVisit(int lastVisit)

resumeMigration

public boolean resumeMigration(int currentTick)
break up with all current sexual partners except the spouse


stopMigration

public boolean stopMigration(int currentTick)
Migration stopped; returned to village.


getOffSprings

public java.util.ArrayList<Agent> getOffSprings()

birthPossible

public boolean birthPossible(int currenTick)
If birth possible for the female agent at this time

Parameters:
currenTick -
Returns:

getSpouse

public Agent getSpouse()
Return my spouse if married


isSingleMother

public boolean isSingleMother()
Am I single mother


setSingleMother

public void setSingleMother(boolean singleMother)
Set single mother


isPregnant

public boolean isPregnant()
is pregnant


setPregnant

public void setPregnant(boolean pregnant)

getFatherOfMyChildID

public int getFatherOfMyChildID()
Get the father id of the child I have delivered


setFatherOfMyChildID

public void setFatherOfMyChildID(int fatherOfMyChildID)
Set the father id of the child I have delivered


getDeathTick

public int getDeathTick()

setDeathTick

public void setDeathTick(int deathTick)

initializeAgeGroup

public void initializeAgeGroup()
Initialize age groups


resetMyCouples

public void resetMyCouples()
Remove all my sexual relations


makePregnanct

public void makePregnanct(int currentTick)
Set as pregnant at this step


pregnancyPossible

public boolean pregnancyPossible(int currentTick)
Is pregnancy possible


hasHIV

public boolean hasHIV()
Is having HIV/AIDS?

Returns:

getLateLag

public int getLateLag()
Return lag for Late HIV Stage


setLateLag

public void setLateLag(int lateLag)
Set lag for Late HIV Stage


getMidLag

public int getMidLag()
Get lag for mid HIV Stage


setMidLag

public void setMidLag(int midLag)
Set lag for mid HIV Stage


removeFriend

public void removeFriend(Agent friend)
Remove this friend from my friendship network


returnFemaleFriends

public java.util.ArrayList<Agent> returnFemaleFriends()
Return my female friends


returnFemaleAcquaintances

public java.util.ArrayList<Agent> returnFemaleAcquaintances()
Return my female acquaintances


availableAtVillage

public boolean availableAtVillage()
Am I currently in village


getAcquaintances

public java.util.ArrayList<Agent> getAcquaintances()
Get my acquaintances list


setAcquaintances

public void setAcquaintances(java.util.ArrayList<Agent> acquaintances)
Set my acquaintances list


getSexualPartnershipMessageInbox

public java.util.ArrayList<Message> getSexualPartnershipMessageInbox()

setSexualPartnershipMessageInbox

public void setSexualPartnershipMessageInbox(java.util.ArrayList<Message> sexInbox)

getSexualPartnershipMessageOutbox

public java.util.ArrayList<Message> getSexualPartnershipMessageOutbox()

setSexualPartnershipMessageOutbox

public void setSexualPartnershipMessageOutbox(java.util.ArrayList<Message> sexOutbox)

getPotentialFemales

public java.util.ArrayList<Agent> getPotentialFemales()
Get my potential female partners list


setPotentialFemales

public void setPotentialFemales(java.util.ArrayList<Agent> potentialFemales)
Set my potential female partners list


isWouldGetDisabilityGrant

public boolean isWouldGetDisabilityGrant()
Get my chance for disability grant


setWouldGetDisabilityGrant

public void setWouldGetDisabilityGrant(boolean wouldGetDisabilityGrant)
Set my chance for disability grant


isWouldGetChildGrant

public boolean isWouldGetChildGrant()
Get my chance for child grant


setWouldGetChildGrant

public void setWouldGetChildGrant(boolean wouldGetChildGrant)
Set my chance for child grant


isWouldGetPension

public boolean isWouldGetPension()
Get my chance for pension


setWouldGetPension

public void setWouldGetPension(boolean wouldGetPension)
Set my chance for child grant