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

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog
      extended by uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler
          extended by uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler
              extended by uk.ac.leeds.ccg.andyt.projects.moses.io.MarkOutputDataHandler_2
All Implemented Interfaces:
java.io.Serializable

public class MarkOutputDataHandler_2
extends AbstractCASDataHandler

A class for handling output data wanted by Mark Birkin.

See Also:
Serialized Form

Nested Class Summary
 class MarkOutputDataHandler_2.Counts
           
 
Field Summary
protected  java.io.FileOutputStream aFileOutputStream
          A FileOutputStream for File.
protected  java.io.File aOutputFile
          A File for writing output to.
protected  CASDataHandler tCASDataHandler
           
 
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler
_CAS001DataHandler, _CAS003DataHandler, _LookUpMSOAfromOAHashMap, _RecordIDZoneCodeHashMap
 
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler
_Directory, _File, _RandomAccessFile, _RecordLength
 
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog
_Logger, _Logger_FileHandler
 
Constructor Summary
MarkOutputDataHandler_2()
          Creates a new instance of MarkOutputDataHandler_2
 
Method Summary
 AbstractCASDataRecord getDataRecord(long RecordID)
           
static void main(java.lang.String[] args)
           
 void run()
          TODO docs
 void writeEstimated_HSARHP(java.lang.String directory, java.lang.String filenamePrefix, java.lang.String filenameSuffix, java.lang.String aggregation)
          writeEstimated_HSARHP
 void writeEstimated_ISARHP()
          Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code
 void writeHeader()
          Writes out header.
 void writeObservedMSOA()
          Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code
 void writeObservedOA()
          Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code
 void writeObservedWard()
          Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code
 
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler
get_LookUpMSOAfromOAHashMap, getCAS001DataHandler, getCAS003DataHandler, getDataRecord, getDataRecord, getLADCodes_TreeSet, getMSOACodes_HashSet, getMSOACodes_HashSet, getOACodes_HashSet, getOACodes_HashSet, getOACodes_TreeSet, getRecordIDZoneCode_HashMap, getRecordIDZoneCodeHashMap, getZoneCodeRecordID_HashMap, parseLine, printOAMSOACodes, write
 
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler
get_Directory, get_RecordLength, getNDataRecords, init, init, load, print
 
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog
init_Logger, init_Logger, init_Logger, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aOutputFile

protected java.io.File aOutputFile
A File for writing output to.


aFileOutputStream

protected java.io.FileOutputStream aFileOutputStream
A FileOutputStream for File.


tCASDataHandler

protected CASDataHandler tCASDataHandler
Constructor Detail

MarkOutputDataHandler_2

public MarkOutputDataHandler_2()
Creates a new instance of MarkOutputDataHandler_2

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Parameters:
args - the command line arguments
Throws:
java.io.IOException

run

public void run()
         throws java.io.IOException
TODO docs

Throws:
java.io.IOException

writeHeader

public void writeHeader()
                 throws java.io.IOException
Writes out header.

Throws:
java.io.IOException

writeObservedMSOA

public void writeObservedMSOA()
                       throws java.io.IOException
Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code

Throws:
java.io.IOException

writeObservedWard

public void writeObservedWard()
                       throws java.io.IOException
Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code

Throws:
java.io.IOException

writeObservedOA

public void writeObservedOA()
                     throws java.io.IOException
Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code

Throws:
java.io.IOException

getDataRecord

public AbstractCASDataRecord getDataRecord(long RecordID)
Specified by:
getDataRecord in class AbstractCASDataHandler
Parameters:
RecordID - The RecordID of the AbstractCASDataRecord to be returned.
Returns:
An AbstractCASDataRecord for the given RecordID

writeEstimated_HSARHP

public void writeEstimated_HSARHP(java.lang.String directory,
                                  java.lang.String filenamePrefix,
                                  java.lang.String filenameSuffix,
                                  java.lang.String aggregation)
                           throws java.io.IOException
writeEstimated_HSARHP

Parameters:
aggregation - OA, MSOA, Ward
Throws:
java.io.IOException

writeEstimated_ISARHP

public void writeEstimated_ISARHP()
                           throws java.io.IOException
Writes out MarkOutput1DataRecord but with zoneCode as Zone_Code

Throws:
java.io.IOException