Hi All,
I have created Final State Machine , using DFA::Sample.
My quest` is: how I can use MORE than one instances of my FSM
simultaneously.

something like this:

I have:
    my $fsm = new DFA::Simple  [EMAIL PROTECTED];
I need
    my $fsm[0] = new DFA::Simple  [EMAIL PROTECTED];  # FIRST INSTANCE of FSM
    my $fsm[1] = new DFA::Simple  [EMAIL PROTECTED];  # SECOND INSTANCE of FSM

I have:
    $fsm->State(state1);
   $fsm->Check_For_NextState();
I need:
    $fsm[0]->State(state1);
    $fsm[0]->Check_For_NextState();

    $fsm[1]->State(state2);                        # It's not working
correctly, fsm[1] is in state1 already !!!!
    $fsm[1]->Check_For_NextState();


And It's not working because the don't run independently !!! Instance of
fsm[0]  remembers the state of fsm[1].
Pls advice me , How I can run two independent instances of the same fsm
Thank you in advance,
A.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to