Comments (5)
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.
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.
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.
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.
from agents.jl.
Related Issues (20)
- in agent lifting: only one thing, the model, should be lifted, not both model and IDs HOT 3
- Inspection of polygons HOT 2
- Heatmap of (discretized) spatial property with `ContinuousSpace`
- Invalid argument `agents_step!` uncaught by `abmplot`. HOT 10
- make `abmexploration` use `Agents.dataname` HOT 6
- Not getting access to agents functions as expected HOT 2
- Inspect on hover only for agents within red box HOT 1
- reinitialize button in Agents.jl interactive apps HOT 4
- Add support for plotting of ABMs with `nothing` space HOT 3
- Zooming, panning, and aspect ratios in agents 3D plotting HOT 1
- Set resolution for abmplot to have pixel perfect plots HOT 1
- `ERROR: LoadError: Invalid text boundingbox` with colorbars/heatarrays
- Remove the blank axis for the space plot for a model with no space
- Create abmtime function for StandardABM HOT 17
- Fix reset button working in `abmexploration`
- Reconsider the deprecation of adding agents with an agent instance HOT 7
- A compactify macro to help to create a unique-type agent for multi-agent models HOT 8
- Schelling interactive exploration example ERROR: LoadError: UndefVarError: `MakieLayout` not defined HOT 8
- continuous-event/-time ABM? HOT 8
- flocking model example does not work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agents.jl.