Code Monkey home page Code Monkey logo

Comments (5)

Datseris avatar Datseris commented on May 18, 2024

For solving the first, why dont we define

add_agent!(node::Int, model, properties...)

which internally creates creates the agent (we know its type from the model), calculates its ID, adjusts it, sets its position to node, and then adds the agent to the node? The properties... are propagated into the Agent constructor.

from agents.jl.

kavir1698 avatar kavir1698 commented on May 18, 2024

add_agent!(node::Int, model, properties...)

This is a good idea and could be used frequently. Plus, it would be a non-breaking change to the current API.

from agents.jl.

kavir1698 avatar kavir1698 commented on May 18, 2024

should definitely not have to use the undocumented function gridsize.

It's a useful function. We should add some documentation to it.

We should define isempty(node, model)

All these helper functions are good, especially with easy to remember names.

from agents.jl.

Datseris avatar Datseris commented on May 18, 2024

It's a useful function. We should add some documentation to it.

I don;t think so. I think its name is just confusing. What's a grid size? Is it the amount of modes? Is i the amount of dimensions? Is it a tuple like (20,20)? I vote to completely remove it and use nv instead.

from agents.jl.

kavir1698 avatar kavir1698 commented on May 18, 2024

from agents.jl.

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.