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

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.CASKS006DataRecord
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CASKS006DataRecord
extends AbstractCASDataRecord

For representing CASKS006DataRecords and providing safe access to the data.

See Also:
Serialized Form

Field Summary
protected  int allPeople
          KS0060001 = allPeople
protected  int asianOrAsianBritishBangledeshi
          KS0060011 = asianOrAsianBritishBangledeshi
protected  int asianOrAsianBritishIndian
          KS0060009 = asianOrAsianBritishIndian
protected  int asianOrAsianBritishOtherAsian
          KS0060012 = asianOrAsianBritishOtherAsian
protected  int asianOrAsianBritishPakistani
          KS0060010 = asianOrAsianBritishPakistani
protected  int blackOrBlackBritishAfrican
          KS0060014 = blackOrBlackBritishAfrican
protected  int blackOrBlackBritishCaribbean
          KS0060013 = blackOrBlackBritishCaribbean
protected  int blackOrBlackBritishOtherBlack
          KS0060015 = blackOrBlackBritishOtherBlack
protected  int chineseOrOtherEthnicGroupChinese
          KS0060016 = chineseOrOtherEthnicGroupChinese
protected  int chineseOrOtherEthnicGroupOtherEthnicGroup
          KS0060017 = chineseOrOtherEthnicGroupOtherEthnicGroup
protected  int mixedOtherWhite
          KS0060008 = mixedOtherWhite
protected  int mixedWhiteAndAsian
          KS0060007 = mixedWhiteAndAsian
protected  int mixedWhiteAndBlackAfrican
          KS0060006 = mixedWhiteAndBlackAfrican
protected  int mixedWhiteAndBlackCarribean
          KS0060005 = mixedWhiteAndBlackCarribean
protected  int whiteOtherWhite
          KS0060004 = whiteOtherWhite
protected  int whiteWhiteBritish
          KS0060002 = whiteWhiteBritish
protected  int whiteWhiteIrish
          KS0060003 = whiteWhiteIrish
 
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
CASKS006DataRecord()
          Creates a new CASKS006Record
CASKS006DataRecord(boolean initZero)
          Creates a new CASKS006DataRecord
CASKS006DataRecord(CASKS006DataRecord aCASKS006DataRecord)
          Creates a new CASKS006DataRecord cloned from aCASKS006DataRecord
CASKS006DataRecord(long RecordID, java.lang.String line)
          Creates a new CASKS006DataRecord
CASKS006DataRecord(java.io.RandomAccessFile aRandomAccessFile)
          Creates a new CASKS006Record
 
Method Summary
protected  void _Init()
          Initialises.
 CASKS006DataRecord aggregate(CASKS006DataRecord aCASKS006DataRecord)
           
 CASKS006DataRecord aggregate(CASKS006DataRecord aCASKS006DataRecord, long newRecordID, char[] newZone_Code)
           
 int getAllPeople()
          Returns a copy of this.allPeople
 int getAsianOrAsianBritishBangledeshi()
          Returns a copy of this.asianOrAsianBritishBangledeshi
 int getAsianOrAsianBritishIndian()
          Returns a copy of this.asianOrAsianBritishIndian
 int getAsianOrAsianBritishOtherAsian()
          Returns a copy of this.asianOrAsianBritishOtherAsian
 int getAsianOrAsianBritishPakistani()
          Returns a copy of this.asianOrAsianBritishPakistani
 int getBlackOrBlackBritishAfrican()
          Returns a copy of this.blackOrBlackBritishAfrican
 int getBlackOrBlackBritishCaribbean()
          Returns a copy of this.blackOrBlackBritishCaribbean
 int getBlackOrBlackBritishOtherBlack()
          Returns a copy of this.blackOrBlackBritishOtherBlack
 int getChineseOrOtherEthnicGroupChinese()
          Returns a copy of this.chineseOrOtherEthnicGroupChinese
 int getChineseOrOtherEthnicGroupOtherEthnicGroup()
          Returns a copy of this.chineseOrOtherEthnicGroupOtherEthnicGroup
 int getMixedOtherWhite()
          Returns a copy of this.mixedOtherWhite
 int getMixedWhiteAndAsian()
          Returns a copy of this.mixedWhiteAndAsian
 int getMixedWhiteAndBlackAfrican()
          Returns a copy of this.mixedWhiteAndBlackAfrican
 int getMixedWhiteAndBlackCarribean()
          Returns a copy of this.mixedWhiteAndBlackCarribean
 long getSizeInBytes()
          Returns the size of this Record in bytes as a long.
 int getWhiteOtherWhite()
          Returns a copy of this.whiteOtherWhite
 int getWhiteWhiteBritish()
          Returns a copy of this.whiteWhiteBritish
 int getWhiteWhiteIrish()
          Returns a copy of this.whiteWhiteIrish
