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

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.AbstractOutputDataHandler
                  extended by uk.ac.leeds.ccg.andyt.projects.moses.io.OutputDataHandler_OptimisationConstraints_1
All Implemented Interfaces:
java.io.Serializable

public class OutputDataHandler_OptimisationConstraints_1
extends AbstractOutputDataHandler

Class for handling output that compares some optimisation constraint variables in the CAS and IndividualCensus outputs. (For IPS and GA run comparisons.)

See Also:
Serialized Form

Nested Class Summary
 class OutputDataHandler_OptimisationConstraints_1.Counts
           
 
Field Summary
 
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractOutputDataHandler
_CASDataHandler, _CASDataHandler_1, _FileOutputStream, _OutputFile, _ToyModelDataHandler
 
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
OutputDataHandler_OptimisationConstraints_1()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
protected  void write(OutputDataHandler_OptimisationConstraints_1.Counts _Counts, java.lang.String _ZoneCode)
           
 void writeEstimated_HSARHP(java.io.File _InputFile, java.io.File _OutputFile, java.lang.String _Aggregation)
          writeEstimated_HSARHP
 void writeEstimated_HSARHP(java.lang.String directory, java.lang.String filenamePrefix, java.lang.String filenameSuffix, java.lang.String _Aggregation)
          writeEstimated_HSARHP
 void writeHeader()
          Writes out header.
 void writeObserved(java.lang.String _CASDataDirectory, java.lang.String _OutputFileName, long _StartRecordID, long _EndRecordID, java.lang.String _AreaLevel, ISARDataHandler tISARDataHandler)
           
 
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractOutputDataHandler
getDataRecord
 
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
 

Constructor Detail

OutputDataHandler_OptimisationConstraints_1

public OutputDataHandler_OptimisationConstraints_1()
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
Throws:
java.io.IOException

writeHeader

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

Specified by:
writeHeader in class AbstractOutputDataHandler
Throws:
java.io.IOException

writeObserved

public void writeObserved(java.lang.String _CASDataDirectory,
                          java.lang.String _OutputFileName,
                          long _StartRecordID,
                          long _EndRecordID,
                          java.lang.String _AreaLevel,
                          ISARDataHandler tISARDataHandler)
                   throws java.io.IOException
Specified by:
writeObserved in class AbstractOutputDataHandler
Throws:
java.io.IOException

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_HSARHP

public void writeEstimated_HSARHP(java.io.File _InputFile,
                                  java.io.File _OutputFile,
                                  java.lang.String _Aggregation)
                           throws java.io.IOException
writeEstimated_HSARHP

Specified by:
writeEstimated_HSARHP in class AbstractOutputDataHandler
Throws:
java.io.IOException

write

protected void write(OutputDataHandler_OptimisationConstraints_1.Counts _Counts,
                     java.lang.String _ZoneCode)
              throws java.io.IOException
Throws:
java.io.IOException