in reply to Re^9: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?
> You may be able to delegate most of the work needed to perform the subtasks to other objects (which would be unidimensional state machines).
This would be my first choice.
The main object has attributes referencing the state objects.
> But there would be a point where you have to handle the interaction between them using a multidimensional state machine.
Thats where I would use "proxy"/wrapper methods in the class of the main object.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|