Commit Graph

5 Commits (f49be3af689895956db42fa9c16558ecb17c2641)

Author SHA1 Message Date
J. Fernando Sánchez f49be3af68 1.0pre4 1 year ago
J. Fernando Sánchez c09e480d37 black formatting 2 years ago
J. Fernando Sánchez b2d48cb4df Add test cases for 'ASK' 2 years ago
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.
2 years ago
J. Fernando Sánchez 159c9a9077 Add events 2 years ago