1
0
forked from ROMEO/nexosim

11 Commits

Author SHA1 Message Date
Jaŭhien Piatlicki
1a0dff0f6e Document observable states 2024-11-13 23:59:50 +01:00
Serge Barral
2a8a3738cb Use better supported UTF symbols for arrow heads 2024-09-08 17:38:58 +02:00
Serge Barral
c984202005 Prepare release v0.2.2 2024-04-04 13:44:10 +02:00
Serge Barral
d2f165abc7 Prepare release v0.2.1 2024-03-06 16:40:43 +01:00
Serge Barral
fe3fd372e7 Prepare release v0.2.0 2023-08-15 17:16:16 +02:00
Serge Barral
22516fe190 Overload schedule_*event methods
The `schedule_*event_in` and `schedule_*event_at` pairs of methods are
each merged into a single overloaded method accepting either a relative
`Duration`or an absolute `MonotonicTime`.
2023-08-14 15:47:08 +02:00
Serge Barral
f458377308 Make it possible to cancel current-time events
This is a pretty large patch that impacts the API.

Until now, it was not possible to cancel events that were scheduled for
the current simulation time slice, making it necessary for the user to
use complex workarounds (see former version of the espresso machine
example).

The new implementation makes this possible but the generation of a key
associated to an event has now a non-negligible cost (basicaly it
creates three references to an Arc). For this reason, the API now
defaults to NOT creating a key, and new methods were added for
situations when the event may need to be cancelled and a key is
necessary.

See the much simplified implementation of the espresso machine example
for a motivating case.
2023-07-21 14:23:20 +02:00
Serge Barral
045dea509c Minor doc fixes 2023-07-17 14:58:52 +02:00
Serge Barral
0bcecbfdc2 Small README fixes 2023-01-16 23:15:47 +01:00
Serge Barral
31520d461a First release candidate for v0.1.0 2023-01-16 23:05:46 +01:00
Serge Barral
5c94ec6a65 First public commit 2022-10-12 05:33:16 +02:00