|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuchicago.src.sim.engine.SimModelImpl
display.Model
public class Model
Nested Class Summary | |
---|---|
class |
Model.Cluster
|
class |
Model.WHOLifeTable
WHO Life Tables for calculating death probabilities |
Field Summary | |
---|---|
private FinanceAgency |
agency
Agency awarding grants |
private uchicago.src.sim.gui.Network2DDisplay |
agentDisplayNetwork
|
private uchicago.src.sim.gui.AbstractGraphLayout |
agentFriendsGraphLayout
|
private java.util.ArrayList<Agent> |
agentList
List of agents |
private java.util.HashMap<java.lang.Integer,Agent> |
agentMap
Maps agents with their IDS |
private uchicago.src.sim.gui.DisplaySurface |
agentSurface
network display variables |
private AidsSpread |
aidSpread
Gets AIDS prevalence |
private java.util.HashMap<java.lang.Integer,java.util.ArrayList<Household>> |
churches
Map for churches |
private Clinic |
clinic
Abstract clinic |
(package private) int |
clusterProportion
initial number of households |
(package private) flanagan.math.PsRandom |
courtShipDuration
Distribution for agents' courtship duration |
private java.util.ArrayList<Household> |
currentEmployers
|
private int |
currentTick
|
private java.util.ArrayList<Agent> |
dead
List of dying this step |
(package private) cern.jet.random.Normal |
expectedAgeNormal
Distribution for agents' expected life |
private uchicago.src.sim.gui.Network2DDisplay |
extendedFamilyDisplayNetwork
|
private uchicago.src.sim.gui.AbstractGraphLayout |
extendedFamilyGraphLayout
|
private uchicago.src.sim.gui.DisplaySurface |
extendedFamilySurface
network display variables |
(package private) cern.jet.random.Normal |
femaleFertilityNormal
Distribution for female agents' fertility |
Model.WHOLifeTable |
femalesTable
|
private Fermi |
fermi
|
private java.util.ArrayList<FuneralClub> |
funeralClubs
List of funeral clubs |
private ModelGUI |
gui
|
(package private) boolean |
healthExpenditure
for health expenses |
(package private) boolean |
HIV
Should include HIV/AIDS |
private java.util.ArrayList<Agent> |
hivOutsiderPatients
List of current HIV Patients who are outside |
private java.util.ArrayList<Agent> |
hivPatients
List of current HIV Patients |
private uchicago.src.sim.gui.Network2DDisplay |
householdDisplayNetwork
|
private uchicago.src.sim.gui.AbstractGraphLayout |
householdGraphLayout
|
private java.util.ArrayList<Household> |
householdList
List of households |
private uchicago.src.sim.gui.DisplaySurface |
householdSurface
network display variables |
private java.util.HashMap<java.lang.Integer,Household> |
houseMap
Map of households with their IDs |
private java.util.ArrayList<Agent> |
hungryAgents
List of agents going hungry at current time |
private int |
incidence
|
private uchicago.src.sim.engine.BasicAction |
initialAction
Initial action |
(package private) int |
initialFuneralClubs
initial number of households |
private int |
initialSteps
|
(package private) int |
initNumHouseholds
initial number of households |
private KS |
ks
|
(package private) int |
lastAgentID
initial number of households |
(package private) int |
lastCoupleID
initial number of households |
(package private) int |
lastHouseholdID
initial number of households |
Model.WHOLifeTable |
malesTable
|
(package private) int |
maxHouseholdSize
initial number of households |
(package private) double |
meanFemaleDegree
|
(package private) double |
meanMaleDegree
|
private java.util.ArrayList<Agent> |
migratedAgents
List of migrated agent |
private Mine |
mine
Abstract mine |
(package private) int |
minHouseholdSize
initial number of households |
private uchicago.src.collection.RangeMap |
neighborMap
from Repast JinGirNew Implemenation |
(package private) int |
networkRecordInterval
Records network at this time interval |
int |
numAdults
|
int |
numAgentsJobless
|
int |
numAgentsNotLaborFit
|
int |
numAgentsOnMineJob
|
int |
numAgentsOnStreet
|
int |
numAgentsPieceWork
|
int |
numberBirths
|
private int |
numBirthsLastYear
number of birth last year |
private int |
numBirthsThisYear
number of birth at this year |
int |
numChildHH
|
int |
numChildren
|
int |
numChildrenBornHIVParents
|
int |
numDeathsPerYear
|
int |
numDyads
|
int |
numHHAccommodated
|
int |
numHHDissolved
|
int |
numHHFuneralClubMembers
|
int |
numHHGracePeriod
|
int |
numHHLackingFood
|
int |
numHHReceivingGrants
|
int |
numHHStokvelMembers
|
private int |
numIncidenceThisYear
number of possible new infections this year |
private int |
numInfantsDeathThisYear
number of infant deaths at this year |
int |
numMarriedAgents
|
int |
numSeniors
|
int |
numSexuallyActiveAgents
|
int |
numSingleFemales
|
int |
numSingleMales
|
int |
numUnPairedIndividuals
|
int |
numWidowedFemales
|
int |
numWidowedMales
|
(package private) flanagan.math.PsRandom |
outsiderPsr
|
private java.util.ArrayList<Agent> |
outsidersList
List of outsiders |
private java.util.ArrayList<Message> |
partnershipMessageInbox
|
private java.util.ArrayList<Message> |
partnershipMessageOutbox
|
private java.util.ArrayList<Couple> |
partnersList
List of unmarried couples |
private java.util.ArrayList<Agent> |
pregnantFemales
List of pregnant females |
private int |
proportionPatients
|
(package private) flanagan.math.PsRandom |
psr
|
private uchicago.src.sim.analysis.LocalDataRecorder |
recorder
|
private uchicago.src.sim.analysis.LocalDataRecorder |
recorder2
|
private uchicago.src.sim.analysis.LocalDataRecorder |
recorder3
|
private uchicago.src.sim.analysis.LocalDataRecorder |
recorder4
|
private uchicago.src.sim.analysis.LocalDataRecorder |
recorder5
|
private uchicago.src.sim.analysis.LocalDataRecorder |
recorder6
|
private uchicago.src.collection.RangeMap |
removalMap
|
private double |
removeProb
from Repast JinGirNew Implemenation |
private double |
Rsub0
|
private double |
Rsub1
|
private java.util.ArrayList<SavingsClub> |
savingsClubs
List of savings clubs |
private uchicago.src.sim.gui.Network2DDisplay |
savingsDisplayNetwork
|
private uchicago.src.sim.gui.AbstractGraphLayout |
savingsGraphLayout
|
private uchicago.src.sim.gui.DisplaySurface |
savingsSurface
network display variables |
private uchicago.src.sim.engine.Schedule |
schedule
Main schedule |
private int |
seed
seed for empirical distributions |
(package private) boolean |
showGui
Should display Gui |
private Sigmoid |
sig
Gives agents' fast health decay |
private java.util.ArrayList<Message> |
stokvelMessageInbox
|
private java.util.ArrayList<Message> |
stokvelMessageOutbox
|
(package private) double |
varFemaleDegree
|
(package private) double |
varMaleDegree
|
private Weibull |
weibull
Gives HIV incidence |
Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
---|
descriptors, modelManipulator |
Constructor Summary | |
---|---|
Model()
Default constructor |
Method Summary | |
---|---|
private void |
adjustEducationLevel(Agent agent)
author: ruth meyer - assigne education levels |
void |
agentsOnStreetCase(Household household)
Handle agents who do not have a household to live anymore |
void |
AIDS()
function for spread of HIV at the current month |
private void |
assignEducationLevels()
author: ruth meyer - assigns education levels |
void |
assignParents(Agent child,
Agent head,
Agent spouse)
Assign parents to the created child agnet |
void |
begin()
|
void |
birth()
Handles brith to pregnant female agents for whom birth is now possible |
void |
birthToSingleMother(Agent mother)
Birth to a single mother who is not linked with the father of the new born anymore. |
void |
borrowFood()
Agents who go hungry borrow food from their friends' households |
void |
buildDisplay()
Creates layouts and displays for the networks |
void |
buildModel()
Builds the agents, households, churches and family clusters |
protected void |
buildSchedule()
|
void |
calcuDescStat()
Calculates the mean and variance of the degree of sexual network |
void |
calculateUtilization()
Calculates the percentage of sexually active agents linked to a partner |
boolean |
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 |
childBornToCouple(Couple couple)
Using child birth rate, infant mortality rate, and maternal mortality rate for child birth |
void |
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 |
void |
createChurches()
Creates churches and assign households to them. |
private void |
createEmpiricalHouseholds()
RM-SJA: Creates empirical households based on RADAR Survey |
void |
createFuneralClubs()
Creates funeral clubs and assign some households initially |
void |
createHouseholdClusters()
Create moieties in the village |
int |
createHouseholdMembers(Household household,
int size,
int curCount)
this is to match the 'anectodal comments: . |
void |
createHouseholds()
from Radar:The household size varies from 1 to 19, with a mean of 6.98. |
void |
createNewHouse(Couple couple)
Creates a new house for a couple/nuclear family |
private void |
createOutsiders()
outsiders: migrant workers outsiders have no houses and are assumed to be living in mine(s)' hostels. |
void |
createSavingsClub(SavingsClub club)
this does the bookkeeping actually for the stokvel |
void |
displaySurfaceAll()
|
void |
femaleTreatment()
currently, this is women specific treatment to prevent Mother-to-Child-Transfer... |
uchicago.src.sim.gui.AbstractGraphLayout |
getAgentFriendsGraphLayout()
|
java.util.ArrayList<Agent> |
getAgentList()
|
java.util.HashMap<java.lang.Integer,Agent> |
getAgentMap()
|
uchicago.src.sim.gui.DisplaySurface |
getAgentSurface()
|
int |
getAIDSPatients()
|
Clinic |
getClinic()
|
int |
getClusterProportion()
|
flanagan.math.PsRandom |
getCourtShipDuration()
|
java.util.ArrayList<Household> |
getCurrentEmployers()
|
cern.jet.random.Normal |
getExpectedAgeNormal()
|
uchicago.src.sim.gui.AbstractGraphLayout |
getExtendedFamilyGraphLayout()
|
cern.jet.random.Normal |
getFemaleFertilityNormal()
|
Fermi |
getFermi()
|
java.util.ArrayList<FuneralClub> |
getFuneralClubs()
|
ModelGUI |
getGui()
|
uchicago.src.sim.gui.Network2DDisplay |
getHouseholdDisplayNetwork()
|
uchicago.src.sim.gui.AbstractGraphLayout |
getHouseholdGraphLayout()
|
java.util.ArrayList<Household> |
getHouseholdList()
|
uchicago.src.sim.gui.DisplaySurface |
getHouseholdSurface()
|
java.util.HashMap |
getHouseMap()
|
java.util.ArrayList<Agent> |
getHungryAgents()
|
int |
getIncidence()
|
int |
getInitialFuneralClubs()
|
int |
getInitNumHouseholds()
|
java.lang.String[] |
getInitParam()
|
int |
getLastAgentID()
|
int |
getMarriedCoupleCounts()
|
double |
getMeanFemaleDegree()
|
double |
getMeanMaleDegree()
|
java.util.ArrayList<Agent> |
getMigratedAgents()
|
Mine |
getMine()
|
java.lang.String |
getName()
|
int |
getNetworkRecordInterval()
|
int |
getNumAdults()
|
int |
getNumAgentsJobless()
Returns number of stokvels |
int |
getNumAgentsNotLaborFit()
Returns number of unfit agents |
int |
getNumAgentsOnMineJob()
Returns number of agents on mine job |
int |
getNumAgentsOnStreet()
|
int |
getNumAgentsPieceWork()
Returns number of agents on piecework |
int |
getNumberBirths()
Returns birth occuring this step |
int |
getNumChildHH()
|
int |
getNumChildren()
|
int |
getNumChildrenBornHIVParents()
Returns children born to HIV parents this step. |
int |
getNumDeathsPerYear()
Returns number deaths this year |
double |
getNumDyads()
Calcualtes the number of dyads in the sexual network |
int |
getNumHH()
|
int |
getNumHHAccommodated()
|
int |
getNumHHDissolved()
|
int |
getNumHHFuneralClubMembers()
Returns number of households which are members of funeral clubs |
int |
getNumHHGracePeriod()
|
int |
getNumHHStokvelMembers()
Returns total number of stokvel members |
int |
getNumHIVPatients()
Returns number of HIV/AIDS patients |
int |
getNumIncidence()
|
int |
getNumInfantsDeathThisYear()
Adapted from Repast JinGirNew Impplementation |
int |
getNumMarriedAgents()
|
int |
getNumMigrants()
Returns number of stokvels |
int |
getNumMigratedAgents()
|
int |
getNumSeniors()
|
int |
getNumSexuallyActiveAgents()
|
int |
getNumSingleFemales()
|
int |
getNumSingleMales()
|
int |
getNumStokvels()
Returns number of stokvels |
int |
getNumUnPairedIndividuals()
|
int |
getNumWidowedFemales()
|
int |
getNumWidowedMales()
|
flanagan.math.PsRandom |
getOutsiderPsr()
|
int |
getPartners()
|
java.util.ArrayList<Message> |
getPartnershipMessageInbox()
|
java.util.ArrayList<Message> |
getPartnershipMessageOutbox()
|
java.util.ArrayList<Couple> |
getPartnersList()
|
double |
getPercentage()
|
int |
getPopulation()
Returns Population size |
Couple |
getPregnancyCouple(Agent female)
Returns the couple for the female that gets pregnant at this step. |
java.util.ArrayList<Agent> |
getPregnantFemales()
|
double |
getPrevalence()
Returns prevalence in population |
int |
getProportion()
|
double |
getProportionHHLackingFood()
Returns percentage of households lacking food |
double |
getProportionHHReceivingGrants()
Returns percentage of households receiving grants |
flanagan.math.PsRandom |
getPsr()
|
java.util.ArrayList<SavingsClub> |
getSavingsClubs()
|
uchicago.src.sim.gui.AbstractGraphLayout |
getSavingsGraphLayout()
|
uchicago.src.sim.gui.DisplaySurface |
getSavingsSurface()
|
uchicago.src.sim.engine.Schedule |
getSchedule()
|
Sigmoid |
getSig()
|
java.util.ArrayList<Message> |
getStokvelMessageInbox()
|
java.util.ArrayList<Message> |
getStokvelMessageOutbox()
|
double |
getVarFemaleDegree()
|
double |
getVarMaleDegree()
|
Weibull |
getWeibull()
|
void |
householdBorrowFood()
Households who go hungry borrow food from their neighbours |
void |
initialAction()
Initial action called before the first time step |
void |
initializeFuneralClub(FuneralClub club)
populate it with some members for a kick-start ... |
void |
initializeHIV()
Agents aare assigned HIV infection at the start |
void |
initializeMigrants()
Initializes some agents with migration |
boolean |
isFuneralClub()
|
boolean |
isHealthExpenditure()
|
boolean |
isHIV()
|
boolean |
isShowGui()
|
static void |
main(java.lang.String[] args)
|
void |
mainAction()
main action of the simulation |
void |
makeAcquaintances(Agent agent1,
Agent agent2)
Make agent1 and agent2 as acquaintances to each other. |
Couple |
makePartners(Agent male,
Agent female)
Makes a unmarried couple for the male and the female agent |
void |
marriage(Couple couple)
Marriage means the female in the couple moves to the male's house and the lobola is paid. |
void |
marriages()
Marriage occurs for an existing unmarried couple. |
void |
migration()
Migration of agents occur; also, agents visit home and resume migration again. |
void |
migratoryIncidence()
Incidence to the migrant workers is introduced this month. |
void |
mineJobApplication()
Application of the agents and the outsiders for mine jobs |
void |
mining()
Controls the start/stop of the mine. |
boolean |
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 |
MTCT(Agent newBorn)
Gives the chances for MTCT transfer for the newborn |
private void |
neighborMeeting()
Adapted from Repast JinGirNew Impplementation |
boolean |
newHousePossible(Household household,
Couple couple)
Checks if a new house needs and can be created or not |
void |
newHouses()
Create new house for the couple. |
void |
pieceworkJobs()
Households offering piecewise jobs |
void |
populateHousehold(int numMembers,
Household household,
cern.jet.random.Normal hhHeadAgeDist,
cern.jet.random.Normal ageDiffDist,
cern.jet.random.Gamma ageDist,
EmpiricalDiscreteDist femaleStatusDist,
EmpiricalDiscreteDist maleStatusDist,
EmpiricalDiscreteDist memberTypeDist)
Populate the household with members and distributions. |
void |
populateRelatives(Model.Cluster cluster)
Populate extended families in the given moiety |
void |
pregnancyFemale()
Female agents who can get pregnant are filtered out. |
void |
print(java.lang.String printString)
|
void |
printAIDSProfile()
Prints the incidence and prevalence in the population. |
void |
purgeAgent(Agent agent)
Purge the agent from the simulation, once it is dead. |
void |
purgeHousehold(Household household)
Purge the household; dissolve it and accommodate orphans, if any. |
void |
randomMeeting()
Adapted from Repast JinGirNew Impplementation |
void |
record()
|
void |
recordNetworks()
|
void |
recordSexDegree(java.lang.String prefix)
|
java.util.HashMap<java.lang.String,java.lang.String[]> |
recordSexualNetwork()
Records the sexual network |
private void |
refreshVariables()
|
void |
registerDisplaySurface(java.lang.String name,
uchicago.src.sim.gui.DisplaySurface surface)
Registers a DisplaySurface with this model and associates it with a particular name. |
void |
removeCouple(Couple couple)
Removes the unmarried couple. |
void |
removeHousehold(Household household)
Removes the household from the networks and data structures. |
void |
removeInitialAction()
|
private void |
removeRandomFriendship()
Adapted from Repast JinGirNew Impplementation |
Couple |
returnBirthCouple(Agent female)
Returns the female which will give birth |
void |
searchPartner()
Searching for a sexual partners by the male agents to the potential female agents. |
void |
setAgentFriendsGraphLayout(uchicago.src.sim.gui.AbstractGraphLayout agentGraphLayout)
|
private void |
setAsHead(Agent person,
EmpiricalDiscreteDist statusDistribution)
Sets the person as head of household |
void |
setClusterProportion(int clusterProportion)
|
void |
setCurrentEmployers(java.util.ArrayList<Household> currentEmployers)
|
void |
setHealthExpenditure(boolean healthExpenditure)
|
void |
setHIV(boolean hiv)
|
void |
setHIVInfection(Agent agent)
Infects the agent with the HIV infection and its stage |
void |
setHouseholdGraphLayout(uchicago.src.sim.gui.AbstractGraphLayout householdGraphLayout)
|
private void |
setInitalizeHIVInfection(Agent agent)
Function to determin an agents' HIV->AIDS stage |
void |
setInitialFuneralClubs(int initialFuneralClubs)
|
void |
setInitNumHouseholds(int _initNumHouseholds)
|
void |
setNetworkRecordInterval(int pajekInterval)
|
void |
setShowGui(boolean showGui)
|
void |
setup()
|
void |
sexualHIVTransmission()
Possibility of sexual transmission of HIV among the couples. |
void |
sexualNetworkPajek(java.lang.String prefix)
Ruth - Records the sexual network into pajek with a prefix string |
void |
sexualNetworkPajekAIDS(java.lang.String prefix)
|
private int[] |
sortTypes(int[] types)
|
void |
stokvelPostOffice()
Function to handle the messages between the agents regarding creating new stokvels. |
void |
stokvels()
Creating of new stokvels and also payment of the dues for the existing ones. |
void |
surfaceSettingsAll()
|
boolean |
unAccommodated(Household household)
Handles unaccommodated household |
void |
updateAgents()
Updates all agents at each time step. |
void |
updateCouples()
Checks if the couple should breakup or should marry. |
void |
updateDisplayAll()
|
void |
updateFriendshipNetwork()
Based on the Repast implementation for JinGirNew Model |
void |
updateGraphLayoutAll()
Updates all the graph layouts during the simulation. |
void |
updateHouseholds()
Updates all households at each time step. |
void |
updateOutsiderAgents()
Updates all outsider agents at each time step. |
Methods inherited from class uchicago.src.sim.engine.SimModelImpl |
---|
addPropertyListener, addSimEventListener, clearMediaProducers, clearPropertyListeners, fireBooleanPropertyEvent, fireEndSim, fireNumericPropertyEvent, fireObjectPropertyEvent, firePauseSim, fireSimEvent, fireStopSim, fireStringPropertyEvent, generateNewSeed, getController, getMediaProducers, getModelManipulator, getParameterDescriptors, getPropertiesValues, getRngSeed, getTickCount, pause, registerMediaProducer, removePropertyListener, removeSimEventListener, setController, setRngSeed, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private uchicago.src.sim.engine.Schedule schedule
private uchicago.src.sim.engine.BasicAction initialAction
private java.util.ArrayList<Agent> agentList
private java.util.ArrayList<Agent> hungryAgents
private java.util.ArrayList<Household> householdList
private java.util.HashMap<java.lang.Integer,Agent> agentMap
private java.util.ArrayList<Agent> hivPatients
private java.util.ArrayList<Agent> hivOutsiderPatients
private java.util.ArrayList<Agent> dead
private java.util.HashMap<java.lang.Integer,Household> houseMap
private java.util.ArrayList<FuneralClub> funeralClubs
private java.util.ArrayList<SavingsClub> savingsClubs
private java.util.ArrayList<Agent> migratedAgents
private java.util.ArrayList<Couple> partnersList
private FinanceAgency agency
private ModelGUI gui
private AidsSpread aidSpread
private Sigmoid sig
private Weibull weibull
private Fermi fermi
private Clinic clinic
private Mine mine
private KS ks
cern.jet.random.Normal expectedAgeNormal
cern.jet.random.Normal femaleFertilityNormal
flanagan.math.PsRandom psr
flanagan.math.PsRandom outsiderPsr
flanagan.math.PsRandom courtShipDuration
private int seed
boolean healthExpenditure
boolean HIV
boolean showGui
int networkRecordInterval
private uchicago.src.sim.gui.DisplaySurface householdSurface
private uchicago.src.sim.gui.DisplaySurface agentSurface
private uchicago.src.sim.gui.DisplaySurface savingsSurface
private uchicago.src.sim.gui.DisplaySurface extendedFamilySurface
private uchicago.src.sim.gui.AbstractGraphLayout agentFriendsGraphLayout
private uchicago.src.sim.gui.AbstractGraphLayout householdGraphLayout
private uchicago.src.sim.gui.AbstractGraphLayout savingsGraphLayout
private uchicago.src.sim.gui.AbstractGraphLayout extendedFamilyGraphLayout
private uchicago.src.sim.gui.Network2DDisplay householdDisplayNetwork
private uchicago.src.sim.gui.Network2DDisplay agentDisplayNetwork
private uchicago.src.sim.gui.Network2DDisplay savingsDisplayNetwork
private uchicago.src.sim.gui.Network2DDisplay extendedFamilyDisplayNetwork
int initNumHouseholds
int minHouseholdSize
int maxHouseholdSize
int initialFuneralClubs
int lastHouseholdID
int lastAgentID
int clusterProportion
int lastCoupleID
private int initialSteps
private int numBirthsThisYear
private int numInfantsDeathThisYear
private int numBirthsLastYear
private int numIncidenceThisYear
private int proportionPatients
private int currentTick
private int incidence
private uchicago.src.sim.analysis.LocalDataRecorder recorder
private uchicago.src.sim.analysis.LocalDataRecorder recorder2
private uchicago.src.sim.analysis.LocalDataRecorder recorder3
private uchicago.src.sim.analysis.LocalDataRecorder recorder4
private uchicago.src.sim.analysis.LocalDataRecorder recorder5
private uchicago.src.sim.analysis.LocalDataRecorder recorder6
public int numberBirths
public int numDeathsPerYear
public int numHHReceivingGrants
public int numHHLackingFood
public int numHHFuneralClubMembers
public int numHHGracePeriod
public int numHHStokvelMembers
public int numAgentsPieceWork
public int numAgentsJobless
public int numAgentsNotLaborFit
public int numAgentsOnMineJob
public int numChildrenBornHIVParents
public int numHHDissolved
public int numHHAccommodated
public int numAdults
public int numChildren
public int numSeniors
public int numAgentsOnStreet
public int numChildHH
public int numSingleMales
public int numSingleFemales
public int numMarriedAgents
public int numWidowedMales
public int numWidowedFemales
public int numSexuallyActiveAgents
public int numUnPairedIndividuals
public int numDyads
double meanFemaleDegree
double meanMaleDegree
double varFemaleDegree
double varMaleDegree
private java.util.ArrayList<Household> currentEmployers
private java.util.ArrayList<Message> stokvelMessageInbox
private java.util.ArrayList<Message> stokvelMessageOutbox
private java.util.ArrayList<Message> partnershipMessageInbox
private java.util.ArrayList<Message> partnershipMessageOutbox
private uchicago.src.collection.RangeMap neighborMap
private uchicago.src.collection.RangeMap removalMap
private double removeProb
private double Rsub0
private double Rsub1
private java.util.ArrayList<Agent> outsidersList
private java.util.ArrayList<Agent> pregnantFemales
private java.util.HashMap<java.lang.Integer,java.util.ArrayList<Household>> churches
public Model.WHOLifeTable malesTable
public Model.WHOLifeTable femalesTable
Constructor Detail |
---|
public Model()
Method Detail |
---|
public void buildModel()
public void createChurches()
public void createFuneralClubs()
public void initializeFuneralClub(FuneralClub club)
public void createHouseholds()
public int createHouseholdMembers(Household household, int size, int curCount)
public void createChildAgent(int _id, Agent mother, Agent father, Household household)
public void MTCT(Agent newBorn)
newBorn
- public boolean motherToChildAIDSTransfer(Agent mother, Agent child)
public void createHouseholdClusters()
public void populateRelatives(Model.Cluster cluster)
cluster
- public void buildDisplay()
public void initialAction()
public void initializeHIV()
private void setInitalizeHIVInfection(Agent agent)
agent
- public void initializeMigrants()
public void AIDS()
public void migration()
public void mineJobApplication()
public void mining()
public void mainAction()
public void updateFriendshipNetwork()
public void stokvels()
public void searchPartner()
public Couple makePartners(Agent male, Agent female)
male
- female
-
public void updateCouples()
public void removeCouple(Couple couple)
couple
- public void birth()
public Couple returnBirthCouple(Agent female)
female
-
public void birthToSingleMother(Agent mother)
mother
- public Couple getPregnancyCouple(Agent female)
female
-
public void pregnancyFemale()
public void marriages()
public void newHouses()
public void pieceworkJobs()
public void childBornToCouple(Couple couple)
public void setHIVInfection(Agent agent)
agent
- public void migratoryIncidence()
public void sexualHIVTransmission()
public void femaleTreatment()
public void marriage(Couple couple)
couple
- public boolean newHousePossible(Household household, Couple couple)
public void createNewHouse(Couple couple)
couple
- public void purgeHousehold(Household household)
household
- public void agentsOnStreetCase(Household household)
household
- public boolean unAccommodated(Household household)
household
-
public void removeHousehold(Household household)
household
- public void purgeAgent(Agent agent)
agent
- public void createSavingsClub(SavingsClub club)
public void makeAcquaintances(Agent agent1, Agent agent2)
agent1
- agent2
- public void borrowFood()
public void householdBorrowFood()
public boolean checkChildMortality(Agent agent)
public void updateAgents()
public void updateOutsiderAgents()
public void updateHouseholds()
public void removeInitialAction()
protected void buildSchedule()
public void begin()
public void displaySurfaceAll()
public void setup()
public java.lang.String[] getInitParam()
public uchicago.src.sim.engine.Schedule getSchedule()
public java.lang.String getName()
public static void main(java.lang.String[] args)
public java.util.ArrayList<Agent> getAgentList()
public int getClusterProportion()
public java.util.ArrayList<Household> getHouseholdList()
public java.util.HashMap getHouseMap()
public ModelGUI getGui()
public java.util.HashMap<java.lang.Integer,Agent> getAgentMap()
public uchicago.src.sim.gui.Network2DDisplay getHouseholdDisplayNetwork()
public uchicago.src.sim.gui.DisplaySurface getHouseholdSurface()
public Sigmoid getSig()
public java.util.ArrayList<FuneralClub> getFuneralClubs()
public java.util.ArrayList<SavingsClub> getSavingsClubs()
public int getInitNumHouseholds()
public void setInitNumHouseholds(int _initNumHouseholds)
public boolean isFuneralClub()
public cern.jet.random.Normal getExpectedAgeNormal()
public uchicago.src.sim.gui.AbstractGraphLayout getAgentFriendsGraphLayout()
public void setAgentFriendsGraphLayout(uchicago.src.sim.gui.AbstractGraphLayout agentGraphLayout)
public uchicago.src.sim.gui.AbstractGraphLayout getHouseholdGraphLayout()
public void setHouseholdGraphLayout(uchicago.src.sim.gui.AbstractGraphLayout householdGraphLayout)
public void registerDisplaySurface(java.lang.String name, uchicago.src.sim.gui.DisplaySurface surface)
registerDisplaySurface
in class uchicago.src.sim.engine.SimModelImpl
public uchicago.src.sim.gui.DisplaySurface getAgentSurface()
public uchicago.src.sim.gui.DisplaySurface getSavingsSurface()
public uchicago.src.sim.gui.AbstractGraphLayout getSavingsGraphLayout()
public uchicago.src.sim.gui.AbstractGraphLayout getExtendedFamilyGraphLayout()
public void updateGraphLayoutAll()
public void surfaceSettingsAll()
public void updateDisplayAll()
public java.util.ArrayList<Agent> getHungryAgents()
public java.util.ArrayList<Agent> getMigratedAgents()
public int getNumMigratedAgents()
public Fermi getFermi()
public java.util.ArrayList<Couple> getPartnersList()
public int getAIDSPatients()
public int getProportion()
public void record()
public double getPercentage()
public int getIncidence()
public Clinic getClinic()
public java.util.ArrayList<Household> getCurrentEmployers()
public void setCurrentEmployers(java.util.ArrayList<Household> currentEmployers)
public void stokvelPostOffice()
private void assignEducationLevels()
private void adjustEducationLevel(Agent agent)
public java.util.ArrayList<Message> getStokvelMessageInbox()
public java.util.ArrayList<Message> getStokvelMessageOutbox()
public void print(java.lang.String printString)
public void printAIDSProfile()
public cern.jet.random.Normal getFemaleFertilityNormal()
public void randomMeeting()
private void neighborMeeting()
private void removeRandomFriendship()
public int getLastAgentID()
public int getNumInfantsDeathThisYear()
public flanagan.math.PsRandom getPsr()
public flanagan.math.PsRandom getCourtShipDuration()
public Mine getMine()
public flanagan.math.PsRandom getOutsiderPsr()
public int getPopulation()
public int getNumberBirths()
public int getNumDeathsPerYear()
public double getProportionHHReceivingGrants()
public double getProportionHHLackingFood()
public int getNumHHFuneralClubMembers()
public int getNumHHGracePeriod()
public int getNumStokvels()
public int getNumHHStokvelMembers()
public int getNumMigrants()
public int getNumAgentsJobless()
public int getNumAgentsNotLaborFit()
public int getNumAgentsPieceWork()
public int getNumAgentsOnMineJob()
public int getNumHIVPatients()
public double getPrevalence()
public int getNumChildrenBornHIVParents()
public int getNumHHAccommodated()
public int getNumHHDissolved()
public int getNumAdults()
public int getNumChildren()
public int getNumSeniors()
public int getNumAgentsOnStreet()
public int getNumChildHH()
public int getNumHH()
public java.util.HashMap<java.lang.String,java.lang.String[]> recordSexualNetwork()
public void sexualNetworkPajek(java.lang.String prefix)
prefix
- public java.util.ArrayList<Agent> getPregnantFemales()
private void refreshVariables()
private void createEmpiricalHouseholds()
public void assignParents(Agent child, Agent head, Agent spouse)
child
- head
- spouse
- public void populateHousehold(int numMembers, Household household, cern.jet.random.Normal hhHeadAgeDist, cern.jet.random.Normal ageDiffDist, cern.jet.random.Gamma ageDist, EmpiricalDiscreteDist femaleStatusDist, EmpiricalDiscreteDist maleStatusDist, EmpiricalDiscreteDist memberTypeDist)
numMembers
- household
- hhHeadAgeDist
- ageDiffDist
- ageDist
- femaleStatusDist
- maleStatusDist
- memberTypeDist
- private int[] sortTypes(int[] types)
private void setAsHead(Agent person, EmpiricalDiscreteDist statusDistribution)
person
- statusDistribution
- public Weibull getWeibull()
public int getPartners()
public int getMarriedCoupleCounts()
public void calcuDescStat()
public void recordSexDegree(java.lang.String prefix)
public void recordNetworks()
public java.util.ArrayList<Message> getPartnershipMessageInbox()
public java.util.ArrayList<Message> getPartnershipMessageOutbox()
public int getNumSingleMales()
public int getNumSingleFemales()
public int getNumMarriedAgents()
public int getNumWidowedMales()
public int getNumWidowedFemales()
public int getNumSexuallyActiveAgents()
public int getNumUnPairedIndividuals()
public double getNumDyads()
public void sexualNetworkPajekAIDS(java.lang.String prefix)
public void calculateUtilization()
public int getNumIncidence()
public double getMeanFemaleDegree()
public double getMeanMaleDegree()
public double getVarFemaleDegree()
public double getVarMaleDegree()
private void createOutsiders()
public int getInitialFuneralClubs()
public void setInitialFuneralClubs(int initialFuneralClubs)
public void setClusterProportion(int clusterProportion)
public int getNetworkRecordInterval()
public void setNetworkRecordInterval(int pajekInterval)
public boolean isHealthExpenditure()
public void setHealthExpenditure(boolean healthExpenditure)
public boolean isHIV()
public void setHIV(boolean hiv)
public boolean isShowGui()
public void setShowGui(boolean showGui)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |