|
||||||||||
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.CASKS023DataRecord
public class CASKS023DataRecord
For representing CAS KS023 Records and providing safe access to the data.
Field Summary | |
---|---|
protected int |
allCommunalEstablishments
KS0230001 = allCommunalEstablishments |
protected int |
numberOfResidents
KS0230002 = householdsComprisingOnePensioner |
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 | |
---|---|
CASKS023DataRecord()
Creates a new CASKS023Record |
|
CASKS023DataRecord(CASKS023DataRecord cASKS023Record)
Creates a new CASKS023Record cloned from cASKS023Record |
|
CASKS023DataRecord(long RecordID,
java.lang.String line)
Creates a new CASKS023DataRecord |
|
CASKS023DataRecord(java.io.RandomAccessFile aRandomAccessFile)
Creates a new CASKS017Record |
Method Summary | |
---|---|
protected void |
_Init()
Initialises all fields. |
CASKS023DataRecord |
aggregate(CASKS023DataRecord aCASKS023DataRecord)
|
CASKS023DataRecord |
aggregate(CASKS023DataRecord aCASKS023DataRecord,
long newRecordID,
char[] newZone_Code)
|
int |
getAllCommunalEstablishments()
Returns a copy of this.allCommunalEstablishments |
int |
getNumberOfResidents()
Returns a copy of this.numberOfResidents |
long |
getSizeInBytes()
Returns the size of this Record in bytes as a long. |
protected void |
init(CASKS023DataRecord cASKS023Record)
Initialises all fields from those in cASKS023Record. |
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 allCommunalEstablishments
protected int numberOfResidents
Constructor Detail |
---|
public CASKS023DataRecord()
public CASKS023DataRecord(CASKS023DataRecord cASKS023Record)
cASKS023Record
- The CASKS023Record from which this is cloned.public CASKS023DataRecord(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 CASKS023DataRecord(java.io.RandomAccessFile aRandomAccessFile) throws java.io.IOException
aRandomAccessFile
-
java.io.IOException
Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
protected void init(CASKS023DataRecord cASKS023Record)
cASKS023Record
- The CASKS023Record 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 getAllCommunalEstablishments()
public int getNumberOfResidents()
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 CASKS023DataRecord aggregate(CASKS023DataRecord aCASKS023DataRecord)
aCASKS023DataRecord
- The CASKS023DataRecord
to be aggregated with
this
.
CASKS023DataRecord
where:
RecordID = this.RecordID
Zone_Code = this.Zone_Code
For aggregating
CASKS023DataRecords
. 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 CASKS023DataRecord aggregate(CASKS023DataRecord aCASKS023DataRecord, long newRecordID, char[] newZone_Code)
aCASKS023DataRecord
- The CASKS023DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
CASKS023DataRecord
where:
RecordID = newRecordID
Zone_Code = newZone_Code
For aggregating
CASKS023DataRecords
. 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 |