public void AddState(object st)
        {
            int         stateName = (int)st;
            FiniteState fSMState  = new FiniteState();

            fSMState.SetStateName(stateName);
            states.Add(fSMState);
        }
        public void AddStateTransition(object from, object to, object tr)
        {
            int         num         = (int)from;
            int         outputState = (int)to;
            int         transition  = (int)tr;
            FiniteState fSMState    = FindStateObjByName(num);

            fSMState.AddTransition(transition, outputState);
        }