Demo models‎ > ‎Demo07‎ > ‎

5. The Household class

This class contains a list of all household members and is able to count the number of adults and children in the household. It is defined as an Entity class and is therefore linked to a table with the same name in the database. It implements the EventListener interface because it responds to calls by the scheduler requesting that the household composition is updated.

Previous: 4. The Person class             Next: 6. The PersonsCollector class