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

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.CASKS14cDataRecord
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CASKS14cDataRecord
extends AbstractCASDataRecord

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

See Also:
Serialized Form

Field Summary
protected  int femalesAged16to74
          KS014c0001 = femalesAged16to74
protected  int femalesAged16to74FullTimeStudents
          KS014c0012 = femalesAged16to74FullTimeStudents
protected  int femalesAged16to74HigherProfessionalOccupations
          KS014c0003 = femalesAged16to74HigherProfessionalOccupations
protected  int femalesAged16to74IntermediateOccupations
          KS014c0005 = femalesAged16to74IntermediateOccupations
protected  int femalesAged16to74LargeEmployersAndHigherManagerialOccupations
          KS014c0002 = femalesAged16to74LargeEmployersAndHigherManagerialOccupations
protected  int femalesAged16to74LongTermUnemployed
          KS014c0011 = femalesAged16to74LongTermUnemployed
protected  int femalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate
          KS014c0004 = femalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate
protected  int femalesAged16to74LowerSupervisoryAndTechnicalOccupations
          KS014c0007 = femalesAged16to74LowerSupervisoryAndTechnicalOccupations
protected  int femalesAged16to74NeverWorked
          KS014c0010 = femalesAged16to74NeverWorked
protected  int femalesAged16to74RoutineOccupations
          KS014c0009 = femalesAged16to74RoutineOccupations
protected  int femalesAged16to74SemiRoutineOccupations
          KS014c014c = femalesAged16to74SemiRoutineOccupations
protected  int femalesAged16to74SmallEmployersAndOwnAccountWorkers
          KS014c0006 = femalesAged16to74SmallEmployersAndOwnAccountWorkers
 
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
CASKS14cDataRecord()
          Creates a new CASKS14cRecord
CASKS14cDataRecord(CASKS14cDataRecord aCASKS14cRecord)
          Creates a new CASKS14cRecord cloned from aCASKS14cRecord
CASKS14cDataRecord(long RecordID, java.lang.String line)
          Creates a new CASKS14cDataRecord
CASKS14cDataRecord(java.io.RandomAccessFile aRandomAccessFile)
          Creates a new CASKS14cRecord
 
Method Summary
protected  void _Init()
          Initialises all fields.
 CASKS14cDataRecord aggregate(CASKS14cDataRecord aCASKS14cDataRecord)
           
 CASKS14cDataRecord aggregate(CASKS14cDataRecord aCASKS14cDataRecord, long newRecordID, char[] newZone_Code)
           
 int getFemalesAged16to74()
          Returns a copy of this.femalesAged16to74
 int getFemalesAged16to74FullTimeStudents()
          Returns a copy of this.femalesAged16to74FullTimeStudents
 int getFemalesAged16to74HigherProfessionalOccupations()
          Returns a copy of this.femalesAged16to74HigherProfessionalOccupations
 int getFemalesAged16to74IntermediateOccupations()
          Returns a copy of this.femalesAged16to74IntermediateOccupations
 int getFemalesAged16to74LargeEmployersAndHigherManagerialOccupations()
          Returns a copy of this.femalesAged16to74LargeEmployersAndHigherManagerialOccupations
 int getFemalesAged16to74LongTermUnemployed()
          Returns a copy of this.femalesAged16to74LongTermUnemployed
 int getFemalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate()
          Returns a copy of this.
 int getFemalesAged16to74LowerSupervisoryAndTechnicalOccupations()
          Returns a copy of this.femalesAged16to74LowerSupervisoryAndTechnicalOccupations
 int getFemalesAged16to74NeverWorked()
          Returns a copy of this.femalesAged16to74NeverWorked
 int getFemalesAged16to74RoutineOccupations()
          Returns a copy of this.femalesAged16to74RoutineOccupations
 int getFemalesAged16to74SemiRoutineOccupations()
          Returns a copy of this.femalesAged16to74SemiRoutineOccupations
 int getFemalesAged16to74SmallEmployersAndOwnAccountWorkers()
          Returns a copy of this.femalesAged16to74SmallEmployersAndOwnAccountWorkers
 long getSizeInBytes()
          Returns the size of this CASKS14cRecord in bytes as a long.
protected  void init(CASKS14cDataRecord cASKS14cRecord)
          Initialises all fields from those in cASKS14cRecord.
 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

femalesAged16to74

protected int femalesAged16to74
KS014c0001 = femalesAged16to74


femalesAged16to74LargeEmployersAndHigherManagerialOccupations

protected int femalesAged16to74LargeEmployersAndHigherManagerialOccupations
KS014c0002 = femalesAged16to74LargeEmployersAndHigherManagerialOccupations


femalesAged16to74HigherProfessionalOccupations

protected int femalesAged16to74HigherProfessionalOccupations
KS014c0003 = femalesAged16to74HigherProfessionalOccupations


femalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate

protected int femalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate
KS014c0004 = femalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate


femalesAged16to74IntermediateOccupations

protected int femalesAged16to74IntermediateOccupations
KS014c0005 = femalesAged16to74IntermediateOccupations


femalesAged16to74SmallEmployersAndOwnAccountWorkers

protected int femalesAged16to74SmallEmployersAndOwnAccountWorkers
KS014c0006 = femalesAged16to74SmallEmployersAndOwnAccountWorkers


femalesAged16to74LowerSupervisoryAndTechnicalOccupations

protected int femalesAged16to74LowerSupervisoryAndTechnicalOccupations
KS014c0007 = femalesAged16to74LowerSupervisoryAndTechnicalOccupations


femalesAged16to74SemiRoutineOccupations

protected int femalesAged16to74SemiRoutineOccupations
KS014c014c = femalesAged16to74SemiRoutineOccupations


femalesAged16to74RoutineOccupations

protected int femalesAged16to74RoutineOccupations
KS014c0009 = femalesAged16to74RoutineOccupations


femalesAged16to74NeverWorked

protected int femalesAged16to74NeverWorked
KS014c0010 = femalesAged16to74NeverWorked


femalesAged16to74LongTermUnemployed

protected int femalesAged16to74LongTermUnemployed
KS014c0011 = femalesAged16to74LongTermUnemployed


femalesAged16to74FullTimeStudents

protected int femalesAged16to74FullTimeStudents
KS014c0012 = femalesAged16to74FullTimeStudents

Constructor Detail

CASKS14cDataRecord

public CASKS14cDataRecord()
Creates a new CASKS14cRecord


CASKS14cDataRecord

public CASKS14cDataRecord(CASKS14cDataRecord aCASKS14cRecord)
Creates a new CASKS14cRecord cloned from aCASKS14cRecord

Parameters:
aCASKS14cRecord - The CASKS14cRecord from which this is cloned.

CASKS14cDataRecord

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

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

CASKS14cDataRecord

public CASKS14cDataRecord(java.io.RandomAccessFile aRandomAccessFile)
                   throws java.io.IOException
Creates a new CASKS14cRecord

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

_Init

protected void _Init()
Initialises all fields.

Overrides:
_Init in class AbstractCASDataRecord

init

protected void init(CASKS14cDataRecord cASKS14cRecord)
Initialises all fields from those in cASKS14cRecord.

Parameters:
cASKS14cRecord - The CASKS14cRecord 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

getFemalesAged16to74

public int getFemalesAged16to74()
Returns a copy of this.femalesAged16to74


getFemalesAged16to74LargeEmployersAndHigherManagerialOccupations

public int getFemalesAged16to74LargeEmployersAndHigherManagerialOccupations()
Returns a copy of this.femalesAged16to74LargeEmployersAndHigherManagerialOccupations


getFemalesAged16to74HigherProfessionalOccupations

public int getFemalesAged16to74HigherProfessionalOccupations()
Returns a copy of this.femalesAged16to74HigherProfessionalOccupations


getFemalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate

public int getFemalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate()
Returns a copy of this. femalesAged16to74LowerManagerialAndProfessionalOccupationsIntermediate


getFemalesAged16to74IntermediateOccupations

public int getFemalesAged16to74IntermediateOccupations()
Returns a copy of this.femalesAged16to74IntermediateOccupations


getFemalesAged16to74SmallEmployersAndOwnAccountWorkers

public int getFemalesAged16to74SmallEmployersAndOwnAccountWorkers()
Returns a copy of this.femalesAged16to74SmallEmployersAndOwnAccountWorkers


getFemalesAged16to74LowerSupervisoryAndTechnicalOccupations

public int getFemalesAged16to74LowerSupervisoryAndTechnicalOccupations()
Returns a copy of this.femalesAged16to74LowerSupervisoryAndTechnicalOccupations


getFemalesAged16to74SemiRoutineOccupations

public int getFemalesAged16to74SemiRoutineOccupations()
Returns a copy of this.femalesAged16to74SemiRoutineOccupations


getFemalesAged16to74RoutineOccupations

public int getFemalesAged16to74RoutineOccupations()
Returns a copy of this.femalesAged16to74RoutineOccupations


getFemalesAged16to74NeverWorked

public int getFemalesAged16to74NeverWorked()
Returns a copy of this.femalesAged16to74NeverWorked


getFemalesAged16to74LongTermUnemployed

public int getFemalesAged16to74LongTermUnemployed()
Returns a copy of this.femalesAged16to74LongTermUnemployed


getFemalesAged16to74FullTimeStudents

public int getFemalesAged16to74FullTimeStudents()
Returns a copy of this.femalesAged16to74FullTimeStudents


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