|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog uk.ac.leeds.ccg.andyt.projects.moses.process.IndividualCensus
public abstract class IndividualCensus
Abstract class
Field Summary | |
---|---|
java.lang.String |
_Area
Stores the Area being computed, this is usually usedin filenames. |
protected CASDataHandler |
_CASDataHandler
Reference to the CASDataHandler for handling CASDataRecords |
java.lang.String |
_CASLevel
Stores the _CASLevel "OA" or "" is for Output Area "MSOA" is for Middle Layer Super Output Area "Ward" is for Ward "LAD" is for Local Authority District |
java.io.File |
_Directory
Stores the base of file input/output |
GeneticAlgorithm |
_GeneticAlgorithm
This at minimum stores the fields for: _InitialPopulationSize; _MaxNumberOfSolutions; _ConvergenceThreshold; _MaxNumberOfMutationsPerChild; _MaxNumberOfMutationsPerParent; _NumberOfOptimisationIterations; |
protected java.util.HashSet |
_IncludedVariablesHashSet
Reference to the CASDataHandler for handling CASDataRecords |
protected java.io.File |
_Input_File
Reference to the File for reading Input |
protected ISARDataHandler |
_ISARDataHandler
For holding a reference to the AbstractISARDataHandler |
protected long |
_LongNumberOfHSARDataRecords
Stores the number of HSARDataRecords as a long |
protected long |
_LongNumberOfISARDataRecords
Stores the number of ISARDataRecords as a long |
protected java.io.File |
_Output_File_0
Reference to the File for storing Output0 |
protected java.io.File |
_Output_File_1
Reference to the File for storing Output1 |
java.io.File |
_OutputDirectory
Stores the output directory where the results are written |
java.lang.String |
_OutputDirectory_Name
Deprecated. |
java.lang.String |
_OutputName
Stores part of the name of the output file where the results are written |
protected java.util.HashMap |
_Population_HashMap
A HashMap for storing population where: Each key is a String - first 4 digits of _ZoneCode; Each value is another HashMap where: Each key is the String _ZoneCode; Each value is an Object[] _Pop where: _Pop[ 0 ] is a Vector of _Household Population Household Reference Person Household SAR RecordIDs; _Pop[ 1 ] is a Vector of _Communal Establishment Population Individual SAR RecordIDs |
protected long |
_StartTime
Stores the start time of the processing. |
protected ToyModelDataHandler |
_ToyModelDataHandler
Reference to the ToyModelDataHandler for handling Toy Model data |
protected java.util.HashMap |
_ZoneCode_StartRecordID_EndRecordID_HashMap
Each key is a String and each value a long[2] keys are Census Area Codes values are _StartRecordID_EndRecordID |
protected java.util.TreeSet |
_ZoneCodeSubstring_TreeSet
A HashSet for storing a list of what are probably LAD codes. |
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog |
---|
_Logger, _Logger_FileHandler |
Constructor Summary | |
---|---|
IndividualCensus()
|
Method Summary | |
---|---|
AbstractCASDataHandler |
get_CASDataHandler()
For returning the _CASDataHandler to be used |
java.util.HashMap |
get_RecordID_ZoneCode_HashMap()
|
java.util.HashMap |
get_RecordID_ZoneCode_HashMap(long _StartRecordID,
long _EndRecordID)
|
long[] |
get_StartRecordID_EndRecordID(java.lang.String _ZoneCode)
Find _StartRecordID and _EndRecordID for _LADCode |
java.util.HashSet |
get_UK_OA_ID_HashSet()
|
java.util.HashMap |
get_ZoneCode_RecordID_HashMap(long _StartRecordID,
long _EndRecordID)
|
java.lang.Object[] |
getGeneralPopulationContraints()
|
java.lang.Object[] |
getGeneralPopulationContraints(long _StartRecordID,
long _EndRecordID)
|
void |
init_CASDataHandler(java.io.File directory,
java.lang.String tCASLevel)
Initialises _CASDataHandler |
java.util.HashSet |
init_IncludedVariablesHashSet()
Initialise this._IncludedVariablesHashSet (if not already initialised), then returns this._IncludedVariablesHashSet. |
abstract void |
init_ISARDataHandler(java.io.File directory)
Initialises _ISARDataHandler and _LongNumberOfISARDataRecords. |
void |
init_Population_HashMap()
|
void |
init_ToyModelDataHandler(java.io.File aFile)
Initialises _ToyModelDataHandler |
void |
init_ZoneCode_StartRecordID_EndRecordID_HashMap()
|
void |
init_ZoneCodeSubstring_TreeSet()
Initialises this._ZoneCode_substring_HashSet |
void |
init()
For initialisation of this |
protected void |
initLogFile()
|
protected void |
initLogFile(int log_int)
|
protected void |
initLogFile(java.util.logging.Level aLevel)
|
protected void |
initLogFile(java.util.logging.Level aLevel,
int log_int)
|
protected boolean |
initOutputFiles()
|
void |
load_Population_HashMap()
|
java.lang.Object[] |
loadGeneralPopulationContraints()
|
void |
output_Population_HashMap()
|
java.lang.String |
toString()
|
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog |
---|
init_Logger, init_Logger, init_Logger, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public GeneticAlgorithm _GeneticAlgorithm
public java.io.File _Directory
public java.lang.String _Area
public java.lang.String _CASLevel
public java.io.File _OutputDirectory
@Deprecated public java.lang.String _OutputDirectory_Name
public java.lang.String _OutputName
protected java.io.File _Output_File_0
protected java.io.File _Output_File_1
protected ToyModelDataHandler _ToyModelDataHandler
protected java.io.File _Input_File
protected long _StartTime
protected ISARDataHandler _ISARDataHandler
protected long _LongNumberOfISARDataRecords
protected long _LongNumberOfHSARDataRecords
protected CASDataHandler _CASDataHandler
protected java.util.HashSet _IncludedVariablesHashSet
protected java.util.TreeSet _ZoneCodeSubstring_TreeSet
protected java.util.HashMap _Population_HashMap
protected java.util.HashMap _ZoneCode_StartRecordID_EndRecordID_HashMap
Constructor Detail |
---|
public IndividualCensus()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void init()
protected void initLogFile()
protected void initLogFile(java.util.logging.Level aLevel)
protected void initLogFile(int log_int)
protected void initLogFile(java.util.logging.Level aLevel, int log_int)
protected boolean initOutputFiles()
public AbstractCASDataHandler get_CASDataHandler()
public java.util.HashSet init_IncludedVariablesHashSet()
public void init_CASDataHandler(java.io.File directory, java.lang.String tCASLevel)
directory
- The directory in which input data reside.tCASLevel
- The aggregate level of input data ("" for OA, "MSOA" for MSOA)public abstract void init_ISARDataHandler(java.io.File directory) throws java.io.IOException
directory
- The directory in which input data reside.
java.io.IOException
public void init_ToyModelDataHandler(java.io.File aFile)
aFile
- File for storing results.public java.lang.Object[] loadGeneralPopulationContraints()
public java.lang.Object[] getGeneralPopulationContraints()
public java.lang.Object[] getGeneralPopulationContraints(long _StartRecordID, long _EndRecordID)
public void init_ZoneCodeSubstring_TreeSet()
public void init_Population_HashMap()
public java.util.HashSet get_UK_OA_ID_HashSet() throws java.io.IOException
java.io.IOException
public java.util.HashMap get_RecordID_ZoneCode_HashMap()
public java.util.HashMap get_RecordID_ZoneCode_HashMap(long _StartRecordID, long _EndRecordID)
public java.util.HashMap get_ZoneCode_RecordID_HashMap(long _StartRecordID, long _EndRecordID) throws java.io.IOException
java.io.IOException
public void init_ZoneCode_StartRecordID_EndRecordID_HashMap()
public long[] get_StartRecordID_EndRecordID(java.lang.String _ZoneCode)
public void output_Population_HashMap()
public void load_Population_HashMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |