@@ -44,11 +44,11 @@ public class FluentImplementation<TS, TT, TD> : GlobalTransitionBuilderFluent<TS
4444 protected Dictionary < Tuple < TS > , StateModel < TS , TT , TD > > stateModels =
4545 new Dictionary < Tuple < TS > , StateModel < TS , TT , TD > > ( ) ;
4646
47- protected Dictionary < Tuple < TS , TS > , TransitionModel < TS , TT , TD > > transitionModels =
48- new Dictionary < Tuple < TS , TS > , TransitionModel < TS , TT , TD > > ( ) ;
47+ protected Dictionary < Tuple < TS , TS > , TransitionModel < TS , TT > > transitionModels =
48+ new Dictionary < Tuple < TS , TS > , TransitionModel < TS , TT > > ( ) ;
4949
50- protected Dictionary < Tuple < TS > , TransitionModel < TS , TT , TD > > globalTransitionModels =
51- new Dictionary < Tuple < TS > , TransitionModel < TS , TT , TD > > ( ) ;
50+ protected Dictionary < Tuple < TS > , TransitionModel < TS , TT > > globalTransitionModels =
51+ new Dictionary < Tuple < TS > , TransitionModel < TS , TT > > ( ) ;
5252
5353 public FluentImplementation ( TS startState )
5454 {
@@ -63,8 +63,7 @@ public Fsm<TS, TT, TD> Build()
6363 }
6464
6565 FsmModel . Current = FsmModel . States [ startState ] ;
66- Fsm < TS , TT , TD > fsm = new Fsm < TS , TT , TD > ( FsmModel ) ;
67- return fsm ;
66+ return new Fsm < TS , TT , TD > ( FsmModel ) ;
6867 }
6968
7069 public StateFluent < TS , TT , TD > State ( TS state )
@@ -101,8 +100,8 @@ public GlobalTransitionFluent<TS, TT, TD> GlobalTransitionTo(TS state)
101100 currentGlobalTransition = Tuple . Create ( state ) ;
102101 if ( ! globalTransitionModels . ContainsKey ( currentGlobalTransition ) )
103102 {
104- globalTransitionModels [ currentGlobalTransition ] =
105- new TransitionModel < TS , TT , TD > ( startState , state ) ;
103+ globalTransitionModels [ currentGlobalTransition ] = new TransitionModel < TS , TT > ( startState , state ) ;
104+ new TransitionModel < TS , TT > ( startState , state ) ;
106105 FsmModel . GlobalTransitions [ state ] =
107106 new Transition < TS , TT , TD > ( globalTransitionModels [ currentGlobalTransition ] ) ;
108107 }
@@ -127,7 +126,7 @@ public TransitionFluent<TS, TT, TD> TransitionTo(TS state)
127126 currentTransition = Tuple . Create ( currentState . Item1 , state ) ;
128127 if ( ! transitionModels . ContainsKey ( currentTransition ) )
129128 {
130- transitionModels [ currentTransition ] = new TransitionModel < TS , TT , TD > ( currentState . Item1 ,
129+ transitionModels [ currentTransition ] = new TransitionModel < TS , TT > ( currentState . Item1 ,
131130 state ) ;
132131 stateModels [ currentState ] . Transitions [ state ] =
133132 new Transition < TS , TT , TD > ( transitionModels [ currentTransition ] ) ;
0 commit comments