uk.ac.leeds.ccg.andyt.projects.moses.io
Class CASKS013DataRecord

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord
      extended by uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord
          extended by uk.ac.leeds.ccg.andyt.projects.moses.io.CASKS013DataRecord
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CASKS013DataRecord
extends AbstractCASDataRecord

For representing CAS KS013 Records and providing safe access to the data.

See Also:
Serialized Form

Field Summary
protected  int _AllPeopleAged16to74
          Table KS013 Qualifications and students: All people aged 16-74 NB: This table contains counts of Persons Footnotes and Comments for Table KS013 for England and Wales 1 1+ 'O' level passes, 1+ CSE/GCSE any grades, NVQ level 1, Foundation GNVQ.
protected  int _FullTimeStudentsAged18to74EconomicallyActiveInEmployment
           
protected  int _FullTimeStudentsAged18to74EconomicallyActiveUnemployed
           
protected  int _FullTimeStudentsAged18to74EconomicallyInactive
           
protected  int _FullTimeStudentsAndSchoolchildrenAged16to17
           
protected  int _FullTimeStudentsAndSchoolchildrenAged18to74
           
protected  int _PeopleAged16to74WithHighestQualificationAttainedLevel1
           
protected  int _PeopleAged16to74WithHighestQualificationAttainedLevel2
           
protected  int _PeopleAged16to74WithHighestQualificationAttainedLevel3
           
protected  int _PeopleAged16to74WithHighestQualificationAttainedLevel4and5
           
protected  int _PeopleAged16to74WithNoQualifications
           
 
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
CASKS013DataRecord()
          Creates a new CASKS013Record
CASKS013DataRecord(CASKS013DataRecord aCASKS013Record)
          Creates a new CASKS013Record cloned from aCASKS013Record
CASKS013DataRecord(long RecordID, java.lang.String line, java.lang.String country)
          Creates a new CASKS013DataRecord
CASKS013DataRecord(java.io.RandomAccessFile aRandomAccessFile)
          Creates a new CASKS013Record
 
Method Summary
protected  void _Init()
          Initialise.
 CASKS013DataRecord aggregate(CASKS013DataRecord aCASKS013DataRecord)
           
 CASKS013DataRecord aggregate(CASKS013DataRecord aCASKS013DataRecord, long newRecordID, char[] newZone_Code)
           
 int get_AllPeopleAged16to74()
          Returns a copy of this._AllPeopleAged16to74
 int get_FullTimeStudentsAged18to74EconomicallyActiveInEmployment()
          Returns a copy of this._FullTimeStudentsAged18to74EconomicallyActiveInEmployment
 int get_FullTimeStudentsAged18to74EconomicallyActiveUnemployed()
          Returns a copy of this._FullTimeStudentsAged18to74EconomicallyActiveUnemployed
 int get_FullTimeStudentsAged18to74EconomicallyInactive()
          Returns a copy of this._FullTimeStudentsAged18to74EconomicallyInactive
 int get_FullTimeStudentsAndSchoolchildrenAged16to17()
          Returns a copy of this._FullTimeStudentsAndSchoolchildrenAged16to17
 int get_FullTimeStudentsAndSchoolchildrenAged18to74()
          Returns a copy of this._FullTimeStudentsAndSchoolchildrenAged18to74
 int get_PeopleAged16to74WithHighestQualificationAttainedLevel1()
          Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel1
 int get_PeopleAged16to74WithHighestQualificationAttainedLevel2()
          Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel2
 int get_PeopleAged16to74WithHighestQualificationAttainedLevel3()
          Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel3
 int get_PeopleAged16to74WithHighestQualificationAttainedLevel4and5()
          Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel4and5
 int get_PeopleAged16to74WithNoQualifications()
          Returns a copy of this._PeopleAged16to74WithNoQualifications
 long getSizeInBytes()
          Returns the size of this Record in bytes as a long.
protected  void init(CASKS013DataRecord _CASKS013Record)
          Initialises all fields from those in cASKS013Record.
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

_AllPeopleAged16to74

