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

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

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

/**
 * 
 * @author Toni Rikkola
 */
public class Subsumption implements Cause {

	private static int index = 0;

	private final int id = index++;

	private final Cause left;
	private final Cause right;

	public Subsumption(Cause left, Cause right) {
		this.left = left;
		this.right = right;
	}

	public int getId() {
		return id;
	}

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

	public Cause getLeft() {
		return left;
	}

	public Cause getRight() {
		return right;
	}

	@Override
	public String toString() {
		return "Subsumption between: (" + getLeft() + ") and (" + getRight()
				+ ").";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy