// Use this for initialization // <summary> // This method allows the starting of the FSM based on this FA // </summary> // <remarks>It must be called when the FA is complete</remarks> public override void Start() { //Start Method as Deterministic StatesCredits = new Dictionary <int, int>(); foreach (State st in StatesList) { if (st.isInitial()) { existInitial = true; initiallyEnabled.Add(st); //this.initial = st; positionInGraph = StatesList.IndexOf(st); } //add to a dictionary of credits StatesCredits.Add(st.getTag(), (int)st.getCredits()); //st.setEnabledBy(EnableByEvents(st)); if (st.getSubFA() != null) { st.getSubFA().Start(); } } }
// <summary> // This method allows the starting of the FSM based on this FA // </summary> // <remarks>It must be called when the FA is complete</remarks> public override void Start() { foreach (State st in StatesList) { if (st.isInitial()) { this.existInitial = true; this.initial = st; positionInGraph = StatesList.IndexOf(st); } if (st.getSubFA() != null) { st.getSubFA().Start(); } } }