|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.genesis.utilities.ErrorHandler
uk.ac.leeds.ccg.andyt.projects.genesis.process.GenerateSociety
public class GenerateSociety
A class to generate a society.
Field Summary | |
---|---|
boolean |
_HandleOutOfMemoryError
|
uk.ac.leeds.ccg.andyt.grids.exchange.ImageExporter |
_ImageExporter
|
java.lang.String |
_Type
|
Constructor Summary | |
---|---|
GenerateSociety()
|
Method Summary | |
---|---|
void |
_Initialise_Population_Year_0(Environment _Environment,
Time _Time)
This society has: 200 families with 2 parents of different gender: These have upto 5 (chosen randomly) children of random gender and age less than 16. |
void |
_Initialise_Population0(Environment _Environment,
Time _Time)
Initialises the people in a simple hunter gatherer society. |
void |
_Initialise_Population1(Environment _Environment,
Time _Time)
Initialises the people in a simple hunter gatherer society. |
void |
_Map_Population(java.io.File _File,
java.lang.String _Type,
uk.ac.leeds.ccg.andyt.grids.exchange.ImageExporter _ImageExporter)
Map locations with living population. |
static java.awt.image.BufferedImage[] |
_OutputImage(org.jfree.chart.JFreeChart[] tJFreeCharts,
int width,
int height,
java.lang.String directory,
java.lang.String outputImageFileNamePrefix,
java.lang.String type)
|
void |
_Simulate(Demographics _Demographics,
int _Years)
Dynamically simulates a population over time. |
int |
_SimulateBirth()
|
int |
_SimulateDeath(Mortality _Mortality)
|
int |
_SimulateMiscarriage(java.util.HashSet _PregnantFemales)
|
void |
_SimulateMovement()
need to get agents moving about... |
int |
_SimulatePregnancy(java.util.HashSet _PregnantFemales,
Fertility _Fertility)
|
Time |
get_Random_DateOfBirth_Date(Time _Time,
int _MaxYear)
|
java.util.HashSet |
getMales(java.lang.Object _Location)
Returns all males at _Location |
long[] |
getNewLocation(long[] _Location,
int _Movement)
0 1 2 3 4 5 6 7 8 |
static void |
main(java.lang.String[] args)
|
void |
run0()
Example run producing age/gender charts at each yearly time step |
void |
run1()
Example run producing a map of locations at each day time step. |
void |
run2()
Example run producing: age/gender plots at each year a map of locations at each day time step an aggregate location map for each year information about how related society is need to model who fathers which children people now have fertility and mortality rates conditioned by their resource level. |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.genesis.utilities.ErrorHandler |
---|
clearMemoryReserve, getDirectory, getMemoryReserve, getNumberOfCachesSwappedAsFilesHashMap, initMemoryReserve, initMemoryReserve, loadObject, loadObject, setDirectory, setMemoryReserve, setNumberOfCachesSwappedAsFilesHashMap, swapToFile, swapToFile, writeToFile, writeToFile, writeToFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean _HandleOutOfMemoryError
public uk.ac.leeds.ccg.andyt.grids.exchange.ImageExporter _ImageExporter
public java.lang.String _Type
Constructor Detail |
---|
public GenerateSociety()
Method Detail |
---|
public static void main(java.lang.String[] args)
public void run0()
public void run1()
public void run2()
public Time get_Random_DateOfBirth_Date(Time _Time, int _MaxYear)
public void _Initialise_Population0(Environment _Environment, Time _Time)
public void _Initialise_Population1(Environment _Environment, Time _Time)
public void _Initialise_Population_Year_0(Environment _Environment, Time _Time)
public static java.awt.image.BufferedImage[] _OutputImage(org.jfree.chart.JFreeChart[] tJFreeCharts, int width, int height, java.lang.String directory, java.lang.String outputImageFileNamePrefix, java.lang.String type) throws java.io.IOException
java.io.IOException
public void _Simulate(Demographics _Demographics, int _Years)
_Demographics
- _Years
- The number of years over which the simulation occurspublic int _SimulateDeath(Mortality _Mortality)
public int _SimulateBirth()
public java.util.HashSet getMales(java.lang.Object _Location)
_Location
- public int _SimulatePregnancy(java.util.HashSet _PregnantFemales, Fertility _Fertility)
public int _SimulateMiscarriage(java.util.HashSet _PregnantFemales)
_PregnantFemales
- public long[] getNewLocation(long[] _Location, int _Movement)
_Location
- _Movement
-
public void _SimulateMovement()
public void _Map_Population(java.io.File _File, java.lang.String _Type, uk.ac.leeds.ccg.andyt.grids.exchange.ImageExporter _ImageExporter)
_File
- _Type
- _ImageExporter
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |