|
||||||||||
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.CASKS010DataRecord
public class CASKS010DataRecord
For representing CAS KS010 Records and providing safe access to the data.
Field Summary | |
---|---|
protected int |
femalesAged16to74InEmployment
KS0100010 = femalesAged16to74InEmployment |
protected int |
femalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30
KS0100011 = femalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30 |
protected int |
femalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5
KS0100009 = femalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5 |
protected int |
femalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37
KS0100012 = femalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37 |
protected int |
femalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48
KS0100013 = femalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48 |
protected int |
femalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore
KS0100014 = femalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore |
protected int |
femalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15
KS0100010 = femalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15 |
protected int |
malesAged16to74InEmployment
KS0100001 = malesAged16to74InEmployment |
protected int |
malesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30
KS0100004 = malesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30 |
protected int |
malesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5
KS0100002 = malesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5 |
protected int |
malesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37
KS0100005 = malesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37 |
protected int |
malesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48
KS0100006 = malesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48 |
protected int |
malesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore
KS0100007 = malesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore |
protected int |
malesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15
KS0100003 = malesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15 |
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 | |
---|---|
CASKS010DataRecord()
Creates a new CASKS010Record |
|
CASKS010DataRecord(boolean initZero)
Creates a new CASKS010DataRecord |
|
CASKS010DataRecord(CASKS010DataRecord cASKS010Record)
Creates a new CASKS010Record cloned from cASKS010Record |
|
CASKS010DataRecord(long RecordID,
java.lang.String line)
Creates a new CASKS010DataRecord |
|
CASKS010DataRecord(java.io.RandomAccessFile aRandomAccessFile)
Creates a new CASKS010Record |
Method Summary | |
---|---|
protected void |
_Init()
Initialises. |
CASKS010DataRecord |
aggregate(CASKS010DataRecord aCASKS010DataRecord)
|
CASKS010DataRecord |
aggregate(CASKS010DataRecord aCASKS010DataRecord,
long newRecordID,
char[] newZone_Code)
|
int |
getFemalesAged16to74InEmployment()
Returns a copy of this.femalesAged16to74InEmployment |
int |
getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30()
Returns a copy of this.femalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30 |
int |
getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5()
Returns a copy of this.femalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5 |
int |
getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37()
Returns a copy of this.femalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37 |
int |
getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48()
Returns a copy of this.femalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48 |
int |
getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore()
Returns a copy of this.femalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore |
int |
getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15()
Returns a copy of this.femalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15 |
int |
getMalesAged16to74InEmployment()
Returns a copy of this.malesAged16to74InEmployment |
int |
getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30()
Returns a copy of this.malesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30 |
int |
getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5()
Returns a copy of this.malesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5 |
int |
getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37()
Returns a copy of this.malesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37 |
int |
getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48()
Returns a copy of this.malesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48 |
int |
getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore()
Returns a copy of this.malesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore |
int |
getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15()
Returns a copy of this.malesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15 |
long |
getSizeInBytes()
Returns the size of this CASKS010Record in bytes as a long. |
protected void |
init(CASKS010DataRecord cASKS010Record)
Initialises all fields from those in cASKS010Record. |
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 malesAged16to74InEmployment
protected int malesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5
protected int malesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15
protected int malesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30
protected int malesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37
protected int malesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48
protected int malesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore
protected int femalesAged16to74InEmployment
protected int femalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5
protected int femalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15
protected int femalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30
protected int femalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37
protected int femalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48
protected int femalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore
Constructor Detail |
---|
public CASKS010DataRecord()
public CASKS010DataRecord(CASKS010DataRecord cASKS010Record)
cASKS010Record
- The CASKS010Record from which this is cloned.public CASKS010DataRecord(boolean initZero)
initZero
- To ensure initZero() is used instead of _Init()public CASKS010DataRecord(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 CASKS010DataRecord(java.io.RandomAccessFile aRandomAccessFile) throws java.io.IOException
aRandomAccessFile
-
java.io.IOException
Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
protected void initZero()
protected void init(CASKS010DataRecord cASKS010Record)
cASKS010Record
- The CASKS010Record thats fields are used to initialise this.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 getMalesAged16to74InEmployment()
public int getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5()
public int getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15()
public int getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30()
public int getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37()
public int getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48()
public int getMalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore()
public int getFemalesAged16to74InEmployment()
public int getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime1to5()
public int getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime6to15()
public int getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime16to30()
public int getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime31to37()
public int getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime38to48()
public int getFemalesAged16to74InEmploymentWorkingHoursAWeekPartTime49OrMore()
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 CASKS010DataRecord aggregate(CASKS010DataRecord aCASKS010DataRecord)
aCASKS010DataRecord
- The CASKS010DataRecord
to be aggregated with
this
.
CASKS010DataRecord
where:
RecordID = this.RecordID
Zone_Code = this.Zone_Code
For aggregating
CASKS010DataRecords
. 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 CASKS010DataRecord aggregate(CASKS010DataRecord aCASKS010DataRecord, long newRecordID, char[] newZone_Code)
aCASKS010DataRecord
- The CASKS010DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
CASKS010DataRecord
where:
RecordID = newRecordID
Zone_Code = newZone_Code
For aggregating
CASKS010DataRecords
. 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 |