Package stanfordlogic.prover

Examples of stanfordlogic.prover.TermVariable


    public void testSubstitution()
    {
        Substitution s = new Substitution();
       
        TermVariable v1 = TermVariable.makeTermVariable();
        TermVariable v2 = TermVariable.makeTermVariable();
        TermObject t = TermObject.makeTermObject(256);
       
        s.addMapping( v1, v2 );
        s.addMapping( v2, t );
       
View Full Code Here


    {
        Fact f1 = makeFact("legal ?x");
       
        TermFunction tf = getTermFunction("mark ?y ?z");
       
        TermVariable varX = getVariable("?x");
        TermVariable varY = getVariable("?y");
        TermVariable varZ = getVariable("?z");
       
        Substitution s = new Substitution();
        s.addMapping(varX, tf);
        s.addMapping(varY, getTermObject("1"));
        s.addMapping(varZ, getTermObject("2"));
View Full Code Here

        return TermObject.makeTermObject( parser_.getSymbolTable().get(str) );
    }
   
    private TermVariable getVariable(String str)
    {
        return new TermVariable( parser_.getSymbolTable().get(str.substring(1)) );
    }
View Full Code Here

TOP

Related Classes of stanfordlogic.prover.TermVariable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.