|
||||||||||
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.CASKS020DataRecord
public class CASKS020DataRecord
For representing CAS KS020 Records and providing safe access to the data.
Field Summary | |
---|---|
protected int |
allHouseholds
KS0200001 = allHouseholds |
protected int |
householdsComprisingOneFamilyAndNoOthersAllPensioners
KS0200004 = householdsComprisingOneFamilyAndNoOthersAllPensioners |
protected int |
householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsAllChildrenNonDependent
KS0200010 =householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsAllChildrenNonDependent |
protected int |
householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsNoChildren
KS0200020 = householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsNoChildren |
protected int |
householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsWithDependentChildren
KS0200009 =householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsWithDependentChildren |
protected int |
householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsAllChildrenNonDependent
KS0200012 =householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsAllChildrenNonDependent |
protected int |
householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsWithDependentChildren
KS0200011 =householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsWithDependentChildren |
protected int |
householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsAllChildrenNonDependent
KS0200007 =householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsAllChildrenNonDependent |
protected int |
householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsNoChildren
KS0200005 = householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsNoChildren |
protected int |
householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsWithDependentChildren
KS0200006 =householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsWithDependentChildren |
protected int |
householdsComprisingOnePensioner
KS0200002 = householdsComprisingOnePensioner |
protected int |
householdsComprisingOnePersonOtherThanPensioner
KS0200003 = householdsComprisingOnePersonOtherThanPensioner |
protected int |
householdsComprisingOtherThanOneFamilyAllPensioner
KS0200015 = householdsComprisingOtherThanOneFamilyAllPensioner |
protected int |
householdsComprisingOtherThanOneFamilyAllStudent
KS0200014 = householdsComprisingOtherThanOneFamilyAllStudent |
protected int |
householdsComprisingOtherThanOneFamilyOther
KS0200016 = householdsComprisingOtherThanOneFamilyOther |
protected int |
householdsComprisingOtherThanOneFamilyWithDependentChildren
KS0200013 = householdsComprisingOtherThanOneFamilyWithDependentChildren |
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 | |
---|---|
CASKS020DataRecord()
Creates a new CASKS020Record |
|
CASKS020DataRecord(CASKS020DataRecord aCASKS020Record)
Creates a new CASKS020Record cloned from aCASKS020Record |
|
CASKS020DataRecord(long RecordID,
java.lang.String line)
Creates a new CASKS020DataRecord |
|
CASKS020DataRecord(java.io.RandomAccessFile aRandomAccessFile)
Creates a new CASKS020Record |
Method Summary | |
---|---|
protected void |
_Init()
Initialise. |
CASKS020DataRecord |
aggregate(CASKS020DataRecord aCASKS020DataRecord)
|
CASKS020DataRecord |
aggregate(CASKS020DataRecord aCASKS020DataRecord,
long newRecordID,
char[] newZone_Code)
|
int |
getAllHouseholds()
Returns a copy of this.allHouseholds |
int |
getHouseholdsComprisingOneFamilyAndNoOthersAllPensioners()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersAllPensioners |
int |
getHouseholdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsAllChildrenNonDependent()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsAllChildrenNonDependent |
int |
getHouseholdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsNoChildren()
Returns a copy of this. |
int |
getHouseholdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsWithDependentChildren()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsWithDependentChildren |
int |
getHouseholdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsAllChildrenNonDependent()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsAllChildrenNonDependent |
int |
getHouseholdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsWithDependentChildren()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsWithDependentChildren |
int |
getHouseholdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsAllChildrenNonDependent()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsAllChildrenNonDependent |
int |
getHouseholdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsNoChildren()
Returns a copy of this. |
int |
getHouseholdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsWithDependentChildren()
Returns a copy of this.householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsWithDependentChildren |
int |
getHouseholdsComprisingOnePensioner()
Returns a copy of this.householdsComprisingOnePensioner |
int |
getHouseholdsComprisingOnePersonOtherThanPensioner()
Returns a copy of this.householdsComprisingOnePersonOtherThanPensioner |
int |
getHouseholdsComprisingOtherThanOneFamilyAllPensioner()
Returns a copy of this.householdsComprisingOtherThanOneFamilyAllPensioner |
int |
getHouseholdsComprisingOtherThanOneFamilyAllStudent()
Returns a copy of this.householdsComprisingOtherThanOneFamilyAllStudent |
int |
getHouseholdsComprisingOtherThanOneFamilyOther()
Returns a copy of this.householdsComprisingOtherThanOneFamilyOther |
int |
getHouseholdsComprisingOtherThanOneFamilyWithDependentChildren()
Returns a copy of this.householdsComprisingOtherThanOneFamilyWithDependentChildren |
long |
getSizeInBytes()
Returns the size of this Record in bytes as a long. |
protected void |
init(CASKS020DataRecord cASKS020Record)
Initialises all fields from those in cASKS020Record. |
protected void |
initZero()
Initialise 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 allHouseholds
protected int householdsComprisingOnePensioner
protected int householdsComprisingOnePersonOtherThanPensioner
protected int householdsComprisingOneFamilyAndNoOthersAllPensioners
protected int householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsNoChildren
protected int householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsWithDependentChildren
protected int householdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsAllChildrenNonDependent
protected int householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsNoChildren
protected int householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsWithDependentChildren
protected int householdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsAllChildrenNonDependent
protected int householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsWithDependentChildren
protected int householdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsAllChildrenNonDependent
protected int householdsComprisingOtherThanOneFamilyWithDependentChildren
protected int householdsComprisingOtherThanOneFamilyAllStudent
protected int householdsComprisingOtherThanOneFamilyAllPensioner
protected int householdsComprisingOtherThanOneFamilyOther
Constructor Detail |
---|
public CASKS020DataRecord()
public CASKS020DataRecord(CASKS020DataRecord aCASKS020Record)
aCASKS020Record
- The CASKS020Record from which this is cloned.public CASKS020DataRecord(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 CASKS020DataRecord(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(CASKS020DataRecord cASKS020Record)
cASKS020Record
- The CASKS020Record 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 getAllHouseholds()
public int getHouseholdsComprisingOnePensioner()
public int getHouseholdsComprisingOnePersonOtherThanPensioner()
public int getHouseholdsComprisingOneFamilyAndNoOthersAllPensioners()
public int getHouseholdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsNoChildren()
public int getHouseholdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsWithDependentChildren()
public int getHouseholdsComprisingOneFamilyAndNoOthersMarriedCoupleHouseholdsAllChildrenNonDependent()
public int getHouseholdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsNoChildren()
public int getHouseholdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsWithDependentChildren()
public int getHouseholdsComprisingOneFamilyAndNoOthersCohabitingCoupleHouseholdsAllChildrenNonDependent()
public int getHouseholdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsWithDependentChildren()
public int getHouseholdsComprisingOneFamilyAndNoOthersLoneParentHouseholdsAllChildrenNonDependent()
public int getHouseholdsComprisingOtherThanOneFamilyWithDependentChildren()
public int getHouseholdsComprisingOtherThanOneFamilyAllStudent()
public int getHouseholdsComprisingOtherThanOneFamilyAllPensioner()
public int getHouseholdsComprisingOtherThanOneFamilyOther()
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 CASKS020DataRecord aggregate(CASKS020DataRecord aCASKS020DataRecord)
aCASKS020DataRecord
- The CASKS020DataRecord
to be aggregated with
this
.
CASKS020DataRecord
where:
RecordID = this.RecordID
Zone_Code = this.Zone_Code
For aggregating
CASKS020DataRecords
. 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 CASKS020DataRecord aggregate(CASKS020DataRecord aCASKS020DataRecord, long newRecordID, char[] newZone_Code)
aCASKS020DataRecord
- The CASKS020DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
CASKS020DataRecord
where:
RecordID = newRecordID
Zone_Code = newZone_Code
For aggregating
CASKS020DataRecords
. 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 |