Ejemplo n.º 1
0
        public RequestNC(inStateRequestNC isr)
        {
            switch (isr) //permet de démarrer la machine dans n'importe quel état
            {
                case inStateRequestNC.Withdraw :
                    state = new StateRequestNCWithdrawn(this);
                    break;
                case inStateRequestNC.Create:
                    state = new StateRequestNCCreate(this);
                    break;
                case inStateRequestNC.FillForm:
                    state = new StateRequestNCFillForm(this);
                    break;
                case inStateRequestNC.Arrival:
                    state = new StateRequestNCArrival(this);
                    break;

                case inStateRequestNC.Close:
                    state = new StateRequestNCCreate(this);
                    break;
            }
        }
Ejemplo n.º 2
0
 public void Withdraw()
 {
     state = state.Withdraw();
 }
Ejemplo n.º 3
0
 public void FillForm()
 {
     state = state.FillForm();
 }
Ejemplo n.º 4
0
 public void Create()
 {
     state = state.Create();
 }
Ejemplo n.º 5
0
 public void Close()
 {
     state = state.Close();
 }
Ejemplo n.º 6
0
 public void Arrival()
 {
     state = state.Arrival();
 }