Ejemplo n.º 1
0
                protected internal override void SendTransition(Transport_SendFSMContext context, Send msg)
                {
                    Transport_SendFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "LEAVING STATE   : Transport_SendFSM_SM.Sending");
#endif

                    Transport_SendFSMState endState = context.State;

#if TRACE
                    Trace.WriteLine(
                        "ENTER TRANSITION: Transport_SendFSM_SM.Transport_SendFSM_SM.Sending.SendTransition(, Send msg)");
#endif

                    context.ClearState();

                    try
                    {
                        ctxt.EnqueueAction(msg);
                    }
                    finally
                    {
#if TRACE
                        Trace.WriteLine(
                            "EXIT TRANSITION : Transport_SendFSM_SM.Transport_SendFSM_SM.Sending.SendTransition(, Send msg)");
#endif

                        context.State = endState;
                    }

                    return;
                }
Ejemplo n.º 2
0
                protected internal override void BroadcastLocalTransition(Transport_SendFSMContext context, BroadcastLocal msg)
                {
                    Transport_SendFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : Transport_SendFSM_SM.Sending.BroadcastLocalTransition(, BroadcastLocal msg)");
#endif

                    Transport_SendFSMState endState = context.State;

                    context.ClearState();

                    try
                    {
                        ctxt.BroadcastLocalEnqueueAction(msg);
                    }
                    finally
                    {
                        context.State = endState;
                    }

                    return;
                }
Ejemplo n.º 3
0
 public Transport_SendFSM()
 {
     /*
      * If there are other variables, context must be constructed last so that all
      * class variables are available if an EntryAction of the InitialState of the
      * statemachine needs them.
      */
     context = new Transport_SendFSMContext(this);
 }
Ejemplo n.º 4
0
 public Transport_SendFSM()
 {
     /*
      * If there are other variables, context must be constructed last so that all
      * class variables are available if an EntryAction of the InitialState of the
      * statemachine needs them.
      */
     context = new Transport_SendFSMContext(this);
 }
Ejemplo n.º 5
0
                protected internal override void SendTransition(Transport_SendFSMContext context)
                {
#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : Transport_SendFSM_SM.Internally_Generated_State_DO_NOT_USE.SendTransition()");
#endif


                    return;
                }
Ejemplo n.º 6
0
            protected internal virtual void Default(Transport_SendFSMContext context)
            {
#if TRACE
                Trace.WriteLine(
                    "TRANSITION : Default");
#endif
                throw (
                          new statemap.TransitionUndefinedException(
                              "State: " +
                              context.State.Name +
                              ", Transition: " +
                              context.GetTransition()));
            }
Ejemplo n.º 7
0
                protected internal override void ReceiveTransition(Transport_SendFSMContext context)
                {
#if TRACE
                    Trace.WriteLine(
                        "LEAVING STATE   : Transport_SendFSM_SM.Internally_Generated_State_DO_NOT_USE");
#endif


#if TRACE
                    Trace.WriteLine(
                        "ENTER TRANSITION: Transport_SendFSM_SM.Transport_SendFSM_SM.Internally_Generated_State_DO_NOT_USE.ReceiveTransition()");
#endif

#if TRACE
                    Trace.WriteLine(
                        "EXIT TRANSITION : Transport_SendFSM_SM.Transport_SendFSM_SM.Internally_Generated_State_DO_NOT_USE.ReceiveTransition()");
#endif

                    return;
                }
Ejemplo n.º 8
0
 protected internal virtual void Exit(Transport_SendFSMContext context)
 {
 }
Ejemplo n.º 9
0
 protected internal virtual void BroadcastLocalTransition(Transport_SendFSMContext context, BroadcastLocal msg)
 {
     Default(context);
 }
Ejemplo n.º 10
0
 protected internal virtual void SendTransition(Transport_SendFSMContext context, Send msg)
 {
     Default(context);
 }
Ejemplo n.º 11
0
 protected internal virtual void ReceiveTransition(Transport_SendFSMContext context)
 {
     Default(context);
 }
Ejemplo n.º 12
0
 protected internal virtual void BroadcastLocalTransition(Transport_SendFSMContext context, BroadcastLocal msg)
 {
     Default(context);
 }
Ejemplo n.º 13
0
                protected internal override void SendTransition(Transport_SendFSMContext context, Send msg)
                {
                    Transport_SendFSM ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : Transport_SendFSM_SM.Sending.SendTransition(, Send msg)");
                    #endif

                    Transport_SendFSMState endState = context.State;

                    context.ClearState();

                    try
                    {
                        ctxt.EnqueueAction(msg);
                    }
                    finally
                    {
                        context.State = endState;
                    }

                    return;
                }
Ejemplo n.º 14
0
                protected internal override void SendTransition(Transport_SendFSMContext context)
                {
                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : Transport_SendFSM_SM.Internally_Generated_State_DO_NOT_USE.SendTransition()");
                    #endif

                    return;
                }
Ejemplo n.º 15
0
 protected internal virtual void SendTransition(Transport_SendFSMContext context, Send msg)
 {
     Default(context);
 }
Ejemplo n.º 16
0
 protected internal virtual void ReceiveTransition(Transport_SendFSMContext context)
 {
     Default(context);
 }
Ejemplo n.º 17
0
 protected internal virtual void Exit(Transport_SendFSMContext context)
 {
 }
Ejemplo n.º 18
0
 protected internal virtual void Default(Transport_SendFSMContext context)
 {
     #if TRACE
     Trace.WriteLine(
         "TRANSITION : Default");
     #endif
     throw (
         new statemap.TransitionUndefinedException(
             "State: " +
             context.State.Name +
             ", Transition: " +
             context.GetTransition()));
 }