public uint RunOnWordAndGetState(uint[] W) { AchaAutomateDeterministeWithState MyStateMachine = MakeMachineWithState(); for (uint i = 0; i < W.Length; i++) { MyStateMachine.EatLetterAndReturnState(W[i]); } return(MyStateMachine.GetState()); }
public AchaAutomateDeterministeWithState MakeMachineWithState() { AchaAutomateDeterministeWithState MyStateMachine = new AchaAutomateDeterministeWithState(this); return(MyStateMachine); }