AIMA.Core.Logic.FOL.KB.FOLKnowledgeBaseFactory.createWeaponsKnowledgeBase C# (CSharp) Method

createWeaponsKnowledgeBase() public static method

public static createWeaponsKnowledgeBase ( InferenceProcedure infp ) : FOLKnowledgeBase
infp InferenceProcedure
return FOLKnowledgeBase
        public static FOLKnowledgeBase createWeaponsKnowledgeBase(
                InferenceProcedure infp)
        {
            FOLKnowledgeBase kb = new FOLKnowledgeBase(DomainFactory
                    .weaponsDomain(), infp);
            kb
                    .tell("( (((American(x) AND Weapon(y)) AND Sells(x,y,z)) AND Hostile(z)) => Criminal(x))");
            kb.tell(" Owns(Nono, M1)");
            kb.tell(" Missile(M1)");
            kb.tell("((Missile(x) AND Owns(Nono,x)) => Sells(West,x,Nono))");
            kb.tell("(Missile(x) => Weapon(x))");
            kb.tell("(Enemy(x,America) => Hostile(x))");
            kb.tell("American(West)");
            kb.tell("Enemy(Nono,America)");

            return kb;
        }