uk.ac.leeds.ccg.andyt.projects.moses.io
Class ToyModelDataRecord_1

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord
      extended by uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord
          extended by uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelDataRecord_1
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ToyModelDataRecord_1
extends AbstractCASDataRecord

For representing ToyModelDataRecords and providing safe access to the data.

See Also:
Serialized Form

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

ISARDataRecordID

protected long ISARDataRecordID

ID

protected long ID

age

protected int age

socialClass

protected int socialClass

gender

protected int gender

maritalStatus

protected int maritalStatus

limitingLongTermIllness

protected int limitingLongTermIllness

healthStatus

protected int healthStatus

householdReferencePerson

protected int householdReferencePerson

householdID

protected int householdID

carer

protected int carer

inFormalCare

protected int inFormalCare

householdContainsDependentChildren

protected int householdContainsDependentChildren

numberOfUsualResidents

protected int numberOfUsualResidents

numberOfOver65YearOldsInHousehold

protected int numberOfOver65YearOldsInHousehold

fitness

protected long fitness
Constructor Detail

ToyModelDataRecord_1

public ToyModelDataRecord_1()
Creates a new ToyModelDataRecord


ToyModelDataRecord_1

public ToyModelDataRecord_1(ToyModelDataRecord_1 toyModelDataRecord)
Creates a new ToyModelDataRecord cloned from toyModelDataRecord

Parameters:
toyModelDataRecord - The ToyModelDataRecord from which this is cloned.

ToyModelDataRecord_1

public ToyModelDataRecord_1(ToyModelDataHandler tToyModelDataHandler,
                            java.lang.String line)
Creates a new ToyModelDataRecord from the String line


ToyModelDataRecord_1

public ToyModelDataRecord_1(java.io.RandomAccessFile aRandomAccessFile)
                     throws java.io.IOException
Creates a new ToyModelDataRecord as read from aRandomAccessFile

Throws:
java.io.IOException
Method Detail

_Init

protected void _Init()
Initialises all fields.

Overrides:
_Init in class AbstractCASDataRecord

toString

public java.lang.String toString()
Returns a string description of this;

Overrides:
toString in class AbstractCASDataRecord
Returns:
A String description of this.

write

public void write(java.io.RandomAccessFile aRandomAccessFile)
Writes this to aRandomAccessFile at the current position.

Overrides:
write in class AbstractCASDataRecord
Parameters:
aRandomAccessFile - The RandomAccessFile this is written to.
See Also:
AbstractDataRecord.write(RandomAccessFile)

write

public void write(java.io.RandomAccessFile aRandomAccessFile,
                  boolean avoidCallToSuper)
Writes this to aRandomAccessFile at the current position.

Parameters:
aRandomAccessFile - The RandomAccessFile this is written to.
avoidCallToSuper - If true super.write() is not called

getSizeInBytes

public long getSizeInBytes()
Returns the size of this record in bytes.

Overrides:
getSizeInBytes in class AbstractCASDataRecord
Returns:
The size (in bytes) of this as a long. This does not account for the private Fields serialVersionUID.