protected  void init(CASKS006DataRecord aCASKS006DataRecord)
          Initialises.
protected  void initZero()
          Initialises to zero.
 java.lang.String toCSVString()
           
 java.lang.String toCSVStringFields()
           
 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, 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

allPeople

protected int allPeople
KS0060001 = allPeople


whiteWhiteBritish

protected int whiteWhiteBritish
KS0060002 = whiteWhiteBritish


whiteWhiteIrish

protected int whiteWhiteIrish
KS0060003 = whiteWhiteIrish


whiteOtherWhite

protected int whiteOtherWhite
KS0060004 = whiteOtherWhite


mixedWhiteAndBlackCarribean

protected int mixedWhiteAndBlackCarribean
KS0060005 = mixedWhiteAndBlackCarribean


mixedWhiteAndBlackAfrican

protected int mixedWhiteAndBlackAfrican
KS0060006 = mixedWhiteAndBlackAfrican


mixedWhiteAndAsian

protected int mixedWhiteAndAsian
KS0060007 = mixedWhiteAndAsian


mixedOtherWhite

protected int mixedOtherWhite
KS0060008 = mixedOtherWhite


asianOrAsianBritishIndian

protected int asianOrAsianBritishIndian
KS0060009 = asianOrAsianBritishIndian


asianOrAsianBritishPakistani

protected int asianOrAsianBritishPakistani
KS0060010 = asianOrAsianBritishPakistani


asianOrAsianBritishBangledeshi

protected int asianOrAsianBritishBangledeshi
KS0060011 = asianOrAsianBritishBangledeshi


asianOrAsianBritishOtherAsian

protected int asianOrAsianBritishOtherAsian
KS0060012 = asianOrAsianBritishOtherAsian


blackOrBlackBritishCaribbean

protected int blackOrBlackBritishCaribbean
KS0060013 = blackOrBlackBritishCaribbean


blackOrBlackBritishAfrican

protected int blackOrBlackBritishAfrican
KS0060014 = blackOrBlackBritishAfrican


blackOrBlackBritishOtherBlack

protected int blackOrBlackBritishOtherBlack
KS0060015 = blackOrBlackBritishOtherBlack


chineseOrOtherEthnicGroupChinese

protected int chineseOrOtherEthnicGroupChinese
KS0060016 = chineseOrOtherEthnicGroupChinese


chineseOrOtherEthnicGroupOtherEthnicGroup

protected int chineseOrOtherEthnicGroupOtherEthnicGroup
KS0060017 = chineseOrOtherEthnicGroupOtherEthnicGroup

Constructor Detail

CASKS006DataRecord

public CASKS006DataRecord()
Creates a new CASKS006Record


CASKS006DataRecord

public CASKS006DataRecord(CASKS006DataRecord aCASKS006DataRecord)
Creates a new CASKS006DataRecord cloned from aCASKS006DataRecord

Parameters:
aCASKS006DataRecord - The CASKS006DataRecord from which this is cloned.

CASKS006DataRecord

public CASKS006DataRecord(boolean initZero)
Creates a new CASKS006DataRecord

Parameters:
initZero - To ensure initZero() is used instead of _Init()

CASKS006DataRecord

public CASKS006DataRecord(long RecordID,
                          java.lang.String line)
                   throws java.io.IOException
Creates a new CASKS006DataRecord

Parameters:
RecordID - The RecordID to be assigned to this
line - The Comma Seperated Value String
Throws:
java.io.IOException

CASKS006DataRecord

public CASKS006DataRecord(java.io.RandomAccessFile aRandomAccessFile)
Creates a new CASKS006Record

Parameters:
aRandomAccessFile -
Method Detail

init

protected void init(CASKS006DataRecord aCASKS006DataRecord)
Initialises.


_Init

protected void _Init()
Initialises.

Overrides:
_Init in class AbstractCASDataRecord

initZero

protected void initZero()
Initialises to zero.


toString

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

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

toCSVString

public java.lang.String toCSVString()
Overrides:
toCSVString in class AbstractCASDataRecord
Returns:
A Comma Seperated Version (CSV) String of the values of the Fields of this.

toCSVStringFields

public java.lang.String toCSVStringFields()
Overrides:
toCSVStringFields in class AbstractCASDataRecord
Returns:
A Comma Seperated Version (CSV) String of the names of the Fields of this

getAllPeople

public int getAllPeople()
Returns a copy of this.allPeople


getWhiteWhiteBritish

public int getWhiteWhiteBritish()
Returns a copy of this.whiteWhiteBritish


getWhiteWhiteIrish

public int getWhiteWhiteIrish()
Returns a copy of this.whiteWhiteIrish


getWhiteOtherWhite

public int getWhiteOtherWhite()
Returns a copy of this.whiteOtherWhite


getMixedWhiteAndBlackCarribean

public int getMixedWhiteAndBlackCarribean()
Returns a copy of this.mixedWhiteAndBlackCarribean


getMixedWhiteAndBlackAfrican

public int getMixedWhiteAndBlackAfrican()
Returns a copy of this.mixedWhiteAndBlackAfrican


getMixedWhiteAndAsian

public int getMixedWhiteAndAsian()
Returns a copy of this.mixedWhiteAndAsian


getMixedOtherWhite

public int getMixedOtherWhite()
Returns a copy of this.mixedOtherWhite


getAsianOrAsianBritishIndian

public int getAsianOrAsianBritishIndian()
Returns a copy of this.asianOrAsianBritishIndian


getAsianOrAsianBritishPakistani

public int getAsianOrAsianBritishPakistani()
Returns a copy of this.asianOrAsianBritishPakistani


getAsianOrAsianBritishBangledeshi

public int getAsianOrAsianBritishBangledeshi()
Returns a copy of this.asianOrAsianBritishBangledeshi


getAsianOrAsianBritishOtherAsian

public int getAsianOrAsianBritishOtherAsian()
Returns a copy of this.asianOrAsianBritishOtherAsian


getBlackOrBlackBritishCaribbean

public int getBlackOrBlackBritishCaribbean()
Returns a copy of this.blackOrBlackBritishCaribbean


getBlackOrBlackBritishAfrican

public int getBlackOrBlackBritishAfrican()
Returns a copy of this.blackOrBlackBritishAfrican


getBlackOrBlackBritishOtherBlack

public int getBlackOrBlackBritishOtherBlack()
Returns a copy of this.blackOrBlackBritishOtherBlack


getChineseOrOtherEthnicGroupOtherEthnicGroup

public int getChineseOrOtherEthnicGroupOtherEthnicGroup()
Returns a copy of this.chineseOrOtherEthnicGroupOtherEthnicGroup


getChineseOrOtherEthnicGroupChinese

public int getChineseOrOtherEthnicGroupChinese()
Returns a copy of this.chineseOrOtherEthnicGroupChinese


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

aggregate

public CASKS006DataRecord aggregate(CASKS006DataRecord aCASKS006DataRecord)
Parameters:
aCASKS006DataRecord - The CASKS006DataRecord to be aggregated with this.
Returns:
An aggregated CASKS006DataRecord where: RecordID = newRecordID Zone_Code = newZone_Code For aggregating CASKS006DataRecords. User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used (i.e. numbers may not be precise or have sufficient magnitude).

aggregate

public CASKS006DataRecord aggregate(CASKS006DataRecord aCASKS006DataRecord,
                                    long newRecordID,
                                    char[] newZone_Code)
Parameters:
aCASKS006DataRecord - The CASKS006DataRecord to be aggregated with this.
newRecordID - The RecordID assigned to result.
newZone_Code - The Zone_Code assigned to result.
Returns:
An aggregated CASKS006DataRecord where: RecordID = newRecordID Zone_Code = newZone_Code For aggregating CASKS006DataRecords. User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used (i.e. numbers may not be precise or have sufficient magnitude).

getSizeInBytes

public long getSizeInBytes()
Returns the size of this Record in bytes as a long. This does not account for serialVersionUID. A boolean is assumed to be the same size as an int 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.