How to model non-deterministic decisions in Actors? #79
Replies: 1 comment 5 replies
-
As far as I know, @jonnadal feel free to correct me, I think that the actors are supposed to be deterministic. This makes it much easier to debug their behaviour as given an input, there is only one output. Now, what you're wanting to do with the non-determinism, basing behaviour on external inputs, is pretty standard in practice but for now requires using the lower-level Model rather than an ActorModel. Unfortunately this requires reimplementing some of the nicer bits from the actor model. I'd imagine that we could create a hybrid of the two models, based around actors with a special function for generating environmental actions that can be non-deterministic. This might even generalise things like the network operations nicely. This would then let you have the main actor model and environmental impacts. Hope that helps, and I'd be interested to hear if the hybrid thing might work for your case? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for creating this really interesting tool!
I am trying to use this to model check a system in which actors can decide between one of a few possible actions depending on external inputs when a message is received.
Looking at
Out
, I only seeset_timer
,send
andbroadcast
, but I don't see how I can use them to model non-determinism in the actors. Is it possible to model that using the Actor framework?Beta Was this translation helpful? Give feedback.
All reactions