/** * <summary>Another constructor of {@link FsmParse} class which takes a {@link Double} number and a {@link State} as inputs. * First, it creates a {@link TxtWord} with given number and adds flag to this number as IS_SAYI and initializes root variable with * number {@link TxtWord}. It also initializes form with root's name, pos and initialPos with given {@link State}'s POS, creates 4 new * {@link ArrayList} suffixList, formList, transitionList and withList and adds given {@link State} to suffixList, form to * formList.</summary> * * <param name="number"> {@link Double} input.</param> * <param name="startState">{@link State} input.</param> */ public FsmParse(double number, State startState) { TxtWord num = new TxtWord("" + number); num.AddFlag("IS_SAYI"); this.root = num; this._form = root.GetName(); this._pos = startState.GetPos(); this._initialPos = startState.GetPos(); _suffixList = new List <State> { startState }; _formList = new List <string> { this._form }; _transitionList = new List <string>(); _withList = new List <string>(); }