AIMA.Core.Logic.FOL.Domain.FOLDomain.addPredicate C# (CSharp) Method

addPredicate() public method

public addPredicate ( String predicate ) : void
predicate String
return void
        public void addPredicate(String predicate)
        {
            predicates.Add(predicate);
        }

Usage Example

示例#1
0
 public static FOLDomain kingsDomain()
 {
     FOLDomain domain = new FOLDomain();
     domain.addConstant("John");
     domain.addConstant("Richard");
     domain.addPredicate("King");
     domain.addPredicate("Greedy");
     domain.addPredicate("Evil");
     return domain;
 }
All Usage Examples Of AIMA.Core.Logic.FOL.Domain.FOLDomain::addPredicate