Пример #1
0
                protected internal override void InitToReadyEventDefTransition(AdditionClientServiceDef_additionClientFSMContext context)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Init.InitToReadyEventDefTransition()");
#endif


                    context.State.Exit(context);
                    context.ClearState();

                    try
                    {
                        ctxt.serviceInitializedAction();
                        ctxt.processNotifications("Ready", null);
                    }
                    finally
                    {
                        context.State = AdditionClientServiceDef_additionClientFSM_SM.Ready;
                        context.State.Entry(context);
                    }

                    return;
                }
Пример #2
0
                protected internal override void ReportAdditionTransition(AdditionClientServiceDef_additionClientFSMContext context, ReportAddition msg)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Ready.ReportAdditionTransition(, ReportAddition msg)");
#endif

                    AdditionClientServiceDef_additionClientFSMState endState = context.State;

                    context.ClearState();

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

                    return;
                }
Пример #3
0
 public AdditionClientServiceDef_additionClientFSM()
 {
     /*
      * 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 AdditionClientServiceDef_additionClientFSMContext(this);
 }
Пример #4
0
                protected internal override void ReportAdditionTransition(AdditionClientServiceDef_additionClientFSMContext context)
                {
#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Internally_Generated_State_DO_NOT_USE.ReportAdditionTransition()");
#endif


                    return;
                }
Пример #5
0
            protected internal virtual void Default(AdditionClientServiceDef_additionClientFSMContext context)
            {
#if TRACE
                Trace.WriteLine(
                    "TRANSITION : Default");
#endif
                throw (
                          new statemap.TransitionUndefinedException(
                              "State: " +
                              context.State.Name +
                              ", Transition: " +
                              context.GetTransition()));
            }
                protected internal override void ReportAdditionTransition(AdditionClientServiceDef_additionClientFSMContext context, ReportAddition msg)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Ready.ReportAdditionTransition(, ReportAddition msg)");
                    #endif

                    AdditionClientServiceDef_additionClientFSMState endState = context.State;

                    context.ClearState();

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

                    return;
                }
 protected internal virtual void Exit(AdditionClientServiceDef_additionClientFSMContext context)
 {
 }
Пример #8
0
                protected internal override void InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_InitTransition(AdditionClientServiceDef_additionClientFSMContext context, InternalEvent ie)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Ready.InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_InitTransition(, InternalEvent ie)");
#endif


                    context.State.Exit(context);
                    context.ClearState();

                    try
                    {
                        ctxt.serviceStartedAction();
                        ctxt.processNotifications("Init", ie);
                    }
                    finally
                    {
                        context.State = AdditionClientServiceDef_additionClientFSM_SM.Init;
                        context.State.Entry(context);
                    }

                    return;
                }
 protected internal virtual void InitToReadyEventDefTransition(AdditionClientServiceDef_additionClientFSMContext context)
 {
     Default(context);
 }
Пример #10
0
 protected internal virtual void ReportAdditionTransition(AdditionClientServiceDef_additionClientFSMContext context, ReportAddition msg)
 {
     Default(context);
 }
Пример #11
0
 protected internal virtual void InitToReadyEventDefTransition(AdditionClientServiceDef_additionClientFSMContext context)
 {
     Default(context);
 }
Пример #12
0
 protected internal virtual void InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_ReadyTransition(AdditionClientServiceDef_additionClientFSMContext context, InternalEvent ie)
 {
     Default(context);
 }
 protected internal virtual void Default(AdditionClientServiceDef_additionClientFSMContext context)
 {
     #if TRACE
     Trace.WriteLine(
         "TRANSITION : Default");
     #endif
     throw (
         new statemap.TransitionUndefinedException(
             "State: " +
             context.State.Name +
             ", Transition: " +
             context.GetTransition()));
 }
Пример #14
0
 protected internal virtual void Exit(AdditionClientServiceDef_additionClientFSMContext context)
 {
 }
                protected internal override void InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_InitTransition(AdditionClientServiceDef_additionClientFSMContext context, InternalEvent ie)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Ready.InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_InitTransition(, InternalEvent ie)");
                    #endif

                    context.State.Exit(context);
                    context.ClearState();

                    try
                    {
                        ctxt.serviceStartedAction();
                        ctxt.processNotifications("Init", ie);
                    }
                    finally
                    {
                        context.State = AdditionClientServiceDef_additionClientFSM_SM.Init;
                        context.State.Entry(context);
                    }

                    return;
                }
                protected internal override void ReportAdditionTransition(AdditionClientServiceDef_additionClientFSMContext context)
                {
                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Internally_Generated_State_DO_NOT_USE.ReportAdditionTransition()");
                    #endif

                    return;
                }
                protected internal override void InitToReadyEventDefTransition(AdditionClientServiceDef_additionClientFSMContext context)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionClientServiceDef_additionClientFSM_SM.Init.InitToReadyEventDefTransition()");
                    #endif

                    context.State.Exit(context);
                    context.ClearState();

                    try
                    {
                        ctxt.serviceInitializedAction();
                        ctxt.processNotifications("Ready", null);
                    }
                    finally
                    {
                        context.State = AdditionClientServiceDef_additionClientFSM_SM.Ready;
                        context.State.Entry(context);
                    }

                    return;
                }
 protected internal virtual void ReportAdditionTransition(AdditionClientServiceDef_additionClientFSMContext context, ReportAddition msg)
 {
     Default(context);
 }
 protected internal virtual void InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_ReadyTransition(AdditionClientServiceDef_additionClientFSMContext context, InternalEvent ie)
 {
     Default(context);
 }