Class InternationalTreatyModel

java.lang.Object
org.episteme.social.law.InternationalTreatyModel

public final class InternationalTreatyModel extends Object
Models international treaties and their ratification status across different countries. Provides metrics for global adoption and binding status.
  • Method Details

    • isBound

      public static boolean isBound(InternationalTreatyModel.Treaty treaty, String countryCode)
      Checks if a country (by code) is legally bound by the specified treaty. Binding status is associated with RATIFIED or ACCEDED states.
      Parameters:
      treaty - the treaty to check
      countryCode - the ISO or internal country code
      Returns:
      true if the country is bound
    • adoptionRate

      public static double adoptionRate(InternationalTreatyModel.Treaty treaty, int totalCountries)
      Calculates the "Global Adoption Rate" of a treaty.
      Parameters:
      treaty - the treaty to analyze
      totalCountries - the total number of sovereign states considered
      Returns:
      the ratio of binding countries to the total number of countries
    • udhr

      public static InternationalTreatyModel.Treaty udhr()
      Returns a model representing the Universal Declaration of Human Rights.
      Returns:
      the UDHR treaty model