Class Federation

java.lang.Object
org.episteme.social.politics.Federation
All Implemented Interfaces:
Serializable, Named

public class Federation extends Object implements Named, Serializable
Represents a PsychologicalGroup of countries cooperating within a formal union or federation.

Countries in a federation may or may not share common geography. Examples include the European Union, United Nations, or a Federal State.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Named
    • setName

      public void setName(String name)
      Updates the name of the federation.
      Parameters:
      name - the new name
    • getCountries

      public Set<Country> getCountries()
      Returns an unmodifiable set of member countries.
      Returns:
      members
    • addCountry

      public void addCountry(Country country)
      Adds a country to the federation.
      Parameters:
      country - the country to add
    • removeCountry

      public void removeCountry(Country country)
      Removes a country from the federation.
      Parameters:
      country - the country to remove
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object