All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ools-benchmark.7.16.0.Final.source-code.tms_multiple.drl Maven / Gradle / Ivy

There is a newer version: 7.36.1.Final
Show newest version
/*
 * Copyright 2015 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

rule "TMS0" when
    Integer( $i : intValue < 1000000, intValue % 10 == 0 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS1" when
    Integer( $i : intValue < 1000000, intValue % 10 == 1 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS2" when
    Integer( $i : intValue < 1000000, intValue % 10 == 2 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS3" when
    Integer( $i : intValue < 1000000, intValue % 10 == 3 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS4" when
    Integer( $i : intValue < 1000000, intValue % 10 == 4 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS5" when
    Integer( $i : intValue < 1000000, intValue % 10 == 5 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS6" when
    Integer( $i : intValue < 1000000, intValue % 10 == 6 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS7" when
    Integer( $i : intValue < 1000000, intValue % 10 == 7 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS8" when
    Integer( $i : intValue < 1000000, intValue % 10 == 8 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end

rule "TMS9" when
    Integer( $i : intValue < 1000000, intValue % 10 == 9 )
then
    insertLogical( new Integer( $i + 1 ) );
    insertLogical( new Integer( $i + 2 ) );
    insertLogical( new Integer( $i + 3 ) );
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy