uk.ac.leeds.ccg.andyt.projects.moses.extensions
Class AreaModelExtension

java.lang.Object
  extended by uk.ac.leeds.sog.moses.agent.AreaModel
      extended by uk.ac.leeds.ccg.andyt.projects.moses.extensions.AreaModelExtension

public class AreaModelExtension
extends uk.ac.leeds.sog.moses.agent.AreaModel

An extension of uk.ac.leeds.sog.moses.agent.AreaModel for performing Household assigniment for IndividualSARDataRecords.


Field Summary
 
Fields inherited from class uk.ac.leeds.sog.moses.agent.AreaModel
i_adultDependent, i_assignedHRP, i_childDependent, i_descriptionAfterBuildingModel, i_descriptionBeforeBuildingModel, i_elderlyDependent, i_households, i_hrp, i_peopleData, i_persons, i_spouse, i_totalNumPersons, i_unassignedHRP, i_unknownTypePerson, i_vacantHouseholds, NUMBER_OF_DATA_FIELDS, s_lineSeparator, s_logger
 
Constructor Summary
AreaModelExtension(java.util.Random tRandom, java.lang.String zoneCode)
          Creates a new instance of AreaModelExtension
 
Method Summary
 void createAgents(ISARDataRecord[] tISARDataRecords)
          This method creates different agents by consideration of their attributes
 java.math.BigInteger getFitness(ISARDataRecord[] tISARDataRecords)
           
 
Methods inherited from class uk.ac.leeds.sog.moses.agent.AreaModel
addHousehold, addPersonData, assignDependents, buildHouseholds, buildModel, createAgents, getAdult, getAssignedHRP, getChild, getElderly, getHRP, getListOfHouseholds, getListOfVacantHouseholds, getLocation, getModelDscription, getPeopleData, getPersons, getSpouse, getTotalNumPersons, getUnassignedHRP, getUnknownTypePerson, hasOccupiedHousehold, processMarriedHRPHousehold, processSingleHRPHousehold, removeHousehold, removePersonData, setLocation, sortByAge, step, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AreaModelExtension

public AreaModelExtension(java.util.Random tRandom,
                          java.lang.String zoneCode)
Creates a new instance of AreaModelExtension

Method Detail

getFitness

public java.math.BigInteger getFitness(ISARDataRecord[] tISARDataRecords)
Returns:
BigInteger which is a measure of how well households have been formed.

createAgents

public void createAgents(ISARDataRecord[] tISARDataRecords)
This method creates different agents by consideration of their attributes