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

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

public class CASKS09cDataRecord
extends AbstractCASDataRecord

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

See Also:
Serialized Form

Field Summary
protected  int femalesAged16to24Unemployed
          KS009c0012 = femalesAged16to24Unemployed
protected  int femalesAged16to74
          KS009c0001 = femalesAged16to74
protected  int femalesAged16to74EconomicallyActiveEmployeesFullTime
          KS009c0003 = femalesAged16to74EconomicallyActiveEmployeesFullTime
protected  int femalesAged16to74EconomicallyActiveEmployeesPartTime
          KS009c0002 = femalesAged16to74EconomicallyActiveEmployeesPartTime
protected  int femalesAged16to74EconomicallyActiveFullTimeStudent
          KS009c0006 = femalesAged16to74EconomicallyActiveFullTimeStudent
protected  int femalesAged16to74EconomicallyActiveSelfEmployed
          KS009c0004 = femalesAged16to74EconomicallyActiveSelfEmployed
protected  int femalesAged16to74EconomicallyActiveUnemployed
          KS009c0005 = femalesAged16to74EconomicallyActiveUnemployed
protected  int femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
          KS009c0009 = femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
protected  int femalesAged16to74EconomicallyInactiveOther
          KS009c0011 = femalesAged16to74EconomicallyInactiveOther
protected  int femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled
          KS009c0010 = femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled
protected  int femalesAged16to74EconomicallyInactiveRetired
          KS009c0007 = femalesAged16to74EconomicallyInactiveRetired
protected  int femalesAged16to74EconomicallyInactiveStudent
          KS009c009c = femalesAged16to74EconomicallyInactiveStudent
protected  int femalesAged16to74UnemployedWhoHaveNeverWorked
          KS009c0014 = femalesAged16to74UnemployedWhoHaveNeverWorked
protected  int femalesAged16to74WhoAreLongTermUnemployed
          KS009c0015 = femalesAged16to74WhoAreLongTermUnemployed
protected  int femalesAged50AndOverUnemployed
          KS009c0013 = femalesAged50AndOverUnemployed
 
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
CASKS09cDataRecord()
          Creates a new CASKS09cRecord
CASKS09cDataRecord(boolean initZero)
          Creates a new CASKS09cRecord
CASKS09cDataRecord(CASKS09cDataRecord cASKS09cRecord)
          Creates a new CASKS09cRecord cloned from cASKS09cRecord
CASKS09cDataRecord(long RecordID, java.lang.String line)
          Creates a new CASKS09cDataRecord
CASKS09cDataRecord(java.io.RandomAccessFile aRandomAccessFile)
          Creates a new CASKS09cRecord
 
Method Summary
protected  void _Init()
          Initialises all fields.
 CASKS09cDataRecord aggregate(CASKS09cDataRecord aCASKS09cDataRecord)
          User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used.
 CASKS09cDataRecord aggregate(CASKS09cDataRecord aCASKS09cDataRecord, long newRecordID, char[] newZone_Code)
          User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used.
 int getFemalesAged16to24Unemployed()
          Returns a copy of this.femalesAged16to24Unemployed
 int getFemalesAged16to74()
          Returns a copy of this.femalesAged16to74
 int getFemalesAged16to74EconomicallyActiveEmployeesFullTime()
          Returns a copy of this.femalesAged16to74EconomicallyActiveEmployeesFullTime
 int getFemalesAged16to74EconomicallyActiveEmployeesPartTime()
          Returns a copy of this.femalesAged16to74EconomicallyActiveEmployeesPartTime
 int getFemalesAged16to74EconomicallyActiveFullTimeStudent()
          Returns a copy of this.femalesAged16to74EconomicallyActiveFullTimeStudent
 int getFemalesAged16to74EconomicallyActiveSelfEmployed()
          Returns a copy of this.femalesAged16to74EconomicallyActiveSelfEmployed
 int getFemalesAged16to74EconomicallyActiveUnemployed()
          Returns a copy of this.femalesAged16to74EconomicallyActiveUnemployed
 int getFemalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily()
          Returns a copy of this.femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
 int getFemalesAged16to74EconomicallyInactiveOther()
          Returns a copy of this.femalesAged16to74EconomicallyInactiveOther
 int getFemalesAged16to74EconomicallyInactivePermanentlySickOrDisabled()
          Returns a copy of this.femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled
 int getFemalesAged16to74EconomicallyInactiveRetired()
          Returns a copy of this.femalesAged16to74EconomicallyInactiveRetired
 int getFemalesAged16to74UnemployedWhoHaveNeverWorked()
          Returns a copy of this.femalesAged16to74UnemployedWhoHaveNeverWorked
 int getFemalesAged16to74WhoAreLongTermUnemployed()
          Returns a copy of this.femalesAged16to74WhoAreLongTermUnemployed
 int getFemalesAged50AndOverUnemployed()
          Returns a copy of this.femalesAged50AndOverUnemployed
 long getSizeInBytes()
          Returns the size of this CASKS09cRecord in bytes as a long.
