Examples of NM


Examples of operators.NM

            for (FaspConstant tt1 : town) {
              for (FaspConstant tt2 : town) {
                if (!(((t1.equals(tt1)) && (t2.equals(tt2))) || ((t1.equals(tt2))
                    || (t2.equals(tt1))))
                    && (!tt1.equals(tt2))) {
                  GroundLiteral betaLit = createLiteral("loc", true, new NM(), a, tt1, tt2);
                  body.add(betaLit);
                }
              }
            }
View Full Code Here

Examples of operators.NM

//    GroundRule tDistRule = new GroundRegularRule(tDistHead, tDistBody, new TM());
//    rules.add(tDistRule);

    GroundLiteral aHead = createRegLiteral("a");
    ArrayList<FaspFuzzyExpression> aBody = new ArrayList<FaspFuzzyExpression>();
    aBody.add(createNafLiteral("b",new NM()));
    GroundRule aRule = new GroundRegularRule(aHead,aBody,new TW());

    GroundLiteral bHead = createRegLiteral("b");
    ArrayList<FaspFuzzyExpression> bBody = new ArrayList<FaspFuzzyExpression>();
    bBody.add(createNafLiteral("a",new NM()));
    GroundRule bRule = new GroundRegularRule(bHead,bBody,new TW());

    ArrayList<GroundRule> rules = new ArrayList<GroundRule>();
    rules.add(aRule);
    rules.add(bRule);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.