1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-13 06:52:28 +00:00
soil/examples
J. Fernando Sánchez a1262edd2a Refactored time
Treating time and conditions as the same entity was getting confusing, and it
added a lot of unnecessary abstraction in a critical part (the scheduler).

The scheduling queue now has the time as a floating number (faster), the agent
id (for ties) and the condition, as well as the agent. The first three
elements (time, id, condition) can be considered as the "key" for the event.

To allow for agent execution to be "randomized" within every step, a new
parameter has been added to the scheduler, which makes it add a random number to
the key in order to change the ordering.

`EventedAgent.received` now checks the messages before returning control to the
user by default.
2022-10-20 12:15:25 +02:00
..
custom_generator black formatting 2022-10-17 20:23:57 +02:00
custom_timeouts black formatting 2022-10-17 20:23:57 +02:00
events_and_messages Refactored time 2022-10-20 12:15:25 +02:00
mesa Refactor 2022-10-17 21:49:31 +02:00
newsspread Refactor 2022-10-17 21:49:31 +02:00
programmatic black formatting 2022-10-17 20:23:57 +02:00
pubcrawl Refactor 2022-10-17 21:49:31 +02:00
rabbits Refactored time 2022-10-20 12:15:25 +02:00
random_delays black formatting 2022-10-17 20:23:57 +02:00
terrorism Refactor 2022-10-17 21:49:31 +02:00
tutorial WIP 2022-10-06 15:49:19 +02:00
complete.yml WIP: all tests pass 2022-10-16 17:56:23 +02:00
NewsSpread.ipynb WIP 2022-10-06 15:49:19 +02:00
template.yml WIP: all tests pass 2022-10-13 22:43:16 +02:00
torvalds.edgelist WIP soil 2017-07-03 18:17:52 +02:00
torvalds.yml WIP: all tests pass 2022-10-13 22:43:16 +02:00
Untitled.ipynb WIP 2022-10-06 15:49:19 +02:00