|
||||||||||
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.CASKS015DataRecord
public class CASKS015DataRecord
For representing CAS KS015 Records and providing safe access to the data. NB. In aggregating it has been noticed that averageDistanceInKMTravelledToFixedPlaceOfWork is perculiar.
Field Summary | |
---|---|
protected int |
averageDistanceInKMTravelledToFixedPlaceOfWork
KS0150013 = averageDistanceInKMTravelledToFixedPlaceOfWork |
protected int |
peopleAged16to74InEmployment
KS0150001 = peopleAged16to74InEmployment |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBicycle
KS0150010 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBicycle |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBusMinibusOrCoach
KS0150005 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBusMinibusOrCoach |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByDrivingACarOrVan
KS0150007 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByDrivingACarOrVan |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByMotorcycleScooterOrMoped
KS0150006 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByMotorcycleScooterOrMoped |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOnFoot
KS0150011 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOnFoot |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOther
KS0150012 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOther |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByPassengerInACarOrVan
KS0150008 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByPassengerInACarOrVan |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTaxiOrMinicab
KS0150009 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTaxiOrMinicab |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTrain
KS0150004 = peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTrain |
protected int |
peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByUndergroundMetroLightRailTram
KS0150003 =peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByUndergroundMetroLightRailTram |
protected int |
peopleAged16to74InEmploymentWhoWorkMainlyAtOrFromHome
KS0150002 = peopleAged16to74InEmploymentWhoWorkMainlyAtOrFromHome |
protected int |
publicTransportUsersInHouseholdsWithACarOrVan
KS0150014 = publicTransportUsersInHouseholdsWithACarOrVan |
protected int |
publicTransportUsersInHouseholdsWithoutACarOrVan
KS0150015 = publicTransportUsersInHouseholdsWithoutACarOrVan |
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 | |
---|---|
CASKS015DataRecord()
Creates a new CASKS015Record |
|
CASKS015DataRecord(boolean initZero)
Creates a new CASKS015DataRecord |
|
CASKS015DataRecord(CASKS015DataRecord aCASKS015Record)
Creates a new CASKS015Record cloned from aCASKS015Record |
|
CASKS015DataRecord(long RecordID,
java.lang.String line,
java.lang.String country)
Creates a new CASKS015DataRecord |
|
CASKS015DataRecord(java.io.RandomAccessFile tRandomAccessFile)
Creates a new CASKS12bRecord |
Method Summary | |
---|---|
protected void |
_Init()
Initialises. |
CASKS015DataRecord |
aggregate(CASKS015DataRecord aCASKS015DataRecord)
|
CASKS015DataRecord |
aggregate(CASKS015DataRecord aCASKS015DataRecord,
long newRecordID,
char[] newZone_Code)
|
int |
getAverageDistanceInKMTravelledToFixedPlaceOfWork()
Returns a copy of this.averageDistanceInKMTravelledToFixedPlaceOfWork |
int |
getPeopleAged16to74InEmployment()
Returns a copy of this.peopleAged16to74InEmployment |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBicycle()
Returns a copy of this.peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBicycle |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBusMinibusOrCoach()
Returns a copy of this. |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByDrivingACarOrVan()
Returns a copy of this. |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByMotorcycleScooterOrMoped()
Returns a copy of this. |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOnFoot()
Returns a copy of this.peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOnFoot |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOther()
Returns a copy of this.peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOther |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByPassengerInACarOrVan()
Returns a copy of this. |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTaxiOrMinicab()
Returns a copy of this.peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTaxiOrMinicab |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTrain()
Returns a copy of this.peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTrain |
int |
getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByUndergroundMetroLightRailTram()
Returns a copy of this.peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByUndergroundMetroLightRailTram |
int |
getPeopleAged16to74InEmploymentWhoWorkMainlyAtOrFromHome()
Returns a copy of this.peopleAged16to74InEmploymentWhoWorkMainlyAtOrFromHome |
int |
getPublicTransportUsersInHouseholdsWithACarOrVan()
Returns a copy of this.publicTransportUsersInHouseholdsWithACarOrVan |
int |
getPublicTransportUsersInHouseholdsWithoutACarOrVan()
Returns a copy of this.publicTransportUsersInHouseholdsWithoutACarOrVan |
long |
getSizeInBytes()
Returns the size of this Record in bytes as a long. |
protected void |
init(CASKS015DataRecord aCASKS015Record)
Initialises all fields from those in aCASKS015Record. |
protected void |
initZero()
Initialises 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 |
---|
protected int peopleAged16to74InEmployment
protected int peopleAged16to74InEmploymentWhoWorkMainlyAtOrFromHome
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByUndergroundMetroLightRailTram
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTrain
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBusMinibusOrCoach
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByMotorcycleScooterOrMoped
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByDrivingACarOrVan
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByPassengerInACarOrVan
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTaxiOrMinicab
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBicycle
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOnFoot
protected int peopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOther
protected int averageDistanceInKMTravelledToFixedPlaceOfWork
protected int publicTransportUsersInHouseholdsWithACarOrVan
protected int publicTransportUsersInHouseholdsWithoutACarOrVan
Constructor Detail |
---|
public CASKS015DataRecord()
public CASKS015DataRecord(CASKS015DataRecord aCASKS015Record)
aCASKS015Record
- The CASKS015Record from which this is cloned.public CASKS015DataRecord(boolean initZero)
initZero
- To ensure initZero() is used instead of _Init()public CASKS015DataRecord(long RecordID, java.lang.String line, java.lang.String country) throws java.io.IOException
RecordID
- The RecordID to be assigned to thisline
- The Comma Seperated Value String
country
- Identifies type of table
java.io.IOException
public CASKS015DataRecord(java.io.RandomAccessFile tRandomAccessFile)
tRandomAccessFile
- Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
protected void init(CASKS015DataRecord aCASKS015Record)
aCASKS015Record
- The CASKS015Record thats fields are used to initialise this.protected void initZero()
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 getPeopleAged16to74InEmployment()
public int getPeopleAged16to74InEmploymentWhoWorkMainlyAtOrFromHome()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByUndergroundMetroLightRailTram()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTrain()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBusMinibusOrCoach()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByMotorcycleScooterOrMoped()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByDrivingACarOrVan()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByPassengerInACarOrVan()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByTaxiOrMinicab()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByBicycle()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOnFoot()
public int getPeopleAged16to74InEmploymentWhoUsuallyTravelToWorkByOther()
public int getAverageDistanceInKMTravelledToFixedPlaceOfWork()
public int getPublicTransportUsersInHouseholdsWithACarOrVan()
public int getPublicTransportUsersInHouseholdsWithoutACarOrVan()
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 CASKS015DataRecord aggregate(CASKS015DataRecord aCASKS015DataRecord)
aCASKS015DataRecord
- The CASKS015DataRecord
to be aggregated with
this
.
CASKS015DataRecord
where:
RecordID = this.RecordID
Zone_Code = this.Zone_Code
For aggregating
CASKS015DataRecords
. 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).public CASKS015DataRecord aggregate(CASKS015DataRecord aCASKS015DataRecord, long newRecordID, char[] newZone_Code)
aCASKS015DataRecord
- The CASKS015DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
CASKS015DataRecord
where:
RecordID = newRecordID
Zone_Code = newZone_Code
For aggregating
CASKS015DataRecords
. 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).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 |