protected  void init(CASKS09cDataRecord cASKS09cRecord)
          Initialises all fields from those in cASKS09cRecord.
protected  void initZero()
          Initialises all fields.
 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
KS009c0001 = femalesAged16to74


femalesAged16to74EconomicallyActiveEmployeesPartTime

protected int femalesAged16to74EconomicallyActiveEmployeesPartTime
KS009c0002 = femalesAged16to74EconomicallyActiveEmployeesPartTime


femalesAged16to74EconomicallyActiveEmployeesFullTime

protected int femalesAged16to74EconomicallyActiveEmployeesFullTime
KS009c0003 = femalesAged16to74EconomicallyActiveEmployeesFullTime


femalesAged16to74EconomicallyActiveSelfEmployed

protected int femalesAged16to74EconomicallyActiveSelfEmployed
KS009c0004 = femalesAged16to74EconomicallyActiveSelfEmployed


femalesAged16to74EconomicallyActiveUnemployed

protected int femalesAged16to74EconomicallyActiveUnemployed
KS009c0005 = femalesAged16to74EconomicallyActiveUnemployed


femalesAged16to74EconomicallyActiveFullTimeStudent

protected int femalesAged16to74EconomicallyActiveFullTimeStudent
KS009c0006 = femalesAged16to74EconomicallyActiveFullTimeStudent


femalesAged16to74EconomicallyInactiveRetired

protected int femalesAged16to74EconomicallyInactiveRetired
KS009c0007 = femalesAged16to74EconomicallyInactiveRetired


femalesAged16to74EconomicallyInactiveStudent

protected int femalesAged16to74EconomicallyInactiveStudent
KS009c009c = femalesAged16to74EconomicallyInactiveStudent


femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily

protected int femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
KS009c0009 = femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily


femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled

protected int femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled
KS009c0010 = femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled


femalesAged16to74EconomicallyInactiveOther

protected int femalesAged16to74EconomicallyInactiveOther
KS009c0011 = femalesAged16to74EconomicallyInactiveOther


femalesAged16to24Unemployed

protected int femalesAged16to24Unemployed
KS009c0012 = femalesAged16to24Unemployed


femalesAged50AndOverUnemployed

protected int femalesAged50AndOverUnemployed
KS009c0013 = femalesAged50AndOverUnemployed


femalesAged16to74UnemployedWhoHaveNeverWorked

protected int femalesAged16to74UnemployedWhoHaveNeverWorked
KS009c0014 = femalesAged16to74UnemployedWhoHaveNeverWorked


femalesAged16to74WhoAreLongTermUnemployed

protected int femalesAged16to74WhoAreLongTermUnemployed
KS009c0015 = femalesAged16to74WhoAreLongTermUnemployed

Constructor Detail

CASKS09cDataRecord

public CASKS09cDataRecord()
Creates a new CASKS09cRecord


CASKS09cDataRecord

public CASKS09cDataRecord(boolean initZero)
Creates a new CASKS09cRecord

Parameters:
initZero - To ensure initZero() is used instead of _Init()

CASKS09cDataRecord

public CASKS09cDataRecord(CASKS09cDataRecord cASKS09cRecord)
Creates a new CASKS09cRecord cloned from cASKS09cRecord

Parameters:
cASKS09cRecord - The CASKS09cRecord from which this is cloned.

CASKS09cDataRecord

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

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

CASKS09cDataRecord

public CASKS09cDataRecord(java.io.RandomAccessFile aRandomAccessFile)
                   throws java.io.IOException
Creates a new CASKS09cRecord

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

_Init

protected void _Init()
Initialises all fields.

Overrides:
_Init in class AbstractCASDataRecord

initZero

protected void initZero()
Initialises all fields.


init

protected void init(CASKS09cDataRecord cASKS09cRecord)
Initialises all fields from those in cASKS09cRecord.

Parameters:
cASKS09cRecord - The CASKS09cRecord 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


getFemalesAged16to74EconomicallyActiveEmployeesPartTime

public int getFemalesAged16to74EconomicallyActiveEmployeesPartTime()
Returns a copy of this.femalesAged16to74EconomicallyActiveEmployeesPartTime


getFemalesAged16to74EconomicallyActiveEmployeesFullTime

public int getFemalesAged16to74EconomicallyActiveEmployeesFullTime()
Returns a copy of this.femalesAged16to74EconomicallyActiveEmployeesFullTime


getFemalesAged16to74EconomicallyActiveSelfEmployed

public int getFemalesAged16to74EconomicallyActiveSelfEmployed()
Returns a copy of this.femalesAged16to74EconomicallyActiveSelfEmployed


getFemalesAged16to74EconomicallyActiveUnemployed

public int getFemalesAged16to74EconomicallyActiveUnemployed()
Returns a copy of this.femalesAged16to74EconomicallyActiveUnemployed


getFemalesAged16to74EconomicallyInactiveRetired

public int getFemalesAged16to74EconomicallyInactiveRetired()
Returns a copy of this.femalesAged16to74EconomicallyInactiveRetired


getFemalesAged16to74EconomicallyActiveFullTimeStudent

public int getFemalesAged16to74EconomicallyActiveFullTimeStudent()
Returns a copy of this.femalesAged16to74EconomicallyActiveFullTimeStudent


getFemalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily

public int getFemalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily()
Returns a copy of this.femalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily


getFemalesAged16to74EconomicallyInactivePermanentlySickOrDisabled

public int getFemalesAged16to74EconomicallyInactivePermanentlySickOrDisabled()
Returns a copy of this.femalesAged16to74EconomicallyInactivePermanentlySickOrDisabled


getFemalesAged16to74EconomicallyInactiveOther

public int getFemalesAged16to74EconomicallyInactiveOther()
Returns a copy of this.femalesAged16to74EconomicallyInactiveOther


getFemalesAged16to24Unemployed

public int getFemalesAged16to24Unemployed()
Returns a copy of this.femalesAged16to24Unemployed


getFemalesAged50AndOverUnemployed

public int getFemalesAged50AndOverUnemployed()
Returns a copy of this.femalesAged50AndOverUnemployed


getFemalesAged16to74UnemployedWhoHaveNeverWorked

public int getFemalesAged16to74UnemployedWhoHaveNeverWorked()
Returns a copy of this.femalesAged16to74UnemployedWhoHaveNeverWorked


getFemalesAged16to74WhoAreLongTermUnemployed

public int getFemalesAged16to74WhoAreLongTermUnemployed()
Returns a copy of this.femalesAged16to74WhoAreLongTermUnemployed


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 CASKS09cDataRecord aggregate(CASKS09cDataRecord aCASKS09cDataRecord)
User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used.


aggregate

public CASKS09cDataRecord aggregate(CASKS09cDataRecord aCASKS09cDataRecord,
                                    long newRecordID,
                                    char[] newZone_Code)
User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used.


getSizeInBytes

public long getSizeInBytes()
Returns the size of this CASKS09cRecord 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.