|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog
uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler
uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler
uk.ac.leeds.ccg.andyt.projects.moses.io.CASDataHandler
uk.ac.leeds.ccg.andyt.projects.moses.io.CASDataHandler_2
public class CASDataHandler_2
A class for holding the following collection of
AbstractCASDataHandlers so as to access respective
AbstractCASDataRecords:
CASDataRecord,
Serialized Form| Field Summary | |
|---|---|
protected CASKS006DataHandler |
_CASKS006DataHandler
CASKS006DataHandler |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.CASDataHandler |
|---|
_CAS002DataHandler, _CASKS002DataHandler, _CASKS008DataHandler, _CASKS010DataHandler, _CASKS015DataHandler, _CASKS017DataHandler, _CASKS020DataHandler, _CASKS023DataHandler, _CASKS09bDataHandler, _CASKS09cDataHandler, _CASKS12bDataHandler, _CASKS12cDataHandler, _CASKS14bDataHandler, _CASKS14cDataHandler, _CASUV003DataHandler |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler |
|---|
_CAS001DataHandler, _CAS003DataHandler, _LookUpMSOAfromOAHashMap, _RecordIDZoneCodeHashMap |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler |
|---|
_Directory, _File, _RandomAccessFile, _RecordLength |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog |
|---|
_Logger, _Logger_FileHandler |
| Constructor Summary | |
|---|---|
CASDataHandler_2()
Creates a new CASDataHandler |
|
CASDataHandler_2(java.io.File directory,
java.lang.String aggregation)
Creates a new CASDataHandler using Files in directory |
|
| Method Summary | |
|---|---|
void |
aggregateOAToMSOAForLeeds()
Aggregate From OA To MSOA For Leeds |
void |
aggregateOAToWardForLeeds()
Aggregate From OA To Ward For Leeds |
void |
formatSourceData()
Load Source Data |
CASKS006DataHandler |
getCASKS006DataHandler()
Returns this._CASKS006DataHandler |
AbstractCASDataRecord |
getDataRecord(long aRecordID)
|
protected void |
init()
Initialises all fields. |
static void |
main(java.lang.String[] args)
|
void |
run()
Top level run method |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.CASDataHandler |
|---|
getCAS002DataHandler, getCASKS002DataHandler, getCASKS008DataHandler, getCASKS010DataHandler, getCASKS015DataHandler, getCASKS017DataHandler, getCASKS020DataHandler, getCASKS023DataHandler, getCASKS09bDataHandler, getCASKS09cDataHandler, getCASKS12bDataHandler, getCASKS12cDataHandler, getCASKS14bDataHandler, getCASKS14cDataHandler, getCASUV003DataHandler, getNDataRecords |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler |
|---|
get_LookUpMSOAfromOAHashMap, getCAS001DataHandler, getCAS003DataHandler, getDataRecord, getDataRecord, getLADCodes_TreeSet, getMSOACodes_HashSet, getMSOACodes_HashSet, getOACodes_HashSet, getOACodes_HashSet, getOACodes_TreeSet, getRecordIDZoneCode_HashMap, getRecordIDZoneCodeHashMap, getZoneCodeRecordID_HashMap, parseLine, printOAMSOACodes, write |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler |
|---|
get_Directory, get_RecordLength, init, init, load, print |
| 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, toString, wait, wait, wait |
| Field Detail |
|---|
protected CASKS006DataHandler _CASKS006DataHandler
| Constructor Detail |
|---|
public CASDataHandler_2()
throws java.io.IOException
java.io.IOException
public CASDataHandler_2(java.io.File directory,
java.lang.String aggregation)
throws java.io.IOException
Files in directory
directory - The directory containing Filesaggregation - A String part of the filename indicating the
aggregation (e.g. OA, MSOA, WARD, etc... )
java.io.IOException| Method Detail |
|---|
protected void init()
throws java.io.IOException
init in class CASDataHandlerjava.io.IOException
public static void main(java.lang.String[] args)
throws java.io.IOException
args - the command line arguments
java.io.IOException
public void run()
throws java.io.IOException
run in class CASDataHandlerjava.io.IOExceptionpublic CASKS006DataHandler getCASKS006DataHandler()
public AbstractCASDataRecord getDataRecord(long aRecordID)
getDataRecord in class CASDataHandleraRecordID - The RecordID of the AbstractCASDataRecord to be returned.
AbstractCASDataRecord for the given RecordID
public void formatSourceData()
throws java.io.IOException
formatSourceData in class CASDataHandlerjava.io.IOException
public void aggregateOAToWardForLeeds()
throws java.io.IOException
aggregateOAToWardForLeeds in class CASDataHandlerjava.io.IOException
public void aggregateOAToMSOAForLeeds()
throws java.io.IOException
aggregateOAToMSOAForLeeds in class CASDataHandlerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||