Git Product home page Git Product logo

Comments (8)

webbo89 avatar webbo89 commented on August 27, 2024

This is a good point -

From the initialisation side of things - we've been anticipating this too. But rather than adding classes we thought that you may want to expand your agent constructor and we don't think it would be hard to do, so using AbstractCountry as a minimum you could use your own agent to add more fields.

Then on construction time I imagine it would look something like this:

new EUAgent(id,"France", etc, target, eu_political_will); 
new NonAnnex(id,"Bangladesh", etc, farhan_superpower); 
new USAgent(id,"USA", etc, political_start_party); 

Perhaps as you say, modfiy A.C. so EU has a target, the others aren't required.

from kyoto.

azyzio avatar azyzio commented on August 27, 2024

Annex 1 sustain countries (e.g. Russia) also need all the functionality needed for kyoto and they have different behaviour than EU countries.
I think adding a new class that extends from Abstract Country and implements kyoto-related functionality would make sense. Having it:

  • EU inherits from AbstractKyotoCountry
  • Sustain inherits from AbstractKyotoCountry
  • NonAnnex inherits from AbstractCountry
  • US inherits from AbstractCountry

from kyoto.

azyzio avatar azyzio commented on August 27, 2024

And I agree that each type of a country type can introduce their own parameters if they wish to, but this is not what I was concerned about here.

from kyoto.

azyzio avatar azyzio commented on August 27, 2024

As there in no one against this change and I consider it quite an important one, I will work on it

from kyoto.

Sergeus avatar Sergeus commented on August 27, 2024

Sorry, I sorta need to oppose this change. If countries that are part of/not part of Kyoto inherit from different classes, then countries can't join or leave the protocol. (Which is the defined case for Canada.)

from kyoto.

azyzio avatar azyzio commented on August 27, 2024

I can see that Tom has come up with a different solution to this problem, can you explain what?

from kyoto.

Sergeus avatar Sergeus commented on August 27, 2024

Basically, as far as I know, the AbstractCountry has a field that says whether or not the country is a member of Kyoto. The Kyoto-only stuff like monitor tax just checks that the country is a member before executing.

from kyoto.

azyzio avatar azyzio commented on August 27, 2024

nice and simple.
Ok, if all the countries may be kyoto then I don't consider it an issue anymore.

from kyoto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.