uk.ac.leeds.ccg.andyt.projects.genesis.utilities
Class GENESIS_Collections

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.projects.genesis.utilities.GENESIS_Collections

public class GENESIS_Collections
extends java.lang.Object


Constructor Summary
GENESIS_Collections()
           
 
Method Summary
static void addTo_TreeMap_AgeBound_BigDecimal(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map, GENESIS_AgeBound key, java.math.BigDecimal value)
          Adds value to the value at map.get(key) if it exists or puts the key value mapping into map otherwise.
static void addTo_TreeMap_AgeBound_BigDecimal(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> mapToAddTo, java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> mapToAdd)
          Adds all mappings in mapToAdd into mapToAddTo unless they already exist in which case the values for the mappings are summed.
static void addTo_TreeMap_AgeBound_BigInteger(java.util.TreeMap<GENESIS_AgeBound,java.math.BigInteger> map, GENESIS_AgeBound key, java.math.BigInteger value)
          Adds value to the value at map.get(key) if it exists or puts the key value mapping into map otherwise.
static void addTo_TreeMap_AgeBound_BigInteger(java.util.TreeMap<GENESIS_AgeBound,java.math.BigInteger> mapToAddTo, java.util.TreeMap<GENESIS_AgeBound,java.math.BigInteger> mapToAdd)
          Adds all mappings in mapToAdd into mapToAddTo unless they already exist in which case the values for the mappings are summed.
static uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.population.PopulationType deepCopy(uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.population.PopulationType pop)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> deepCopyTo_ArrayList_AgeBound_Population(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> deepCopyTo_ArrayList_AgeBoundPopulation(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> l)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> deepCopyTo_ArrayList_AgeBoundProbability(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> l)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> deepCopyTo_ArrayList_AgeBoundRate(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> l)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> deepCopyTo_ArrayList_AgeBoundRate(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> deepCopyTo_ArrayList_AgePopulation(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> l)
           
static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> deepCopyTo_ArrayList_AgeProbability(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.util.HashMap<java.lang.String,GENESIS_Population> deepCopyTo_HashMap_String_Population(java.util.HashMap<java.lang.String,GENESIS_Population> map)
           
static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_BigDecimal(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Population(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> l)
           
static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Population(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Probability(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> l)
           
static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Rate(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> l)
           
static java.util.TreeMap<java.lang.String,GENESIS_Fertility> deepCopyTo_TreeMap_String_Fertility(java.util.TreeMap<java.lang.String,GENESIS_Fertility> map)
           
static java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities> deepCopyTo_TreeMap_String_GenderedAgeBoundProbabilities(java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities> map)
           
static java.util.TreeMap<java.lang.String,GENESIS_Miscarriage> deepCopyTo_TreeMap_String_Miscarriage(java.util.TreeMap<java.lang.String,GENESIS_Miscarriage> map)
           
static java.util.TreeMap<java.lang.String,GENESIS_Mortality> deepCopyTo_TreeMap_String_Mortality(java.util.TreeMap<java.lang.String,GENESIS_Mortality> map)
           
static java.util.TreeMap<java.lang.String,GENESIS_Population> deepCopyTo_TreeMap_String_Population(java.util.TreeMap<java.lang.String,GENESIS_Population> map)
           
static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Fertility>> deepCopyTo_TreeMap_String_TreeMap_String_Fertility(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Fertility>> map)
           
static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities>> deepCopyTo_TreeMap_String_TreeMap_String_GenderedAgeBoundProbabilities(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities>> map)
           
static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Miscarriage>> deepCopyTo_TreeMap_String_TreeMap_String_Miscarriage(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Miscarriage>> map)
           
static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Mortality>> deepCopyTo_TreeMap_String_TreeMap_String_Mortality(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Mortality>> map)
           
static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>> deepCopyTo_TreeMap_String_TreeMap_String_Population(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>> map)
           
static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>>> deepCopyTo_TreeMap_String_TreeMap_String_TreeMap_String_Population(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>>> map)
           
static java.util.HashSet<GENESIS_AgeBound> getCombined_HashSet_AgeBound(java.util.Set<GENESIS_AgeBound> s0, java.util.Set<GENESIS_AgeBound> s1)
           
static java.lang.Long getMaxAgeYears(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> t)
           
static java.math.BigDecimal getMaxValue(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.lang.Long getMinAgeYears(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
static java.math.BigDecimal getMinValue(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GENESIS_Collections

public GENESIS_Collections()
Method Detail

deepCopy

public static uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.population.PopulationType deepCopy(uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.population.PopulationType pop)
Parameters:
pop -
Returns:
a duplicate of pop duplicating pop.getGenderedAgeBoundPopulation().getFemale() and pop.getGenderedAgeBoundPopulation().getMale().

deepCopyTo_TreeMap_String_GenderedAgeBoundProbabilities

public static java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities> deepCopyTo_TreeMap_String_GenderedAgeBoundProbabilities(java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_TreeMap_String_GenderedAgeBoundProbabilities

public static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities>> deepCopyTo_TreeMap_String_TreeMap_String_GenderedAgeBoundProbabilities(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.GenderedAgeBoundProbabilities>> map)
Parameters:
map -
Returns:
a duplicate of map duplicating neither the keys in map nor the keys for the values of map.

deepCopyTo_HashMap_String_Population

public static java.util.HashMap<java.lang.String,GENESIS_Population> deepCopyTo_HashMap_String_Population(java.util.HashMap<java.lang.String,GENESIS_Population> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_Population

public static java.util.TreeMap<java.lang.String,GENESIS_Population> deepCopyTo_TreeMap_String_Population(java.util.TreeMap<java.lang.String,GENESIS_Population> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_TreeMap_String_Population

public static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>> deepCopyTo_TreeMap_String_TreeMap_String_Population(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_TreeMap_String_TreeMap_String_Population

public static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>>> deepCopyTo_TreeMap_String_TreeMap_String_TreeMap_String_Population(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Population>>> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_Mortality

public static java.util.TreeMap<java.lang.String,GENESIS_Mortality> deepCopyTo_TreeMap_String_Mortality(java.util.TreeMap<java.lang.String,GENESIS_Mortality> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_TreeMap_String_Mortality

public static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Mortality>> deepCopyTo_TreeMap_String_TreeMap_String_Mortality(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Mortality>> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_Miscarriage

public static java.util.TreeMap<java.lang.String,GENESIS_Miscarriage> deepCopyTo_TreeMap_String_Miscarriage(java.util.TreeMap<java.lang.String,GENESIS_Miscarriage> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_TreeMap_String_Miscarriage

public static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Miscarriage>> deepCopyTo_TreeMap_String_TreeMap_String_Miscarriage(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Miscarriage>> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_Fertility

public static java.util.TreeMap<java.lang.String,GENESIS_Fertility> deepCopyTo_TreeMap_String_Fertility(java.util.TreeMap<java.lang.String,GENESIS_Fertility> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_String_TreeMap_String_Fertility

public static java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Fertility>> deepCopyTo_TreeMap_String_TreeMap_String_Fertility(java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,GENESIS_Fertility>> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_TreeMap_AgeBound_BigDecimal

public static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_BigDecimal(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
a duplicate of map duplicating the values, but not the keys.

deepCopyTo_ArrayList_AgeBoundPopulation

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> deepCopyTo_ArrayList_AgeBoundPopulation(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> l)
Parameters:
l -
Returns:
a duplicate of l.

deepCopyTo_ArrayList_AgeBound_Population

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> deepCopyTo_ArrayList_AgeBound_Population(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
a list of AgeBoundPopulation derived by combining the keys and values of map.

deepCopyTo_TreeMap_AgeBound_Probability

public static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Probability(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> l)
Parameters:
l -
Returns:
a TreeMap with keys and values derived from the entries in l.

deepCopyTo_TreeMap_AgeBound_Rate

public static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Rate(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> l)
Parameters:
l -
Returns:
a TreeMap with keys and values derived from the entries in l.

deepCopyTo_TreeMap_AgeBound_Population

public static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Population(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
a duplicate of map that duplicates the values but not the keys.

deepCopyTo_TreeMap_AgeBound_Population

public static java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> deepCopyTo_TreeMap_AgeBound_Population(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> l)
Parameters:
l -
Returns:
a TreeMap with keys and values derived from the entries in l.

deepCopyTo_ArrayList_AgeBoundProbability

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> deepCopyTo_ArrayList_AgeBoundProbability(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> l)
Parameters:
l -
Returns:
a ArrayList duplicating the entries in l.

deepCopyTo_ArrayList_AgeBoundRate

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> deepCopyTo_ArrayList_AgeBoundRate(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> l)
Parameters:
l -
Returns:
a ArrayList duplicating the entries in l.

deepCopyTo_ArrayList_AgeProbability

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundProbability> deepCopyTo_ArrayList_AgeProbability(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
a ArrayList with entries derived from the keys and values in map.

deepCopyTo_ArrayList_AgeBoundRate

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundRate> deepCopyTo_ArrayList_AgeBoundRate(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
a ArrayList with entries derived from the keys and values in map.

deepCopyTo_ArrayList_AgePopulation

public static java.util.ArrayList<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> deepCopyTo_ArrayList_AgePopulation(java.util.List<uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.AgeBoundPopulation> l)
Parameters:
l -
Returns:
a ArrayList duplicating l.

getCombined_HashSet_AgeBound

public static java.util.HashSet<GENESIS_AgeBound> getCombined_HashSet_AgeBound(java.util.Set<GENESIS_AgeBound> s0,
                                                                               java.util.Set<GENESIS_AgeBound> s1)
Parameters:
s0 -
s1 -
Returns:
A HashSet combining the entries in s0 and s1

getMaxValue

public static java.math.BigDecimal getMaxValue(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
The maximum value in map.

getMinValue

public static java.math.BigDecimal getMinValue(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
The minimum value in map.

getMinAgeYears

public static java.lang.Long getMinAgeYears(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map)
Parameters:
map -
Returns:
the minimum age in years of the keys in map

getMaxAgeYears

public static java.lang.Long getMaxAgeYears(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> t)
Parameters:
map -
Returns:
the maximum age in years of the keys in map

addTo_TreeMap_AgeBound_BigDecimal

public static void addTo_TreeMap_AgeBound_BigDecimal(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> map,
                                                     GENESIS_AgeBound key,
                                                     java.math.BigDecimal value)
Adds value to the value at map.get(key) if it exists or puts the key value mapping into map otherwise.

Parameters:
map -
key -
value -

addTo_TreeMap_AgeBound_BigInteger

public static void addTo_TreeMap_AgeBound_BigInteger(java.util.TreeMap<GENESIS_AgeBound,java.math.BigInteger> map,
                                                     GENESIS_AgeBound key,
                                                     java.math.BigInteger value)
Adds value to the value at map.get(key) if it exists or puts the key value mapping into map otherwise.

Parameters:
map -
key -
value -

addTo_TreeMap_AgeBound_BigInteger

public static void addTo_TreeMap_AgeBound_BigInteger(java.util.TreeMap<GENESIS_AgeBound,java.math.BigInteger> mapToAddTo,
                                                     java.util.TreeMap<GENESIS_AgeBound,java.math.BigInteger> mapToAdd)
Adds all mappings in mapToAdd into mapToAddTo unless they already exist in which case the values for the mappings are summed.

Parameters:
mapToAddTo -
mapToAdd -

addTo_TreeMap_AgeBound_BigDecimal

public static void addTo_TreeMap_AgeBound_BigDecimal(java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> mapToAddTo,
                                                     java.util.TreeMap<GENESIS_AgeBound,java.math.BigDecimal> mapToAdd)
Adds all mappings in mapToAdd into mapToAddTo unless they already exist in which case the values for the mappings are summed.

Parameters:
mapToAddTo -
mapToAdd -