Class Society
java.lang.Object
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent
Represents a society, defined by its type, culture, institutions, and geographic location.
- See Also:
-
Field Summary
Fields inherited from class SocialCollective
cohesion, leader, members -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new society with the specified name.Society(String name, EventDrivenEngine engine) Creates a new society with the specified name and simulation engine.Society(String name, SocietyType type, EventDrivenEngine engine) Creates a new society with name, type and simulation engine. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInstitution(SociologicalGroup institution) voidaddLanguage(Language language) voidaddReligion(Religion religion) booleanlonggetType()inthashCode()voidprocessEvent(Event event) Process an event delivered to this agent.voidsetCulture(Culture culture) voidsetGovernmentType(String governmentType) voidsetPopulationCount(long populationCount) voidsetType(SocietyType type) toString()Methods inherited from class Population
addMember, countAlive, countBySex, countByStage, filter, getAgeDistribution, getAverageAge, getAverageFecundity, getFounders, getIndividuals, getLocation, getOldestAge, getPosition, getSexRatio, getSpecies, getTerritory, getYoungestAge, setIndividuals, setTerritory, sizeMethods inherited from class SocialCollective
getCohesion, getLeader, getMembers, removeMember, setCohesion, setLeaderMethods inherited from class SocialEntity
getEngine, getId, getInfluence, getPrestige, getSimId, getTraits, interact, setEngine, setInfluence, setPrestigeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Society
Creates a new society with the specified name. -
Society
Creates a new society with the specified name and simulation engine. -
Society
Creates a new society with name, type and simulation engine.
-
-
Method Details
-
getType
-
setType
-
getCulture
-
setCulture
-
getPopulationCount
public long getPopulationCount() -
setPopulationCount
public void setPopulationCount(long populationCount) -
getGovernmentType
-
setGovernmentType
-
addInstitution
-
getInstitutions
-
addLanguage
-
getLanguages
-
addReligion
-
getReligions
-
processEvent
Description copied from interface:SimulationAgentProcess an event delivered to this agent.- Specified by:
processEventin interfaceSimulationAgent- Overrides:
processEventin classPopulation<Person>- Parameters:
event- The event to process
-
equals
- Overrides:
equalsin classPopulation<Person>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPopulation<Person>
-
toString
- Overrides:
toStringin classPopulation<Person>
-