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

org.drools.verifier.report.components.AlwaysTrue Maven / Gradle / Ivy

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

/**
 * Pattern, rule or similar that is always satisfied.
 * 
 * @author trikkola
 * 
 */
public class AlwaysTrue implements Cause {

	private static int index = 0;

	private final int id = index++;

	private final Cause cause;

	/**
	 * 
	 * @param cause
	 *            Component that is always satisfied.
	 */
	public AlwaysTrue(Cause cause) {
		this.cause = cause;
	}

	public CauseType getCauseType() {
		return CauseType.ALWAYS_TRUE;
	}

	public int getId() {
		return id;
	}

	public Cause getCause() {
		return cause;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy