com.mizar.addressing.census
Class CensusBlockAverager

java.lang.Object
  extended by com.mizar.addressing.census.CensusBlockAverager

public class CensusBlockAverager
extends java.lang.Object


Constructor Summary
CensusBlockAverager(java.lang.Class targetClass, double totalArea)
          CensusBlockAverager Constructor.
 
Method Summary
 void addChunk(Race censusChunk, double censusArea, double overlapArea)
          This method calculates average population in an area for all population attributes in a census chunk and add to an AccumulatorMap.
 Race getResult()
           
 double getTotalArea()
           
 void setResult(Race result)
           
 void setTotalArea(double totalArea)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CensusBlockAverager

public CensusBlockAverager(java.lang.Class targetClass,
                           double totalArea)
                    throws java.lang.InstantiationException,
                           java.lang.IllegalAccessException
CensusBlockAverager Constructor.

Parameters:
targetClass - Race or Race extended object
totalArea - census block area
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
Method Detail

addChunk

public void addChunk(Race censusChunk,
                     double censusArea,
                     double overlapArea)
This method calculates average population in an area for all population attributes in a census chunk and add to an AccumulatorMap.

Parameters:
censusChunk - Race or Race extended object
censusArea -
overlapArea -

setTotalArea

public void setTotalArea(double totalArea)

getTotalArea

public double getTotalArea()

setResult

public void setResult(Race result)

getResult

public Race getResult()