Eventually, an example with 2 doors later in this thread. It has 2 doors that can be opened/closed, and locked/unlocked.
The same could be achieved with only 2 Roles (CanBe::Opened, CanBe::Locked), which would each have a state. But still, i'm happy to have learned how to unapply a Role.
In reply to Re^12: a State machine with Roles - possible? (class or instance)
by mascip
in thread a State machine with Roles - possible?
by mascip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |