|
||||||||||
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.io.AbstractDataRecord uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelDataRecord_1
public class ToyModelDataRecord_1
For representing ToyModelDataRecords and providing safe access to the data.
Field Summary | |
---|---|
protected int |
age
|
protected int |
carer
|
protected long |
fitness
|
protected int |
gender
|
protected int |
healthStatus
|
protected int |
householdContainsDependentChildren
|
protected int |
householdID
|
protected int |
householdReferencePerson
|
protected long |
ID
|
protected int |
inFormalCare
|
protected long |
ISARDataRecordID
|
protected int |
limitingLongTermIllness
|
protected int |
maritalStatus
|
protected int |
numberOfOver65YearOldsInHousehold
|
protected int |
numberOfUsualResidents
|
protected int |
socialClass
|
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_1()
Creates a new ToyModelDataRecord |
|
ToyModelDataRecord_1(java.io.RandomAccessFile aRandomAccessFile)
Creates a new ToyModelDataRecord as read from aRandomAccessFile |
|
ToyModelDataRecord_1(ToyModelDataHandler tToyModelDataHandler,
java.lang.String line)
Creates a new ToyModelDataRecord from the String line |
|
ToyModelDataRecord_1(ToyModelDataRecord_1 toyModelDataRecord)
Creates a new ToyModelDataRecord cloned from toyModelDataRecord |
Method Summary | |
---|---|
protected void |
_Init()
Initialises all fields. |
long |
getSizeInBytes()
Returns the size of this record in bytes. |
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.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 |
---|
protected long ISARDataRecordID
protected long ID
protected int age
protected int socialClass
protected int gender
protected int maritalStatus
protected int limitingLongTermIllness
protected int healthStatus
protected int householdReferencePerson
protected int householdID
protected int carer
protected int inFormalCare
protected int householdContainsDependentChildren
protected int numberOfUsualResidents
protected int numberOfOver65YearOldsInHousehold
protected long fitness
Constructor Detail |
---|
public ToyModelDataRecord_1()
public ToyModelDataRecord_1(ToyModelDataRecord_1 toyModelDataRecord)
toyModelDataRecord
- The ToyModelDataRecord from which this is cloned.public ToyModelDataRecord_1(ToyModelDataHandler tToyModelDataHandler, java.lang.String line)
public ToyModelDataRecord_1(java.io.RandomAccessFile aRandomAccessFile) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
public java.lang.String toString()
toString
in class AbstractCASDataRecord
String
description of this.public void write(java.io.RandomAccessFile aRandomAccessFile)
this
to aRandomAccessFile
at the current
position.
write
in class AbstractCASDataRecord
aRandomAccessFile
- 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.
aRandomAccessFile
- The RandomAccessFile
this is written to.avoidCallToSuper
- If true super.write() is not calledpublic long getSizeInBytes()
getSizeInBytes
in class AbstractCASDataRecord
bytes
) 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 |