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

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

public class CASKS09bDataRecord
extends AbstractCASDataRecord

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

See Also:
Serialized Form

Field Summary
protected  int malesAged16to24Unemployed
          KS009b0012 = malesAged16to24Unemployed
protected  int malesAged16to74
          KS009b0001 = malesAged16to74
protected  int malesAged16to74EconomicallyActiveEmployeesFullTime
          KS009b0003 = malesAged16to74EconomicallyActiveEmployeesFullTime
protected  int malesAged16to74EconomicallyActiveEmployeesPartTime
          KS009b0002 = malesAged16to74EconomicallyActiveEmployeesPartTime
protected  int malesAged16to74EconomicallyActiveFullTimeStudent
          KS009b0006 = malesAged16to74EconomicallyActiveFullTimeStudent
protected  int malesAged16to74EconomicallyActiveSelfEmployed
          KS009b0004 = malesAged16to74EconomicallyActiveSelfEmployed
protected  int malesAged16to74EconomicallyActiveUnemployed
          KS009b0005 = malesAged16to74EconomicallyActiveUnemployed
protected  int malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
          KS009b0009 = malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
protected  int malesAged16to74EconomicallyInactiveOther
          KS009b0011 = malesAged16to74EconomicallyInactiveOther
protected  int malesAged16to74EconomicallyInactivePermanentlySickOrDisabled
          KS009b0010 = malesAged16to74EconomicallyInactivePermanentlySickOrDisabled
protected  int malesAged16to74EconomicallyInactiveRetired
          KS009b0007 = malesAged16to74EconomicallyInactiveRetired
protected  int malesAged16to74EconomicallyInactiveStudent
          KS009b009b = malesAged16to74EconomicallyInactiveStudent
protected  int malesAged16to74UnemployedWhoHaveNeverWorked
          KS009b0014 = malesAged16to74UnemployedWhoHaveNeverWorked
protected  int malesAged16to74WhoAreLongTermUnemployed
          KS009b0015 = malesAged16to74WhoAreLongTermUnemployed
protected  int malesAged50AndOverUnemployed
          KS009b0013 = malesAged50AndOverUnemployed
 
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
CASKS09bDataRecord()
          Creates a new CASKS09bRecord
CASKS09bDataRecord(boolean initZero)
          Creates a new CASKS09bRecord
CASKS09bDataRecord(CASKS09bDataRecord cASKS09bRecord)
          Creates a new CASKS09bRecord cloned from cASKS09bRecord
CASKS09bDataRecord(long RecordID, java.lang.String line)
          Creates a new CASKS09bDataRecord
CASKS09bDataRecord(java.io.RandomAccessFile aRandomAccessFile)
          Creates a new CASKS09bRecord
 
