Class Nation
java.lang.Object
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent
Represents a sovereign nation or organized human PsychologicalGroup (modern tribe).
A nation is defined by its territory, identity (Culture), and supreme law (Constitution).
* @version 1.2
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class SocialCollective
cohesion, leader, members -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a specific legal code to the nation's registry.voidaddOrganization(Organization organization) Registers a new organization under the nation's jurisdiction.voidaddParlimentMember(Human human) Adds an individual to the parliament.voidAdds a new treaty to the nation's records.getCodes()Returns an unmodifiable set of legislative codes.Returns the nation's constitution.Returns the primary government administration.intgetKind()Returns the kind or classification of this nation.Returns an unmodifiable set of affiliated organizations.Returns an unmodifiable set of parliament members.Returns an unmodifiable set of registered international treaties.voidremoveCode(Code code) Removes a legal code from the registry.voidremoveOrganization(Organization organization) Unregisters an organization from the nation's jurisdiction.voidremoveParlimentMember(Human human) Removes an individual from the parliament membership.voidremoveTreaty(Treaty treaty) Removes an international treaty from registration.voidOverwrites the nation's legal codes.voidsetConstitution(Constitution constitution) Sets the nation's constitution.voidsetGovernment(Administration government) Sets the government administration.voidsetKind(int kind) Sets the classification of the nation.voidsetOrganizations(Set<Organization> organizations) Overwrites the set of nation-affiliated organizations.voidsetParliment(Set<Human> parliment) Overwrites the parliament membership.voidsetTreaties(Set<Treaty> treaties) Overwrites the list of international treaties.Methods inherited from class Tribe
getCulture, getName, setCulture, setNameMethods inherited from class PsychologicalGroup
getFormalTerritory, getLeaders, getRelation, getRelations, setFormalTerritory, setLeaders, setRelation, setRelationMethods inherited from class Population
addMember, countAlive, countBySex, countByStage, equals, filter, getAgeDistribution, getAverageAge, getAverageFecundity, getFounders, getIndividuals, getLocation, getOldestAge, getPosition, getSexRatio, getSpecies, getTerritory, getYoungestAge, hashCode, processEvent, setIndividuals, setTerritory, size, toStringMethods 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
getTrait, setTrait
-
Constructor Details
-
Nation
Initializes a new Nation.- Parameters:
name- the name of the nationformalTerritory- the physical territoryculture- the dominant cultural identity- Throws:
NullPointerException- if any argument is null
-
Nation
-
-
Method Details
-
getKind
public int getKind()Returns the kind or classification of this nation.- Returns:
- the kind constant from
PoliticsConstants
-
setKind
public void setKind(int kind) Sets the classification of the nation.- Parameters:
kind- the kind constant
-
getGovernment
Returns the primary government administration.- Returns:
- government instance
-
setGovernment
Sets the government administration.- Parameters:
government- the government
-
getParliment
-
setParliment
-
addParlimentMember
Adds an individual to the parliament.- Parameters:
human- the representative to add
-
removeParlimentMember
Removes an individual from the parliament membership.- Parameters:
human- the representative to remove
-
getConstitution
Returns the nation's constitution.- Returns:
- constitution document
-
setConstitution
Sets the nation's constitution.- Parameters:
constitution- the constitution
-
getCodes
-
setCodes
-
addCode
Adds a specific legal code to the nation's registry.- Parameters:
code- the code to add
-
removeCode
Removes a legal code from the registry.- Parameters:
code- the code to remove
-
getTreaties
-
setTreaties
-
addTreaty
Adds a new treaty to the nation's records.- Parameters:
treaty- the treaty instance
-
removeTreaty
Removes an international treaty from registration.- Parameters:
treaty- the treaty to remove
-
getOrganizations
Returns an unmodifiable set of affiliated organizations.- Returns:
- organizations
-
setOrganizations
Overwrites the set of nation-affiliated organizations.- Parameters:
organizations- the organization set
-
addOrganization
Registers a new organization under the nation's jurisdiction.- Parameters:
organization- the organization to add
-
removeOrganization
Unregisters an organization from the nation's jurisdiction.- Parameters:
organization- the organization to remove
-