|
||||||||||
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.CASKS016DataRecord
public class CASKS016DataRecord
For representing CAS KS016 Records and providing safe access to the data.
Field Summary | |
---|---|
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeCaravanOrOtherMobileOrTemporaryStructure
KS0160010 =allHouseholdSpacesWhichAreOfAccommodationTypeCaravanOrOtherMobileOrTemporaryStructure |
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentInACommercialBuilding
KS0160009 =allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentInACommercialBuilding |
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPartOfAConvertedOrSharedHouseIncludingBedSits
KS0160008 =allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPartOfAConvertedOrSharedHouseIncludingBedSits |
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPurposeBuiltBlockOfFlatsOrTenement
KS0160007 =allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPurposeBuiltBlockOfFlatsOrTenement |
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowDetached
KS0160004 = allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowDetached |
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowSemiDetached
KS0160005 = allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowSemiDetached |
protected int |
allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowTerracedIncludingEndTerrace
KS0160006 =allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowTerracedIncludingEndTerrace |
protected int |
allHouseholdSpacesWithNoResidentsSecondResidenceHolidayAccommodation
KS0160003 = allHouseholdSpacesWithNoResidentsSecondResidenceHolidayAccommodation |
protected int |
allHouseholdSpacesWithNoResidentsVacant
KS0160002 = allHouseholdSpacesWithNoResidentsVacant |
protected int |
allHouseholdSpacesWithResidents
KS0160001 = allHouseholdSpacesWithResidents |
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 | |
---|---|
CASKS016DataRecord()
Creates a new CASKS12bRecord |
|
CASKS016DataRecord(boolean initZero)
Creates a new CASKS016DataRecord |
|
CASKS016DataRecord(CASKS016DataRecord aCASKS016Record)
Creates a new CASKS016Record cloned from aCASKS016Record |
|
CASKS016DataRecord(java.io.RandomAccessFile aRandomAccessFile)
Creates a new CASKS016Record |
Method Summary | |
---|---|
protected void |
_Init()
Initialises. |
CASKS016DataRecord |
aggregate(CASKS016DataRecord aCASKS016DataRecord)
|
CASKS016DataRecord |
aggregate(CASKS016DataRecord aCASKS016DataRecord,
long newRecordID,
char[] newZone_Code)
|
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeCaravanOrOtherMobileOrTemporaryStructure()
Returns a copy of this.allHouseholdSpacesWhichAreOfAccommodationTypeCaravanOrOtherMobileOrTemporaryStructure |
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentInACommercialBuilding()
Returns a copy of this.allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentInACommercialBuilding |
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPartOfAConvertedOrSharedHouseIncludingBedSits()
Returns a copy of this.allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPartOfAConvertedOrSharedHouseIncludingBedSits |
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPurposeBuiltBlockOfFlatsOrTenement()
Returns a copy of this.allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPurposeBuiltBlockOfFlatsOrTenement |
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowDetached()
Returns a copy of this. |
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowSemiDetached()
Returns a copy of this. |
int |
getAllHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowTerracedIncludingEndTerrace()
Returns a copy of this.allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowTerracedIncludingEndTerrace |
int |
getAllHouseholdSpacesWithNoResidentsSecondResidenceHolidayAccommodation()
Returns a copy of this. |
int |
getAllHouseholdSpacesWithNoResidentsVacant()
Returns a copy of this.allHouseholdSpacesWithNoResidentsVacant |
int |
getAllHouseholdSpacesWithResidents()
Returns a copy of this.allHouseholdSpacesWithResidents |
long |
getSizeInBytes()
Returns the size of this Record in bytes as a long. |
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 allHouseholdSpacesWithResidents
protected int allHouseholdSpacesWithNoResidentsVacant
protected int allHouseholdSpacesWithNoResidentsSecondResidenceHolidayAccommodation
protected int allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowDetached
protected int allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowSemiDetached
protected int allHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowTerracedIncludingEndTerrace
protected int allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPurposeBuiltBlockOfFlatsOrTenement
protected int allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPartOfAConvertedOrSharedHouseIncludingBedSits
protected int allHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentInACommercialBuilding
protected int allHouseholdSpacesWhichAreOfAccommodationTypeCaravanOrOtherMobileOrTemporaryStructure
Constructor Detail |
---|
public CASKS016DataRecord()
public CASKS016DataRecord(CASKS016DataRecord aCASKS016Record)
aCASKS016Record
- The CASKS016Record from which this is cloned.public CASKS016DataRecord(boolean initZero)
initZero
- To ensure initZero() is used instead of _Init()public CASKS016DataRecord(java.io.RandomAccessFile aRandomAccessFile)
aRandomAccessFile
- Method Detail |
---|
protected void _Init()
_Init
in class AbstractCASDataRecord
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 getAllHouseholdSpacesWithResidents()
public int getAllHouseholdSpacesWithNoResidentsVacant()
public int getAllHouseholdSpacesWithNoResidentsSecondResidenceHolidayAccommodation()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowDetached()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowSemiDetached()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeWholeHouseOrbungalowTerracedIncludingEndTerrace()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPurposeBuiltBlockOfFlatsOrTenement()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentPartOfAConvertedOrSharedHouseIncludingBedSits()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeFlatMaisonetteOrApartmentInACommercialBuilding()
public int getAllHouseholdSpacesWhichAreOfAccommodationTypeCaravanOrOtherMobileOrTemporaryStructure()
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 CASKS016DataRecord aggregate(CASKS016DataRecord aCASKS016DataRecord)
aCASKS016DataRecord
- The CASKS016DataRecord
to be aggregated with
this
.
CASKS016DataRecord
where:
RecordID = this.RecordID
Zone_Code = this.Zone_Code
For aggregating
CASKS016DataRecords
. 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 CASKS016DataRecord aggregate(CASKS016DataRecord aCASKS016DataRecord, long newRecordID, char[] newZone_Code)
aCASKS016DataRecord
- The CASKS016DataRecord
to be aggregated with
this
.newRecordID
- The RecordID
assigned to result.newZone_Code
- The Zone_Code
assigned to result.
CASKS016DataRecord
where:
RecordID = newRecordID
Zone_Code = newZone_Code
For aggregating
CASKS016DataRecords
. 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 |