Method Summary
protected  void _Init()
          Initialises all fields.
 CASKS09bDataRecord aggregate(CASKS09bDataRecord aCASKS09bDataRecord)
          User needs to take care in aggregating to ensure aggregation does not compromise (introduce error) based on the numbers used.
 CASKS09bDataRecord aggregate(CASKS09bDataRecord aCASKS09bDataRecord, 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 getMalesAged16to24Unemployed()
          Returns a copy of this.malesAged16to24Unemployed
 int getMalesAged16to74()
          Returns a copy of this.malesAged16to74
 int getMalesAged16to74EconomicallyActiveEmployeesFullTime()
          Returns a copy of this.malesAged16to74EconomicallyActiveEmployeesFullTime
 int getMalesAged16to74EconomicallyActiveEmployeesPartTime()
          Returns a copy of this.malesAged16to74EconomicallyActiveEmployeesPartTime
 int getMalesAged16to74EconomicallyActiveFullTimeStudent()
          Returns a copy of this.malesAged16to74EconomicallyActiveFullTimeStudent
 int getMalesAged16to74EconomicallyActiveSelfEmployed()
          Returns a copy of this.malesAged16to74EconomicallyActiveSelfEmployed
 int getMalesAged16to74EconomicallyActiveUnemployed()
          Returns a copy of this.malesAged16to74EconomicallyActiveUnemployed
 int getMalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily()
          Returns a copy of this.malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
 int getMalesAged16to74EconomicallyInactiveOther()
          Returns a copy of this.malesAged16to74EconomicallyInactiveOther
 int getMalesAged16to74EconomicallyInactivePermanentlySickOrDisabled()
          Returns a copy of this.malesAged16to74EconomicallyInactivePermanentlySickOrDisabled
 int getMalesAged16to74EconomicallyInactiveRetired()
          Returns a copy of this.malesAged16to74EconomicallyInactiveRetired
 int getMalesAged16to74UnemployedWhoHaveNeverWorked()
          Returns a copy of this.malesAged16to74UnemployedWhoHaveNeverWorked
 int getMalesAged16to74WhoAreLongTermUnemployed()
          Returns a copy of this.malesAged16to74WhoAreLongTermUnemployed
 int getMalesAged50AndOverUnemployed()
          Returns a copy of this.malesAged50AndOverUnemployed
 long getSizeInBytes()
          Returns the size of this CASKS09bRecord in bytes as a long.
protected  void init(CASKS09bDataRecord cASKS09bRecord)
          Initialises all fields from those in cASKS09bRecord.
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

malesAged16to74

protected int malesAged16to74
KS009b0001 = malesAged16to74


malesAged16to74EconomicallyActiveEmployeesPartTime

protected int malesAged16to74EconomicallyActiveEmployeesPartTime
KS009b0002 = malesAged16to74EconomicallyActiveEmployeesPartTime


malesAged16to74EconomicallyActiveEmployeesFullTime

protected int malesAged16to74EconomicallyActiveEmployeesFullTime
KS009b0003 = malesAged16to74EconomicallyActiveEmployeesFullTime


malesAged16to74EconomicallyActiveSelfEmployed

protected int malesAged16to74EconomicallyActiveSelfEmployed
KS009b0004 = malesAged16to74EconomicallyActiveSelfEmployed


malesAged16to74EconomicallyActiveUnemployed

protected int malesAged16to74EconomicallyActiveUnemployed
KS009b0005 = malesAged16to74EconomicallyActiveUnemployed


malesAged16to74EconomicallyActiveFullTimeStudent

protected int malesAged16to74EconomicallyActiveFullTimeStudent
KS009b0006 = malesAged16to74EconomicallyActiveFullTimeStudent


malesAged16to74EconomicallyInactiveRetired

protected int malesAged16to74EconomicallyInactiveRetired
KS009b0007 = malesAged16to74EconomicallyInactiveRetired


malesAged16to74EconomicallyInactiveStudent

protected int malesAged16to74EconomicallyInactiveStudent
KS009b009b = malesAged16to74EconomicallyInactiveStudent


malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily

protected int malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
KS009b0009 = malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily


malesAged16to74EconomicallyInactivePermanentlySickOrDisabled

protected int malesAged16to74EconomicallyInactivePermanentlySickOrDisabled
KS009b0010 = malesAged16to74EconomicallyInactivePermanentlySickOrDisabled


malesAged16to74EconomicallyInactiveOther

protected int malesAged16to74EconomicallyInactiveOther
KS009b0011 = malesAged16to74EconomicallyInactiveOther


malesAged16to24Unemployed

protected int malesAged16to24Unemployed
KS009b0012 = malesAged16to24Unemployed


malesAged50AndOverUnemployed

protected int malesAged50AndOverUnemployed
KS009b0013 = malesAged50AndOverUnemployed


malesAged16to74UnemployedWhoHaveNeverWorked

protected int malesAged16to74UnemployedWhoHaveNeverWorked
KS009b0014 = malesAged16to74UnemployedWhoHaveNeverWorked


malesAged16to74WhoAreLongTermUnemployed

protected int malesAged16to74WhoAreLongTermUnemployed
KS009b0015 = malesAged16to74WhoAreLongTermUnemployed

Constructor Detail

CASKS09bDataRecord

public CASKS09bDataRecord()
Creates a new CASKS09bRecord


CASKS09bDataRecord

public CASKS09bDataRecord(boolean initZero)
Creates a new CASKS09bRecord

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

CASKS09bDataRecord

public CASKS09bDataRecord(CASKS09bDataRecord cASKS09bRecord)
Creates a new CASKS09bRecord cloned from cASKS09bRecord

Parameters:
cASKS09bRecord - The CASKS09bRecord from which this is cloned.

CASKS09bDataRecord

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

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

CASKS09bDataRecord

public CASKS09bDataRecord(java.io.RandomAccessFile aRandomAccessFile)
                   throws java.io.IOException
Creates a new CASKS09bRecord

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(CASKS09bDataRecord cASKS09bRecord)
Initialises all fields from those in cASKS09bRecord.

Parameters:
cASKS09bRecord - The CASKS09bRecord 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

getMalesAged16to74

public int getMalesAged16to74()
Returns a copy of this.malesAged16to74


getMalesAged16to74EconomicallyActiveEmployeesPartTime

public int getMalesAged16to74EconomicallyActiveEmployeesPartTime()
Returns a copy of this.malesAged16to74EconomicallyActiveEmployeesPartTime


getMalesAged16to74EconomicallyActiveEmployeesFullTime

public int getMalesAged16to74EconomicallyActiveEmployeesFullTime()
Returns a copy of this.malesAged16to74EconomicallyActiveEmployeesFullTime


getMalesAged16to74EconomicallyActiveSelfEmployed

public int getMalesAged16to74EconomicallyActiveSelfEmployed()
Returns a copy of this.malesAged16to74EconomicallyActiveSelfEmployed


getMalesAged16to74EconomicallyActiveUnemployed

public int getMalesAged16to74EconomicallyActiveUnemployed()
Returns a copy of this.malesAged16to74EconomicallyActiveUnemployed


getMalesAged16to74EconomicallyInactiveRetired

public int getMalesAged16to74EconomicallyInactiveRetired()
Returns a copy of this.malesAged16to74EconomicallyInactiveRetired


getMalesAged16to74EconomicallyActiveFullTimeStudent

public int getMalesAged16to74EconomicallyActiveFullTimeStudent()
Returns a copy of this.malesAged16to74EconomicallyActiveFullTimeStudent


getMalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily

public int getMalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily()
Returns a copy of this.malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily


getMalesAged16to74EconomicallyInactivePermanentlySickOrDisabled

public int getMalesAged16to74EconomicallyInactivePermanentlySickOrDisabled()
Returns a copy of this.malesAged16to74EconomicallyInactivePermanentlySickOrDisabled


getMalesAged16to74EconomicallyInactiveOther

public int getMalesAged16to74EconomicallyInactiveOther()
Returns a copy of this.malesAged16to74EconomicallyInactiveOther


getMalesAged16to24Unemployed

public int getMalesAged16to24Unemployed()
Returns a copy of this.malesAged16to24Unemployed


getMalesAged50AndOverUnemployed

public int getMalesAged50AndOverUnemployed()
Returns a copy of this.malesAged50AndOverUnemployed


getMalesAged16to74UnemployedWhoHaveNeverWorked

public int getMalesAged16to74UnemployedWhoHaveNeverWorked()
Returns a copy of this.malesAged16to74UnemployedWhoHaveNeverWorked


getMalesAged16to74WhoAreLongTermUnemployed

public int getMalesAged16to74WhoAreLongTermUnemployed()
Returns a copy of this.malesAged16to74WhoAreLongTermUnemployed


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


aggregate

public CASKS09bDataRecord aggregate(CASKS09bDataRecord aCASKS09bDataRecord,
                                    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 CASKS09bRecord 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.