|
||||||||||
| 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.io.AbstractDataRecord
uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord
uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelDataRecord
uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelDataRecord_2
public class ToyModelDataRecord_2
For representing ToyModelDataRecords and providing safe access to the data.
| Field Summary | |
|---|---|
int |
AGE
|
int |
CAROWNERSHIP
|
int |
ETHNICITY
|
int |
HEALTH
|
int |
LLTI
|
int |
SEX
|
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelDataRecord |
|---|
tHouseholdID, tHSARDataRecordID, tISARDataRecordID, tPersonID |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord |
|---|
Zone_Code |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord |
|---|
_RecordID |
| Constructor Summary | |
|---|---|
ToyModelDataRecord_2()
Creates a new ToyModelDataRecord |
|
ToyModelDataRecord_2(boolean initZero)
Creates a new ToyModelDataRecord with fields initialised to zero for aggregating |
|
ToyModelDataRecord_2(java.io.RandomAccessFile aRandomAccessFile)
Creates a new ToyModelDataRecord as read from aRandomAccessFile |
|
ToyModelDataRecord_2(ToyModelDataHandler tToyModelDataHandler,
java.lang.String line)
Creates a new ToyModelDataRecord_2 from the String line AREACODE,PERSONID, HOUSEHOLDID,HSARRECORDID,INDIVIDUALSARRECORDID,AGE,SEX,LLTI ,HEALTH,ETHNICITY,CAROWNERSHIP PersonID is a number for each tPerson inside a tHousehold or for those in communal establishments (grouped) HouseholdID is a sequencial number for each tHousehold HSARDataRecord.RECORDID is the HSARDataRecord RECORDID or -9 if not an HSARDataRecord ISARDataRecord.RECORDID is the ISARDataRecord RECORDID or -9 if not an ISARDataRecord TODO: Docs |
|
ToyModelDataRecord_2(ToyModelDataRecord_2 _ToyModelDataRecord_2)
Creates a new ToyModelDataRecord_2 cloned from _ToyModelDataRecord_2 |
|
| Method Summary | |
|---|---|
protected void |
_Init()
Initialises all fields. |
long |
getSizeInBytes()
Returns the size of this record in bytes. |
protected void |
init(ToyModelDataRecord_2 aToyModelDataRecord2)
Initialises all fields. |
protected void |
initZero()
Initialises all fields. |
java.lang.String |
toString()
Returns a string description of this; |
void |
write(java.io.RandomAccessFile aRandomAccessFile)
Writes this to aRandomAccessFile at the current
position. |
void |
write(java.io.RandomAccessFile aRandomAccessFile,
boolean avoidCallToSuper)
Writes this to aRandomAccessFile at the current
position. |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelDataRecord |
|---|
init |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord |
|---|
equals, getZone_Code, hashCode, init, toCSVString, toCSVStringFields, write |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord |
|---|
_Init, compareTo, get_RecordID, getNumberOfBitsInByte |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public int AGE
public int SEX
public int LLTI
public int HEALTH
public int ETHNICITY
public int CAROWNERSHIP
| Constructor Detail |
|---|
public ToyModelDataRecord_2()
public ToyModelDataRecord_2(boolean initZero)
public ToyModelDataRecord_2(ToyModelDataRecord_2 _ToyModelDataRecord_2)
_ToyModelDataRecord_2 - The ToyModelDataRecord_2 from which this is cloned.
public ToyModelDataRecord_2(ToyModelDataHandler tToyModelDataHandler,
java.lang.String line)
public ToyModelDataRecord_2(java.io.RandomAccessFile aRandomAccessFile)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void init(ToyModelDataRecord_2 aToyModelDataRecord2)
init in class ToyModelDataRecordprotected void _Init()
_Init in class ToyModelDataRecordprotected void initZero()
initZero in class ToyModelDataRecordpublic java.lang.String toString()
toString in class ToyModelDataRecordString description of this.public void write(java.io.RandomAccessFile aRandomAccessFile)
this to aRandomAccessFile at the current
position.
write in class ToyModelDataRecordaRandomAccessFile - The RandomAccessFile this is written to.AbstractDataRecord.write(RandomAccessFile)
public void write(java.io.RandomAccessFile aRandomAccessFile,
boolean avoidCallToSuper)
this to aRandomAccessFile at the current
position.
write in class ToyModelDataRecordaRandomAccessFile - The RandomAccessFile this is written to.avoidCallToSuper - If true super.write() is not calledpublic long getSizeInBytes()
getSizeInBytes in class ToyModelDataRecordbytes) of this as a long.
This does not account for the private Fields
serialVersionUID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||