com.mizar.addressing.census
Class CensusUtils

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

public class CensusUtils
extends java.lang.Object


Constructor Summary
CensusUtils()
           
 
Method Summary
static Race getCensusReportFromArea(javax.persistence.EntityManager em, oracle.spatial.geometry.JGeometry area)
          This method return all population data in a given area.
static RaceAllAgesByBlock sumRaceData(java.util.List<RaceAllAgesByBlock> list)
          This method add a List of RaceAllAgesByBlock objects and sum all the population together
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CensusUtils

public CensusUtils()
Method Detail

sumRaceData

public static RaceAllAgesByBlock sumRaceData(java.util.List<RaceAllAgesByBlock> list)
This method add a List of RaceAllAgesByBlock objects and sum all the population together

Parameters:
list -
Returns:
RaceAllAgesByBlock object containing all Race data

getCensusReportFromArea

public static Race getCensusReportFromArea(javax.persistence.EntityManager em,
                                           oracle.spatial.geometry.JGeometry area)
This method return all population data in a given area.

Parameters:
em - JPA EntityManager
area - JGeometry object
Returns:
Race object containing all population data