Class InternationalTreatyModel
java.lang.Object
org.episteme.social.law.InternationalTreatyModel
Models international treaties and their ratification status across different countries.
Provides metrics for global adoption and binding status.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the formal status of a country regarding an international treaty.static final recordRepresents an international treaty and the status of its member parties. -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleadoptionRate(InternationalTreatyModel.Treaty treaty, int totalCountries) Calculates the "Global Adoption Rate" of a treaty.static booleanisBound(InternationalTreatyModel.Treaty treaty, String countryCode) Checks if a country (by code) is legally bound by the specified treaty.udhr()Returns a model representing the Universal Declaration of Human Rights.
-
Method Details
-
isBound
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 checkcountryCode- the ISO or internal country code- Returns:
- true if the country is bound
-
adoptionRate
Calculates the "Global Adoption Rate" of a treaty.- Parameters:
treaty- the treaty to analyzetotalCountries- the total number of sovereign states considered- Returns:
- the ratio of binding countries to the total number of countries
-
udhr
Returns a model representing the Universal Declaration of Human Rights.- Returns:
- the UDHR treaty model
-