protected int _AllPeopleAged16to74
Table KS013 Qualifications and students: All people aged 16-74 NB: This table contains counts of Persons Footnotes and Comments for Table KS013 for England and Wales 1 1+ 'O' level passes, 1+ CSE/GCSE any grades, NVQ level 1, Foundation GNVQ. 2 5+ 'O' level passes, 5+ CSEs (grade 1), 5+ GCSEs (grades A-C), School Certificate, 1+ 'A' levels/'AS' levels, NVQ level 2, Intermediate GNVQ. 3 2+ 'A' levels, 4+ 'AS' levels, Higher School Certificate, NVQ level 3, Advanced GNVQ. 4 First degree, Higher degree, NVQ levels 4 and 5, HNC, HND, Qualified Teacher Status, Qualified Medical Doctor, Qualified Dentist, Qualified Nurse, Midwife, Heath Visitor. Footnotes and Comments for Table KS013 for Scotland 1 Highest level of Qualification is defined as: Group 1: 'O' Grade, Standard Grade, Intermediate 1, Intermediate 2, City and Guilds Craft, SVQ level 1 or 2, or equivalent. Group 2: Higher Grade, CSYS, ONC, OND, City and Guilds Advanced Craft, RSA Advanced Diploma, SVQ level 3 or equivalent. Group 3: HND, HNC, RSA Higher Diploma, SVQ level 4 or 5, or equivalent. Group 4: First degree, Higher Degree, Professional Qualification. CDU Note Users should note that there is a slight difference between the Key Statistics data available at Census Area Statistics Postcode Sector (CASPCS) level available from Casweb, and that available in percentage form from GROS, via SuperTABLE CD, or from the SCROL website. In all available versions of the Scottish Standard Tables and Census Area Statistics, the GROS Output Area to Higher Area Index, AND THE VERSION OF THE KEY STATISTICS AVAILABLE FROM CASWEB, output area 60QP002440 is assigned to CASPCS QPC23 (postcode sector EH14 4). In the version of the Key Statistics available from GROS via SuperTABLE CD, or from the SCROL website, output area 60QP002440 is assigned to CASPCS QPC24 (postcode sector EH14 5). The CDU are awaiting further information from GROS about the assignment of output area 60QP002440. Footnotes and Comments for Table KS013 for Northern Ireland 1 GCSE (grades D-G), CSE (grades 2-5), 1-4 CSEs (grade 1), 1-4 GCSEs (grades A-C), 1-4 'O' level passes, NVQ level 1, GNVQ Foundation or equivalents. 2 5+ CSEs (grade 1), 5+ GCSEs (grades A-C), 5+ 'O' level passes, Senior Certificate, 1 'A' level, 1-3 AS levels, Advanced Senior Certificate, NVQ level 2, GNVQ Intermediate or equivalents. 3 2+ 'A' levels, 4+ AS levels, NVQ level 3, GNVQ Advanced or equivalents. 4 First degree, NVQ level 4, HNC, HND or equivalents. 5 Higher degree, NVQ level 5 or equivalents. 6 All students and schoolchildren are counted at their term-time address.


_PeopleAged16to74WithNoQualifications

protected int _PeopleAged16to74WithNoQualifications

_PeopleAged16to74WithHighestQualificationAttainedLevel1

protected int _PeopleAged16to74WithHighestQualificationAttainedLevel1

_PeopleAged16to74WithHighestQualificationAttainedLevel2

protected int _PeopleAged16to74WithHighestQualificationAttainedLevel2

_PeopleAged16to74WithHighestQualificationAttainedLevel3

protected int _PeopleAged16to74WithHighestQualificationAttainedLevel3

_PeopleAged16to74WithHighestQualificationAttainedLevel4and5

protected int _PeopleAged16to74WithHighestQualificationAttainedLevel4and5

_FullTimeStudentsAndSchoolchildrenAged16to17

protected int _FullTimeStudentsAndSchoolchildrenAged16to17

_FullTimeStudentsAndSchoolchildrenAged18to74

protected int _FullTimeStudentsAndSchoolchildrenAged18to74

_FullTimeStudentsAged18to74EconomicallyActiveInEmployment

protected int _FullTimeStudentsAged18to74EconomicallyActiveInEmployment

_FullTimeStudentsAged18to74EconomicallyActiveUnemployed

protected int _FullTimeStudentsAged18to74EconomicallyActiveUnemployed

_FullTimeStudentsAged18to74EconomicallyInactive

protected int _FullTimeStudentsAged18to74EconomicallyInactive
Constructor Detail

CASKS013DataRecord

public CASKS013DataRecord()
Creates a new CASKS013Record


CASKS013DataRecord

public CASKS013DataRecord(CASKS013DataRecord aCASKS013Record)
Creates a new CASKS013Record cloned from aCASKS013Record

Parameters:
aCASKS013Record - The CASKS013Record from which this is cloned.

CASKS013DataRecord

public CASKS013DataRecord(long RecordID,
                          java.lang.String line,
                          java.lang.String country)
                   throws java.io.IOException
Creates a new CASKS013DataRecord

Parameters:
RecordID - The RecordID to be assigned to this
line - The Comma Seperated Value String
Throws:
java.io.IOException

CASKS013DataRecord

public CASKS013DataRecord(java.io.RandomAccessFile aRandomAccessFile)
                   throws java.io.IOException
Creates a new CASKS013Record

Parameters:
aRandomAccessFile -
Throws:
java.io.IOException
Method Detail

_Init

protected void _Init()
Initialise.

Overrides:
_Init in class AbstractCASDataRecord

initZero

protected void initZero()
Initialise to zero.


init

