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

org.drools.verifier.components.RulePackage Maven / Gradle / Ivy

There is a newer version: 9.44.0.Final
Show newest version
package org.drools.verifier.components;

import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author Toni Rikkola
 */
public class RulePackage extends VerifierComponent {

	private static int index = 0;

	private int offset = 0;
	private String name;
	private Set rules = new HashSet();

	public RulePackage() {
		super(index++);
	}

	@Override
	public VerifierComponentType getComponentType() {
		return VerifierComponentType.RULE_PACKAGE;
	}
	
	public int getOffset(){ 
	    offset++;
        return offset % 2;
	}	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getRules() {
		return rules;
	}

	public void setRules(Set rules) {
		this.rules = rules;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy