Package org.drools.benchmark.model

Examples of org.drools.benchmark.model.A


        int aLimit = objectNr * modifications;

        as = new A[objectNr];
        for (int i = 0; i < objectNr; i++) {
            int randomInt = random.nextInt(aLimit);
            as[i] = new A(randomInt, randomInt+modifications);
        }

        bs = new B[objectNr];
        for (int i = 0; i < objectNr; i++) {
            bs[i] = new B(random.nextInt(aLimit) + (aLimit * 2));
 
View Full Code Here


    public void execute(int repNr) {
        for (int i = 0; i < aNr; i++) {
            ksession.insert(bs[i]);
        }
        ksession.insert(new A(Integer.MIN_VALUE));
        ksession.fireAllRules();
    }
View Full Code Here

        int aLimit = objectNr * modifications;

        as = new A[objectNr];
        for (int i = 0; i < objectNr; i++) {
            as[i] = new A(random.nextInt(aLimit));
        }

        bs = new B[objectNr];
        for (int i = 0; i < objectNr; i++) {
            int randomInt = random.nextInt(aLimit) + (aLimit * 2);
 
View Full Code Here

        for (int i = 0; i < objectNr; i++) {
            int randomInt = random.nextInt(aLimit);
            if (i % 2 == 1) {
                randomInt += aLimit * 3;
            }
            as[i] = new A(randomInt, randomInt+modifications);
        }

        bs = new B[objectNr];
        for (int i = 0; i < objectNr; i++) {
            int randomInt = random.nextInt(aLimit) + (aLimit * 2);
 
View Full Code Here

TOP

Related Classes of org.drools.benchmark.model.A

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.