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

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

public class CASAreaEastingNorthingDataRecord
extends AbstractCASDataRecord

See Also:
Serialized Form

Field Summary
protected  double _Area
          Area
protected  double _Easting
          Easting
protected  double _Northing
          Northing
 
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
CASAreaEastingNorthingDataRecord()
           
CASAreaEastingNorthingDataRecord(boolean initZero)
           
CASAreaEastingNorthingDataRecord(CASAreaEastingNorthingDataRecord a_CASAreaEastingNorthingDataRecord)
           
CASAreaEastingNorthingDataRecord(long RecordID, java.lang.String line)
           
CASAreaEastingNorthingDataRecord(java.io.RandomAccessFile aRandomAccessFile)
           
 
Method Summary
protected  void _Init()
          Initialises all fields.
 double get_Area()
          Returns a copy of this._Area
 double get_Easting()
          Returns a copy of this._Easting
 double get_Northing()
          Returns a copy of this._Northing
 long getSizeInBytes()
          Returns the size of this in bytes as a long.
protected  void init(CASAreaEastingNorthingDataRecord a_CASAreaEastingNorthingDataRecord)
           
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

_Area

protected double _Area
Area


_Easting

protected double _Easting
Easting


_Northing

protected double _Northing
Northing

Constructor Detail

CASAreaEastingNorthingDataRecord

public CASAreaEastingNorthingDataRecord()

CASAreaEastingNorthingDataRecord

public CASAreaEastingNorthingDataRecord(CASAreaEastingNorthingDataRecord a_CASAreaEastingNorthingDataRecord)

CASAreaEastingNorthingDataRecord

public CASAreaEastingNorthingDataRecord(boolean initZero)

CASAreaEastingNorthingDataRecord

public CASAreaEastingNorthingDataRecord(long RecordID,
                                        java.lang.String line)
                                 throws java.io.IOException
Parameters:
RecordID - The RecordID to be assigned to this
line - The Comma Seperated Value String
Throws:
java.io.IOException

CASAreaEastingNorthingDataRecord

public CASAreaEastingNorthingDataRecord(java.io.RandomAccessFile aRandomAccessFile)
                                 throws java.io.IOException
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(CASAreaEastingNorthingDataRecord a_CASAreaEastingNorthingDataRecord)

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

get_Area

public double get_Area()
Returns a copy of this._Area


get_Easting

public double get_Easting()
Returns a copy of this._Easting


get_Northing

public double get_Northing()
Returns a copy of this._Northing


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

getSizeInBytes

public long getSizeInBytes()
Returns the size of this in bytes as a long.

Overrides:
getSizeInBytes in class AbstractCASDataRecord
Returns:
The size (in bytes) of this as a long. This does not account for the private Fields serialVersionUID.