|
||||||||||
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.io.AbstractDataHandler uk.ac.leeds.ccg.andyt.projects.moses.io.ISARDataHandler
public class ISARDataHandler
For accessing ISARDataRecords and information about them.
Nested Class Summary | |
---|---|
class |
ISARDataHandler.AgeSexType
A simple class for distinguishing ISARDataRecords into those with the same of Age, Sex and Type characteristics where Type can be either: RELTOHR = 1 for HRP RELTOHR = -9 for Communal Establishment Populations RELTOHR = other for general household person |
Field Summary | |
---|---|
protected java.util.HashMap |
_AgeSexType_ISARDataRecordVector_HashMap_0
|
protected java.util.HashMap |
_AgeSexType_ISARDataRecordVector_HashMap_1
|
protected ISARDataRecord[] |
_ISARDataRecordArray
For storing ISARDataRecords. |
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 | |
---|---|
ISARDataHandler()
Creates a new instance of ISARDataHandler |
|
ISARDataHandler(java.io.File aFile)
Creates a new instance of ISARDataHandler from aFile. |
Method Summary | |
---|---|
void |
formatSource(java.io.File sourceFile,
java.io.File formattedFile)
Loads from source file |
java.util.HashMap |
get_AgeSexType_ISARDataRecordVector_HashMap_0()
|
java.util.HashMap<ISARDataHandler.AgeSexType,java.util.Vector> |
get_AgeSexType_ISARDataRecordVector_HashMap_0(ISARDataRecord[] a_ISARDataRecord_Array)
|
java.util.HashMap |
get_ID_RecordID_HashMap()
Method to be used to look up ISARDataRecord from ISARDataRecord._ID. |
int |
getAgeSexTypeCount_0(ISARDataHandler.AgeSexType aAgeSexType)
a return integer count of the number of other ISARDataRecords in _ISARDataRecordArray with the same
AgeSexType(aISARDataRecord)
|
int |
getAgeSexTypeCount_0(ISARDataRecord aISARDataRecord)
a return integer count of the number of other ISARDataRecords in _ISARDataRecordArray with the same
AgeSexType(aISARDataRecord)
|
AbstractDataRecord |
getDataRecord(long RecordID)
|
ISARDataRecord |
getISARDataRecord(long RecordID)
|
ISARDataRecord |
getISARDataRecord(java.util.Random aRandom,
ISARDataHandler.AgeSexType aAgeSexType)
|
ISARDataRecord |
getISARDataRecord(java.util.Random aRandom,
ISARDataRecord aISARDataRecord)
|
long |
getNDataRecords()
|
static short |
getRELTOHRType1(ISARDataRecord aISARDataRecord)
|
protected void |
init_AgeSexType_ISARDataRecordVector_HashMap_0()
Initialises _AgeSexType_ISARDataRecordArray_HashMap by going through _ISARDataRecordArray. |
void |
loadIntoCache()
Loads ISARDataRecords into the cache. |
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 ISARDataRecord[] _ISARDataRecordArray
protected java.util.HashMap _AgeSexType_ISARDataRecordVector_HashMap_0
protected java.util.HashMap _AgeSexType_ISARDataRecordVector_HashMap_1
Constructor Detail |
---|
public ISARDataHandler()
public ISARDataHandler(java.io.File aFile)
aFile
- Method Detail |
---|
public void loadIntoCache()
public void formatSource(java.io.File sourceFile, java.io.File formattedFile) throws java.io.IOException
java.io.IOException
public AbstractDataRecord getDataRecord(long RecordID)
getDataRecord
in class AbstractDataHandler
RecordID
- The RecordID
of the ISARDataRecord
to be returned.
AbstractDataRecord
for the given RecordIDpublic ISARDataRecord getISARDataRecord(long RecordID)
RecordID
- The RecordID
of the ISARDataRecord
to be returned.public java.util.HashMap get_AgeSexType_ISARDataRecordVector_HashMap_0()
protected void init_AgeSexType_ISARDataRecordVector_HashMap_0()
public java.util.HashMap get_ID_RecordID_HashMap()
public long getNDataRecords()
getNDataRecords
in class AbstractDataHandler
AbstractDataRecords
in
this.tRandomAccessFile
public java.util.HashMap<ISARDataHandler.AgeSexType,java.util.Vector> get_AgeSexType_ISARDataRecordVector_HashMap_0(ISARDataRecord[] a_ISARDataRecord_Array)
-
public int getAgeSexTypeCount_0(ISARDataRecord aISARDataRecord)
AgeSexType(aISARDataRecord)
public int getAgeSexTypeCount_0(ISARDataHandler.AgeSexType aAgeSexType)
AgeSexType(aISARDataRecord)
public ISARDataRecord getISARDataRecord(java.util.Random aRandom, ISARDataRecord aISARDataRecord)
aISARDataRecord
- aRandom
-
public ISARDataRecord getISARDataRecord(java.util.Random aRandom, ISARDataHandler.AgeSexType aAgeSexType)
public static short getRELTOHRType1(ISARDataRecord aISARDataRecord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |