Package operators

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


//    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

Related Classes of operators.NM

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.