Axiom.Runtime.AbstractPredicate.Execute C# (CSharp) Method

Execute() public abstract method

public abstract Execute ( AbstractMachineState state ) : void
state AbstractMachineState
return void
        public abstract void Execute(AbstractMachineState state);

Usage Example

Example #1
0
        public void atom_1_int()
        {
            AbstractMachineState state = SetupMachine();
            AMProgram program = (AMProgram)state.Program;

            _p = new AtomPredicate();

            AbstractTerm X0 = (AbstractTerm)state["X0"];

            // integer
            X0.Assign(new ConstantTerm("10"));

            Choicepoint b = new Choicepoint();
            ProgramClause nextClause = new ProgramClause();
            state.B = new Choicepoint(0, null, null, b, nextClause, 2, null);

            Verify("atom", 1);
            _p.Execute(state);

            Assert.AreSame(nextClause, program.P);
        }
All Usage Examples Of Axiom.Runtime.AbstractPredicate::Execute
AbstractPredicate