Axiom.Runtime.AbstractMachineState.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : bool
return bool
        public bool Stop()
        {
            return _program.Stop() && _dataArea.Stop();
        }

Usage Example

        public void Transition()
        {
            ArrayList prog = new ArrayList();
            prog.Add(new NopInstruction());
            prog.Add(new HaltInstruction());

            AbstractMachineState state = new AbstractMachineState(new AMFactory());

            state.Initialize(prog);
            state.Transition();

            Assert.IsTrue(state.Stop());
        }