Class Government
java.lang.Object
org.episteme.social.politics.Government
- All Implemented Interfaces:
Serializable
Represents the structure and executive configuration of a national government.
Groups administrative types, leadership roles, and ministerial departments.
* @version 1.1
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGovernment(String countryName, GovernmentForm type) Initializes a new Government for a specific country. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMinistry(String ministry) Registers a new ministry or executive department.intReturns an unmodifiable list of government ministries or departments.intgetType()voidsetHeadOfGovernment(String head) voidsetHeadOfState(String head) voidsetLegislatureSeats(int seats) voidsetRulingParty(String party) voidsetTermYears(int years) voidsetType(GovernmentForm type) toString()static GovernmentFactory method for a standard US presidential government structure.
-
Constructor Details
-
Government
Initializes a new Government for a specific country.- Parameters:
countryName- name of the countrytype- initial government archetype- Throws:
NullPointerException- if any argument is null
-
-
Method Details
-
getCountryName
-
getType
-
setType
-
getHeadOfState
-
setHeadOfState
-
getHeadOfGovernment
-
setHeadOfGovernment
-
getRulingParty
-
setRulingParty
-
getLegislatureSeats
public int getLegislatureSeats() -
setLegislatureSeats
public void setLegislatureSeats(int seats) -
getTermYears
public int getTermYears() -
setTermYears
public void setTermYears(int years) -
getMinistries
-
addMinistry
Registers a new ministry or executive department.- Parameters:
ministry- the name of the department
-
toString
-
usGovernment
Factory method for a standard US presidential government structure.- Returns:
- US Government template
-