Looking for help: Don't get the picture

128 views
Skip to first unread message

mabra

unread,
May 25, 2013, 6:54:41 PM5/25/13
to dotnet-state-ma...@googlegroups.com
Hello !

Until now, I wrote my stateengines according to the OO state pattern [I think]. So, I have an object, which's
state to manage and this has a state field, where this is a concrete class of the valid states. This state class
has one method, say "Do", which executes something, which leads to one of the next states. This decision
is made in that current states method. This method updates the objects state field with a new class,
implementing just the next/fitting state. On the state-changed event, the new states class method is called ....

I do not understand triggers! Where do I have the method, which makes the work ????
Then I see ".Permit" and do not understand, why this should exist. From my example
above, only valid states and their methods are there. In ".Permit(..)", I can only defined one
destination state, where I am expecting multiple.

Any good note would probably help me a lot!

Thanks so far and
best regards,

++mabra

Simon Mingaars

unread,
May 26, 2013, 3:15:10 AM5/26/13
to dotnet-state-ma...@googlegroups.com
Use .entry() and .exit() methods to do your "work" in. Use multiple .Permit() to describe multiple transitions.

​Maybe check the introductory article? It shows most of your questions. 

"Allow" has been changes to "Permit" but the rest is still the same.

Sent from Mailbox for iPhone


--
 
---
You received this message because you are subscribed to the Google Groups "Stateless .NET State Machine Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotnet-state-machine-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

mabra

unread,
Jun 7, 2013, 7:03:17 PM6/7/13
to dotnet-state-ma...@googlegroups.com
Hi !

Much thanks so far. I made the basics. BTW, the introducery articles dont shed light into
the real world usage, I feel. Anyway, I am proceeding [slowly].

Beste regards,

++mabra
To unsubscribe from this group and stop receiving emails from it, send an email to dotnet-state-machine-framework+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages