|
||||||||||
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.CASKS006DataRecord
public class CASKS006DataRecord
For representing CASKS006DataRecords and providing safe access to the data.
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 |
---|
protected int allPeople
protected int whiteWhiteBritish
protected int whiteWhiteIrish
protected int whiteOtherWhite
protected int mixedWhiteAndBlackCarribean
protected int mixedWhiteAndBlackAfrican
protected int mixedWhiteAndAsian
protected int mixedOtherWhite
protected int asianOrAsianBritishIndian
protected int asianOrAsianBritishPakistani
protected int asianOrAsianBritishBangledeshi
protected int asianOrAsianBritishOtherAsian
protected int blackOrBlackBritishCaribbean
protected int blackOrBlackBritishAfrican
protected int blackOrBlackBritishOtherBlack
protected int chineseOrOtherEthnicGroupChinese
protected int chineseOrOtherEthnicGroupOtherEthnicGroup
Constructor Detail |
---|
public CASKS006DataRecord()
public CASKS006DataRecord(CASKS006DataRecord aCASKS006DataRecord)
aCASKS006DataRecord
- The CASKS006DataRecord from which this is cloned.public CASKS006DataRecord(boolean initZero)
initZero
- To ensure initZero() is used instead of _Init()public CASKS006DataRecord(long RecordID, java.lang.String line) throws java.io.IOException
RecordID
- The RecordID to be assigned to thisline
- The Comma Seperated Value String
java.io.IOException
public CASKS006DataRecord(java.io.RandomAccessFile aRandomAccessFile)
aRandomAccessFile
- Method Detail |
---|
protected void init(CASKS006DataRecord aCASKS006DataRecord)
protected void _Init()
_Init
in class AbstractCASDataRecord
protected void initZero()
public java.lang.String toString()
toString
in class AbstractCASDataRecord
String
description of this.public java.lang.String toCSVString()
toCSVString
in class AbstractCASDataRecord
String
of the values
of the Fields
of this
.public java.lang.String toCSVStringFields()
toCSVStringFields
in class AbstractCASDataRecord
String
of the names
of the Fields
of this
public int getAllPeople()
public int getWhiteWhiteBritish()
public int getWhiteWhiteIrish()
public int getWhiteOtherWhite()
public int getMixedWhiteAndBlackCarribean()
public int getMixedWhiteAndBlackAfrican()
public int getMixedWhiteAndAsian()
public int getMixedOtherWhite()
public int getAsianOrAsianBritishIndian()
public int getAsianOrAsianBritishPakistani()
public int getAsianOrAsianBritishBangledeshi()
public int getAsianOrAsianBritishOtherAsian()
public int getBlackOrBlackBritishCaribbean()
public int getBlackOrBlackBritishAfrican()
public int getBlackOrBlackBritishOtherBlack()
public int getChineseOrOtherEthnicGroupOtherEthnicGroup()
public int getChineseOrOtherEthnicGroupChinese()
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 CASKS006DataRecord aggregate(CASKS006DataRecord aCASKS006DataRecord)
aCASKS006DataRecord
- The CASKS006DataRecord
to be aggregated with
this
.
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).public CASKS006DataRecord aggregate(CASKS006DataRecord aCASKS006DataRecord, long newRecordID, char[] newZone_Code)
aCASKS006DataRecord
- The CASKS006DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
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).public 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 |