|
||||||||||
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.CASKS09bDataRecord
public class CASKS09bDataRecord
For representing CAS KS09b Records and providing safe access to the data.
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 |
---|
protected int malesAged16to74
protected int malesAged16to74EconomicallyActiveEmployeesPartTime
protected int malesAged16to74EconomicallyActiveEmployeesFullTime
protected int malesAged16to74EconomicallyActiveSelfEmployed
protected int malesAged16to74EconomicallyActiveUnemployed
protected int malesAged16to74EconomicallyActiveFullTimeStudent
protected int malesAged16to74EconomicallyInactiveRetired
protected int malesAged16to74EconomicallyInactiveStudent
protected int malesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily
protected int malesAged16to74EconomicallyInactivePermanentlySickOrDisabled
protected int malesAged16to74EconomicallyInactiveOther
protected int malesAged16to24Unemployed
protected int malesAged50AndOverUnemployed
protected int malesAged16to74UnemployedWhoHaveNeverWorked
protected int malesAged16to74WhoAreLongTermUnemployed
Constructor Detail |
---|
public CASKS09bDataRecord()
public CASKS09bDataRecord(boolean initZero)
initZero
- To ensure initZero() is used instead of _Init()public CASKS09bDataRecord(CASKS09bDataRecord cASKS09bRecord)
cASKS09bRecord
- The CASKS09bRecord from which this is cloned.public CASKS09bDataRecord(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 CASKS09bDataRecord(java.io.RandomAccessFile aRandomAccessFile) throws java.io.IOException
aRandomAccessFile
-
java.io.IOException
Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
protected void initZero()
protected void init(CASKS09bDataRecord cASKS09bRecord)
cASKS09bRecord
- The CASKS09bRecord thats fields are 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 getMalesAged16to74()
public int getMalesAged16to74EconomicallyActiveEmployeesPartTime()
public int getMalesAged16to74EconomicallyActiveEmployeesFullTime()
public int getMalesAged16to74EconomicallyActiveSelfEmployed()
public int getMalesAged16to74EconomicallyActiveUnemployed()
public int getMalesAged16to74EconomicallyInactiveRetired()
public int getMalesAged16to74EconomicallyActiveFullTimeStudent()
public int getMalesAged16to74EconomicallyInactiveLookingAfterHomeOrFamily()
public int getMalesAged16to74EconomicallyInactivePermanentlySickOrDisabled()
public int getMalesAged16to74EconomicallyInactiveOther()
public int getMalesAged16to24Unemployed()
public int getMalesAged50AndOverUnemployed()
public int getMalesAged16to74UnemployedWhoHaveNeverWorked()
public int getMalesAged16to74WhoAreLongTermUnemployed()
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 CASKS09bDataRecord aggregate(CASKS09bDataRecord aCASKS09bDataRecord)
public CASKS09bDataRecord aggregate(CASKS09bDataRecord aCASKS09bDataRecord, long newRecordID, char[] newZone_Code)
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 |