protected void init(CASKS013DataRecord _CASKS013Record)
Initialises all fields from those in cASKS013Record.

Parameters:
_CASKS013Record - The CASKS013Record thats fields are used to initialise this.

toString

public java.lang.String toString()
Returns a string description of this;

Overrides:
toString in class AbstractCASDataRecord
Returns:
A String description of this.

toCSVString

public java.lang.String toCSVString()
Overrides:
toCSVString in class AbstractCASDataRecord
Returns:
A Comma Seperated Version (CSV) String of the values of the Fields of this.

toCSVStringFields

public java.lang.String toCSVStringFields()
Overrides:
toCSVStringFields in class AbstractCASDataRecord
Returns:
A Comma Seperated Version (CSV) String of the names of the Fields of this

get_AllPeopleAged16to74

public int get_AllPeopleAged16to74()
Returns a copy of this._AllPeopleAged16to74


get_PeopleAged16to74WithNoQualifications

public int get_PeopleAged16to74WithNoQualifications()
Returns a copy of this._PeopleAged16to74WithNoQualifications


get_PeopleAged16to74WithHighestQualificationAttainedLevel1

public int get_PeopleAged16to74WithHighestQualificationAttainedLevel1()
Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel1


get_PeopleAged16to74WithHighestQualificationAttainedLevel2

public int get_PeopleAged16to74WithHighestQualificationAttainedLevel2()
Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel2


get_PeopleAged16to74WithHighestQualificationAttainedLevel3

public int get_PeopleAged16to74WithHighestQualificationAttainedLevel3()
Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel3


get_PeopleAged16to74WithHighestQualificationAttainedLevel4and5

public int get_PeopleAged16to74WithHighestQualificationAttainedLevel4and5()
Returns a copy of this._PeopleAged16to74WithHighestQualificationAttainedLevel4and5


get_FullTimeStudentsAndSchoolchildrenAged16to17

public int get_FullTimeStudentsAndSchoolchildrenAged16to17()
Returns a copy of this._FullTimeStudentsAndSchoolchildrenAged16to17


get_FullTimeStudentsAndSchoolchildrenAged18to74

public int get_FullTimeStudentsAndSchoolchildrenAged18to74()
Returns a copy of this._FullTimeStudentsAndSchoolchildrenAged18to74


get_FullTimeStudentsAged18to74EconomicallyActiveInEmployment

public int get_FullTimeStudentsAged18to74EconomicallyActiveInEmployment()
Returns a copy of this._FullTimeStudentsAged18to74EconomicallyActiveInEmployment


get_FullTimeStudentsAged18to74EconomicallyActiveUnemployed

public int get_FullTimeStudentsAged18to74EconomicallyActiveUnemployed()
Returns a copy of this._FullTimeStudentsAged18to74EconomicallyActiveUnemployed


get_FullTimeStudentsAged18to74EconomicallyInactive

public int get_FullTimeStudentsAged18to74EconomicallyInactive()
Returns a copy of this._FullTimeStudentsAged18to74EconomicallyInactive


write

public void write(java.io.RandomAccessFile aRandomAccessFile)
Writes this to aRandomAccessFile at the current position.

Overrides:
write in class AbstractCASDataRecord
Parameters:
aRandomAccessFile - The RandomAccessFile this is written to.
See Also:
AbstractDataRecord.write(RandomAccessFile)

write

public void write(java.io.RandomAccessFile aRandomAccessFile,
                  boolean avoidCallToSuper)
Writes this to aRandomAccessFile at the current position.

Parameters:
aRandomAccessFile - The RandomAccessFile this is written to.
avoidCallToSuper - If true super.write() is not called

aggregate

public CASKS013DataRecord aggregate(CASKS013DataRecord aCASKS013DataRecord)
Parameters:
aCASKS013DataRecord - The CASKS013DataRecord to be aggregated with this.
Returns:
An aggregated CASKS013DataRecord where: RecordID = this.RecordID Zone_Code = this.Zone_Code For aggregating CASKS013DataRecords. 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).

aggregate

public CASKS013DataRecord aggregate(CASKS013DataRecord aCASKS013DataRecord,
                                    long newRecordID,
                                    char[] newZone_Code)
Parameters:
aCASKS013DataRecord - The CASKS013DataRecord to be aggregated with this.
newRecordID - The RecordID assigned to result.
newZone_Code - The Zone_Code assigned to result.
Returns:
An aggregated CASKS013DataRecord where: RecordID = newRecordID Zone_Code = newZone_Code For aggregating CASKS013DataRecords. 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).

getSizeInBytes

public long getSizeInBytes()
Returns the size of this Record in bytes as a long. This does not account for serialVersionUID. A boolean is assumed to be the same size as an int in bytes.

Overrides:
getSizeInBytes in class AbstractCASDataRecord
Returns:
The size (in bytes) of this as a long. This does not account for the private Fields serialVersionUID.