|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Agent | |
---|---|
clubs | |
display | |
economics | |
health | |
units |
Uses of Agent in clubs |
---|
Fields in clubs declared as Agent | |
---|---|
private Agent |
SavingsClub.moderator
|
Fields in clubs with type parameters of type Agent | |
---|---|
private java.util.ArrayList<Agent> |
SavingsClub.candidates
|
private java.util.ArrayList<Agent> |
SavingsClub.members
|
Methods in clubs that return Agent | |
---|---|
Agent |
SavingsClub.chooseRandomNextBenefactor()
Choose a random benefactor |
Agent |
SavingsClub.getModerator()
Returns the moderator for this stokvel. |
Methods in clubs that return types with arguments of type Agent | |
---|---|
java.util.ArrayList<Agent> |
SavingsClub.getMembers()
Returns the member list of the stokvels |
Methods in clubs with parameters of type Agent | |
---|---|
void |
SavingsClub.setModerator(Agent moderator)
Sets the moderator for this stokvel. |
Method parameters in clubs with type arguments of type Agent | |
---|---|
void |
SavingsClub.setMembers(java.util.ArrayList<Agent> members)
Sets the member list of the stokvels |
Constructors in clubs with parameters of type Agent | |
---|---|
SavingsClub(Agent _moderator,
java.util.ArrayList<Agent> _members,
Model _model)
Creates a stokvel (savings club) with a moderator |
Constructor parameters in clubs with type arguments of type Agent | |
---|---|
SavingsClub(Agent _moderator,
java.util.ArrayList<Agent> _members,
Model _model)
Creates a stokvel (savings club) with a moderator |
Uses of Agent in display |
---|
Fields in display declared as Agent | |
---|---|
Agent |
ModelGUI.AgentNodeMap.agent
|
private Agent |
AgentNode.agent
Here single individual (agent) is the node |
Fields in display with type parameters of type Agent | |
---|---|
private java.util.ArrayList<Agent> |
Model.agentList
List of agents |
private java.util.HashMap<java.lang.Integer,Agent> |
Model.agentMap
Maps agents with their IDS |
private java.util.ArrayList<Agent> |
Model.dead
List of dying this step |
private java.util.ArrayList<Agent> |
Model.hivOutsiderPatients
List of current HIV Patients who are outside |
private java.util.ArrayList<Agent> |
Model.hivPatients
List of current HIV Patients |
private java.util.ArrayList<Agent> |
Model.hungryAgents
List of agents going hungry at current time |
private java.util.ArrayList<Agent> |
Model.migratedAgents
List of migrated agent |
private java.util.ArrayList<Agent> |
Model.outsidersList
List of outsiders |
private java.util.ArrayList<Agent> |
Model.pregnantFemales
List of pregnant females |
Methods in display that return Agent | |
---|---|
Agent |
AgentNode.getAgent()
Retutrns the agent for this node/ |
Methods in display that return types with arguments of type Agent | |
---|---|
java.util.ArrayList<Agent> |
Model.getAgentList()
|
java.util.HashMap<java.lang.Integer,Agent> |
Model.getAgentMap()
|
java.util.ArrayList<Agent> |
Model.getHungryAgents()
|
java.util.ArrayList<Agent> |
Model.getMigratedAgents()
|
java.util.ArrayList<Agent> |
Model.getPregnantFemales()
|
Methods in display with parameters of type Agent | |
---|---|
void |
ModelGUI.addAgentFriendshipNode(Agent agent)
Add agent to friendship network |
void |
ModelGUI.addAgentNode(Agent agent)
Add agent to all networks |
void |
ModelGUI.addSavingsNode(Agent agent)
Add agent to savings network |
private void |
Model.adjustEducationLevel(Agent agent)
author: ruth meyer - assigne education levels |
void |
Model.assignParents(Agent child,
Agent head,
Agent spouse)
Assign parents to the created child agnet |
void |
Model.birthToSingleMother(Agent mother)
Birth to a single mother who is not linked with the father of the new born anymore. |
boolean |
Model.checkChildMortality(Agent agent)
Incorporating an infant mortality rate using 5% chance for infant mortality ...tested it's 37 deaths per 1000 infants for Limpopo source: http://www.hst.org.za/healthstats/7/data/geo also checking for firth 24 months ... |
void |
Model.createChildAgent(int _id,
Agent mother,
Agent father,
Household household)
this function is called when child agent, if any, is to be created during the simulation run |
Couple |
Model.getPregnancyCouple(Agent female)
Returns the couple for the female that gets pregnant at this step. |
void |
Model.makeAcquaintances(Agent agent1,
Agent agent2)
Make agent1 and agent2 as acquaintances to each other. |
void |
ModelGUI.makeFriendsLinks(Agent agent)
Make friendship links |
Couple |
Model.makePartners(Agent male,
Agent female)
Makes a unmarried couple for the male and the female agent |
boolean |
Model.motherToChildAIDSTransfer(Agent mother,
Agent child)
from avert.org: "Without treatment, around 15-30% of babies born to HIV positive women will become infected with HIV during pregnancy and delivery." here the assumption is that their is no nevirapine or Antiretroviral drugs are available ... |
void |
Model.MTCT(Agent newBorn)
Gives the chances for MTCT transfer for the newborn |
void |
Model.purgeAgent(Agent agent)
Purge the agent from the simulation, once it is dead. |
void |
ModelGUI.removeAgentFriendNode(Agent agent)
Remove agent from friendship network |
void |
ModelGUI.removeAgentNode(Agent agent)
Remove agent from all networks |
void |
ModelGUI.removeSavingsMember(Agent agent)
Remove the agent from the savings clubs |
void |
ModelGUI.removeSavingsNode(Agent agent)
Remove agent from savings network |
Couple |
Model.returnBirthCouple(Agent female)
Returns the female which will give birth |
void |
AgentNode.setAgent(Agent agent)
Sets the agent for this node. |
private void |
Model.setAsHead(Agent person,
EmpiricalDiscreteDist statusDistribution)
Sets the person as head of household |
void |
Model.setHIVInfection(Agent agent)
Infects the agent with the HIV infection and its stage |
private void |
Model.setInitalizeHIVInfection(Agent agent)
Function to determin an agents' HIV->AIDS stage |
Constructors in display with parameters of type Agent | |
---|---|
AgentNode(Agent _agent)
Sets agent to its node |
|
ModelGUI.AgentNodeMap(Agent _agent,
AgentNode _node)
|
Uses of Agent in economics |
---|
Fields in economics declared as Agent | |
---|---|
(package private) Agent |
Employee.employee
|
private Agent |
Grant.receiver
|
Methods in economics that return Agent | |
---|---|
Agent |
Employee.getEmployee()
|
Agent |
Grant.getReceiver()
|
Methods in economics with parameters of type Agent | |
---|---|
private void |
FinanceAgency.allocateGrant(Agent agent)
Allocate grant to agent is eligible |
private void |
FinanceAgency.allocatePension(Agent agent)
allocate pension to this agent |
private void |
FinanceAgency.checkEligibility(Agent agent)
Check eligbility for the agent |
private void |
FinanceAgency.checkStopGrant(Agent agent)
Check if the grant needs to be stopped for this agent |
void |
Employee.setEmployee(Agent employee)
|
void |
Grant.setReceiver(Agent _receiver)
|
Constructors in economics with parameters of type Agent | |
---|---|
Grant(int _type,
Agent _receiver)
|
Uses of Agent in health |
---|
Fields in health declared as Agent | |
---|---|
(package private) Agent |
Clinic.AgentClinicalProfile.agent
|
Fields in health with type parameters of type Agent | |
---|---|
(package private) java.util.ArrayList<Agent> |
Clinic.patients
|
Methods in health that return types with arguments of type Agent | |
---|---|
java.util.ArrayList<Agent> |
Clinic.getPatients()
|
Methods in health with parameters of type Agent | |
---|---|
void |
Clinic.addPatient(Agent patient,
int currentTick)
Enrol the patient to the clinic |
void |
Clinic.removePatient(Agent patient)
Removes the patient from the clinic |
boolean |
AidsSpread.returnAgentPrevalence(Agent agent)
AVERT.ORG Age (years) Male prevalence % Female prevalence % 2-4 4.9 5.3 5-9 4.2 4.8 10-14 1.6 1.8 15-19 3.2 9.4 20-24 6.0 23.9 25-29 12.1 33.3 30-34 23.3 26.0 35-39 23.3 19.3 40-44 17.5 12.4 45-49 10.3 8.7 50-54 14.2 7.5 55-59 6.4 3.0 60+ 4.0 3.7 Total 8.2 13.3 * |
Clinic.AgentClinicalProfile |
Clinic.returnProfile(Agent patient)
Returns the profile for this agent |
double |
AidsSpread.returnTransmissionProbabilityKoopman(Agent indexAgent,
int currentTick)
Returns the transmission probability based on Koopman et al. |
double |
AidsSpread.returnTransmissionProbabilityWawer(Agent indexAgent)
Returns the transmission probability based on Wawer et al. |
double |
AidsSpread.returnTransmissionProbabilityWawerPinkerton(Agent indexAgent)
|
void |
Clinic.startTreatment(Agent patient,
int currentTick)
|
Method parameters in health with type arguments of type Agent | |
---|---|
void |
Clinic.setPatients(java.util.ArrayList<Agent> patients)
|
Constructors in health with parameters of type Agent | |
---|---|
Clinic.AgentClinicalProfile(Agent _agent,
int currentTick)
|
Uses of Agent in units |
---|
Fields in units declared as Agent | |
---|---|
(package private) Agent |
Mine.Record.employee
|
private Agent |
Couple.female
|
private Agent |
Household.head
Household head |
private Agent |
Couple.male
|
private Agent |
Agent.potentialPartner
|
Fields in units with type parameters of type Agent | |
---|---|
private java.util.ArrayList<Agent> |
Agent.acceptances
friends list |
private java.util.ArrayList<Agent> |
Agent.acquaintances
List of my acquaintances |
private java.util.ArrayList<Agent> |
Household.adults
Adults in the household |
private java.util.ArrayList<Agent> |
Household.applicants
Applicants for piecework jobs |
private java.util.ArrayList<Agent> |
Household.children
Children in the household |
private java.util.ArrayList<Agent> |
Household.currentMembers
List of current members in the household |
private java.util.ArrayList<Agent> |
Agent.friends
friends list |
private java.util.ArrayList<Agent> |
Agent.invited
friends list |
private java.util.ArrayList<Agent> |
Household.members
List of members in the household |
private java.util.ArrayList<Agent> |
Agent.offSprings
My offsprings |
private java.util.ArrayList<Agent> |
Agent.potentialFemales
Potential female sexual partners |
private java.util.ArrayList<Agent> |
Agent.proposers
Current proposers for sexual relation |
private java.util.ArrayList<Agent> |
Household.seniors
Seniors in the household |
private java.util.ArrayList<Agent> |
Agent.sexualPartners
Current sexual partners |
private java.util.ArrayList<Agent> |
Mine.skilledWorkers
Skilled workers at the mine |
private java.util.ArrayList<Agent> |
Mine.trainees
Trainee workers at the mine |
private java.util.ArrayList<Agent> |
Mine.unSkilledWorkers
Unskilled workers at the mine |
Methods in units that return Agent | |
---|---|
Agent |
Agent.chooseMaleSexualPartner()
Choose the best male partner for me |
Agent |
Agent.chooseMaleSexualPartner2()
|
Agent |
Agent.findBestEndorsedSuitor()
Find the best endorsded suitor for me. |
Agent |
Couple.getFemale()
|
Agent |
Household.getHead()
Get household head |
Agent |
Couple.getMale()
|
Agent |
Agent.getPotentialPartner()
|
Agent |
Agent.getSpouse()
Return my spouse if married |
Agent |
Agent.returnAcquaintanceCity()
Return an acquaintance who has already migrated |
Methods in units that return types with arguments of type Agent | |
---|---|
java.util.ArrayList<Agent> |
Agent.findRandomFemales()
now here, we must implement assortative mixing and age specific rules depending upon the men's preferences |
java.util.ArrayList<Agent> |
Agent.findSuitableFemalePartners(java.util.ArrayList<Agent> availableFemales)
Find suitabl femal partners for me. |
java.util.ArrayList<Agent> |
Household.getAaplicants()
Get applicants list for piecwork |
java.util.ArrayList<Agent> |
Agent.getAcceptances()
|
java.util.ArrayList<Agent> |
Agent.getAcquaintances()
Get my acquaintances list |
java.util.ArrayList<Agent> |
Household.getAdults()
Get household adults |
java.util.ArrayList<Agent> |
Household.getChildren()
Get household children |
java.util.ArrayList<Agent> |
Household.getCurrentMembers()
Get my current members |
java.util.ArrayList<Agent> |
Agent.getFriends()
Get my friends |
java.util.ArrayList<Agent> |
Household.getMembers()
Get household members |
java.util.ArrayList<Agent> |
Agent.getOffSprings()
|
java.util.ArrayList<Agent> |
Agent.getPotentialFemales()
Get my potential female partners list |
java.util.ArrayList<Agent> |
Agent.getProposers()
|
java.util.ArrayList<Agent> |
Household.getSeniors()
Get household seniors |
java.util.ArrayList<Agent> |
Agent.getSexualPartners()
Get my sexual partenrs list |
java.util.ArrayList<Agent> |
Mine.getSkilledWorkers()
|
protected java.util.ArrayList<Agent> |
Agent.getStokvelCandidates()
Return stokvel candidates for the new stokvel |
java.util.ArrayList<Agent> |
Mine.getTrainees()
|
java.util.ArrayList<Agent> |
Mine.getUnSkilledWorkers()
|
java.util.ArrayList<Agent> |
Agent.returnFemaleAcquaintances()
Return my female acquaintances |
java.util.ArrayList<Agent> |
Agent.returnFemaleFriends()
Return my female friends |
Methods in units with parameters of type Agent | |
---|---|
void |
Household.addAgent(Agent agent)
Add agent to household |
boolean |
Agent.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. |
double |
Agent.calculateEndorsement(Agent agent)
|
void |
Agent.courtshipBroken(Agent partner)
Break my courtship with this partner |
private void |
Mine.employAgent(int currentTick,
Agent agent)
Employ the agent at the currentTick (simulation time step) |
boolean |
Agent.endogamicRelation(Agent agent)
Check if I have an endogamic relation |
boolean |
Agent.feedFriend(Agent agent)
Should I feed my friend |
boolean |
Agent.isAspirationFit(Agent potentialPartner)
|
boolean |
Household.isKin(Agent agent)
Is agent a kin to my household |
boolean |
Agent.isNuclearFamilyRelation(Agent agent)
Check if I have a nuclear family relation with this agent |
boolean |
Household.isReliable(Agent agent)
TODO: ... |
boolean |
Agent.isUncleOrAunty(Agent agent)
Check if this is my uncle or aunty |
void |
Household.makeChildrenOrphan(Agent agent)
orphan means 'single OR double orphan' |
void |
Agent.makeFriend(Agent friend)
Make new friend |
void |
Household.recruitEmployee(Agent agent)
TODO: We could also increase some pay for those working for us regularly?? |
void |
Household.removeAgent(Agent agent)
Removes the agent from the household |
void |
Household.removeCouple(Agent agent)
Removes the couple for this agent from the household |
void |
Agent.removeFriend(Agent friend)
Remove this friend from my friendship network |
void |
Mine.removeMineWorker(Agent agent)
Removes agent from the mine |
Household |
Agent.retrieveGPHousehold(Agent parent)
Get grandparent's household: maternal or paternal depending upon the parent |
int |
Mine.returnEmployeeRenumeration(Agent employee)
Returns the employess renumeration. |
int |
Household.returnRequirementFAO(Agent agent)
Return the FAO Adult equivalence nutrition requirement for agent |
int |
Household.returnRequirementFermi(Agent agent)
Using a non-linear Fermi equation ... |
void |
Agent.sendCourtshipAcceptnce(Agent proposer)
send offer for courtship |
void |
Agent.sendCourtshipRejection(Agent proposer)
send rejection for courtship offer |
void |
Couple.setFemale(Agent female)
|
void |
Household.setHead(Agent _head)
Set household members |
void |
Couple.setMale(Agent male)
|
void |
Agent.setPotentialPartner(Agent potentialPartner)
|
private boolean |
Mine.shouldEmploy(Agent agent)
policy for employing an agent. |
boolean |
Agent.shouldSendOffer(Agent potentialPartner)
Should send offer to this potential partner |
boolean |
Agent.shouldSendOffer2(Agent potentialPartner)
|
boolean |
Agent.shouldSendOfferOutsider(Agent potentialPartner)
Should send offer to this potential partner - called if I am an outsider agent |
boolean |
Mine.shouldUpgradeWorker(Agent worker)
Decide if we want to upgrade the status of this mine worker |
void |
Household.updateAgentAgeGroup(Agent agent,
int ageGroup)
Update members when age groups change |
boolean |
Household.updateHead(Agent agent)
Update household head |
Method parameters in units with type arguments of type Agent | |
---|---|
void |
Household.feed(int childFeedStatus,
int seniorFeedStatus,
int adultFeedStatus,
java.util.ArrayList<Agent> adults)
Feed the household members based on the decision to feed children, adults and seniors |
java.util.ArrayList<Agent> |
Agent.findSuitableFemalePartners(java.util.ArrayList<Agent> availableFemales)
Find suitabl femal partners for me. |
void |
Mine.handleJobApplications(int currentTick,
java.util.ArrayList<Agent> jobApplicants)
Handles job applications from the villagers and outsiders |
void |
Agent.processSexualPartnershipOutbox(java.util.ArrayList<Agent> females)
Process my proposals and messages for forming sexual relationship |
void |
Agent.setAcceptances(java.util.ArrayList<Agent> acceptances)
|
void |
Agent.setAcquaintances(java.util.ArrayList<Agent> acquaintances)
Set my acquaintances list |
void |
Household.setCurrentMembers(java.util.ArrayList<Agent> currentMembers)
Set my current members |
void |
Agent.setFriends(java.util.ArrayList<Agent> friends)
set my friends |
void |
Agent.setPotentialFemales(java.util.ArrayList<Agent> potentialFemales)
Set my potential female partners list |
void |
Agent.setSexualPartners(java.util.ArrayList<Agent> sexualPartners)
Set my sexual partenrs list |
Constructors in units with parameters of type Agent | |
---|---|
Couple(int _id,
Agent _male,
Agent _female)
|
|
Mine.Record(Agent _employee,
int _tr,
int _numRec,
java.lang.String _status)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |