Package model.city
Class CityStatistics
java.lang.Object
model.city.CityStatistics
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getBudgetEffect
(Date now) double
double
double
int
getNrCitizenHigherEducation
(CityRegistry cityRegistry) Get the number of citizens who have a higher level of education (university).int
getNrCitizenSecondaryEducation
(CityRegistry cityRegistry) Get the number of citizens who have a secondary level of education (school).int
getPopulation
(CityRegistry cityRegistry) Get city population.double
void
Setting city average satisfaction being equal to the sum of the average satisfaction of zones and of the average of some additional effects which are related to the whole city (avgCommonZoneSatisfaction).void
updateNrZones
(CityRegistry cityRegistry) Update the number of zones of each type.
-
Constructor Details
-
CityStatistics
-
-
Method Details
-
getCityRelatedSatisfaction
-
getBudget
-
getPopulation
Get city population.- Parameters:
cityRegistry
- used to get the zones- Returns:
- number of citizens.
-
getCitySatisfaction
public double getCitySatisfaction() -
getTaxEffect
public double getTaxEffect() -
getIndComZoneBalance
public double getIndComZoneBalance() -
getBudgetEffect
-
setCitySatisfaction
Setting city average satisfaction being equal to the sum of the average satisfaction of zones and of the average of some additional effects which are related to the whole city (avgCommonZoneSatisfaction).- Parameters:
gm
- used to get the cityRegistry
-
updateNrZones
Update the number of zones of each type.- Parameters:
cityRegistry
- to get the zones
-
getNrCitizenSecondaryEducation
Get the number of citizens who have a secondary level of education (school).- Parameters:
cityRegistry
- to get the collection of citizens.- Returns:
- nr of citizens who have a secondary level of education (school).
-
getNrCitizenHigherEducation
Get the number of citizens who have a higher level of education (university).- Parameters:
cityRegistry
- to get the collection of citizens.- Returns:
- nr of citizens who have a higher level of education (university).
-