|
||||||||||
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.CAS044DataRecord
public class CAS044DataRecord
A class
for representing a CAS044 Data Record and providing safe
access to the data.
CAS044DataHandler
,
Serialized FormField Summary | |
---|---|
protected int |
_AllHRPs
CS0440001 = _AllHRPs |
protected int |
_HRP_HigherManagerialAndProfessionalOccupations
CS0440012 = _HRP_HigherManagerialAndProfessionalOccupations |
protected int |
_HRP_IntermediateOccupations
CS0440034 = _HRP_IntermediateOccupations |
protected int |
_HRP_LowerManagerialAndProfessionalOccupations
CS0440023 = _HRP_LowerManagerialAndProfessionalOccupations |
protected int |
_HRP_LowerSupervisoryAndTechnicalOccupations
CS0440056 = _HRP_LowerSupervisoryAndTechnicalOccupations |
protected int |
_HRP_NeverWorkedOrLongTermUnemployed
CS0440089 = _HRP_NeverWorkedOrLongTermUnemployed |
protected int |
_HRP_NotClassified
CS0440100 = _HRP_NotClassified |
protected int |
_HRP_RoutineOccupations
CS0440078 = _HRP_RoutineOccupations |
protected int |
_HRP_SemiRoutineOccupations
CS0440067 = _HRP_SemiRoutineOccupations |
protected int |
_HRP_SmallEmployersAndOwnAccountWorkers
CS0440045 = _HRP_SmallEmployersAndOwnAccountWorkers |
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 | |
---|---|
CAS044DataRecord()
Creates a new CAS044Record |
|
CAS044DataRecord(boolean initZero)
Creates a new CAS044Record |
|
CAS044DataRecord(CAS044DataRecord CAS044Record)
Creates a new CAS044Record cloned from CAS044Record |
|
CAS044DataRecord(long RecordID,
java.lang.String line)
Creates a new CAS044DataRecord |
|
CAS044DataRecord(java.io.RandomAccessFile aRandomAccessFile)
Creates a new CAS044DataRecord from
aRandomAccessFile . |
Method Summary | |
---|---|
protected void |
_Init()
Initialises all fields. |
CAS044DataRecord |
aggregate(CAS044DataRecord aCAS044DataRecord)
|
CAS044DataRecord |
aggregate(CAS044DataRecord aCAS044DataRecord,
long newRecordID,
char[] newZone_Code)
|
int |
get_AllHRPs()
Returns a copy of this._AllHRPs |
int |
get_HRP_HigherManagerialAndProfessionalOccupations()
Returns a copy of this._HRP_HigherManagerialAndProfessionalOccupations |
int |
get_HRP_IntermediateOccupations()
Returns a copy of this._HRP_IntermediateOccupations |
int |
get_HRP_LowerManagerialAndProfessionalOccupations()
Returns a copy of this._HRP_LowerManagerialAndProfessionalOccupations |
int |
get_HRP_LowerSupervisoryAndTechnicalOccupations()
Returns a copy of this._HRP_LowerSupervisoryAndTechnicalOccupations |
int |
get_HRP_NeverWorkedOrLongTermUnemployed()
Returns a copy of this._HRP_NeverWorkedOrLongTermUnemployed |
int |
get_HRP_NotClassified()
Returns a copy of this._HRP_NotClassified |
int |
get_HRP_RoutineOccupations()
Returns a copy of this._HRP_RoutineOccupations |
int |
get_HRP_SemiRoutineOccupations()
Returns a copy of this._HRP_SemiRoutineOccupations |
int |
get_HRP_SmallEmployersAndOwnAccountWorkers()
Returns a copy of this._HRP_SmallEmployersAndOwnAccountWorkers |
long |
getSizeInBytes()
Returns the size of this CAS044DataRecord in bytes as a long. |
protected void |
init(CAS044DataRecord aCAS044DataRecord)
Initialises from aCAS044DataRecord . |
protected void |
initZero()
Initialises all fields as 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 _AllHRPs
protected int _HRP_HigherManagerialAndProfessionalOccupations
protected int _HRP_LowerManagerialAndProfessionalOccupations
protected int _HRP_IntermediateOccupations
protected int _HRP_SmallEmployersAndOwnAccountWorkers
protected int _HRP_LowerSupervisoryAndTechnicalOccupations
protected int _HRP_SemiRoutineOccupations
protected int _HRP_RoutineOccupations
protected int _HRP_NeverWorkedOrLongTermUnemployed
protected int _HRP_NotClassified
Constructor Detail |
---|
public CAS044DataRecord()
public CAS044DataRecord(CAS044DataRecord CAS044Record)
CAS044Record
- The CAS044Record from which this is cloned.public CAS044DataRecord(boolean initZero)
initZero
- To ensure initZero() is used instead of _Init()public CAS044DataRecord(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 CAS044DataRecord(java.io.RandomAccessFile aRandomAccessFile) throws java.io.IOException
CAS044DataRecord
from
aRandomAccessFile
. The
aRandomAccessFile.getFilePointer()
changes only as the
CAS044DataRecord
is read.
aRandomAccessFile
- The RandomAccessFile
from which this is created.
java.io.IOException
Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
protected void initZero()
protected void init(CAS044DataRecord aCAS044DataRecord)
aCAS044DataRecord
.
aCAS044DataRecord
- The CAS044DataRecord
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 get_AllHRPs()
public int get_HRP_HigherManagerialAndProfessionalOccupations()
public int get_HRP_LowerManagerialAndProfessionalOccupations()
public int get_HRP_IntermediateOccupations()
public int get_HRP_SmallEmployersAndOwnAccountWorkers()
public int get_HRP_LowerSupervisoryAndTechnicalOccupations()
public int get_HRP_SemiRoutineOccupations()
public int get_HRP_RoutineOccupations()
public int get_HRP_NeverWorkedOrLongTermUnemployed()
public int get_HRP_NotClassified()
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 CAS044DataRecord aggregate(CAS044DataRecord aCAS044DataRecord)
aCAS044DataRecord
- The CAS044DataRecord
to be aggregated with
this
.
CAS044DataRecord
where:
RecordID = this.RecordID
Zone_Code = this.Zone_Code
For aggregating
CAS044DataRecords
. 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 CAS044DataRecord aggregate(CAS044DataRecord aCAS044DataRecord, long newRecordID, char[] newZone_Code)
aCAS044DataRecord
- The CAS044DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
CAS044DataRecord
where:
RecordID = newRecordID
Zone_Code = newZone_Code
For aggregating
CAS044DataRecords
. 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 |