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

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

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

/**
 * 
 * Two causes are incompatible.
 * 

* For example: Restrictions (a > b) and (a == b) * * @author Toni Rikkola */ public class Incompatibility implements Cause { private static int index = 0; private final int id = index++; private final Cause left; private final Cause right; public Incompatibility(Cause left, Cause right) { this.left = left; this.right = right; } public int getId() { return id; } public CauseType getCauseType() { return CauseType.INCOMPATIBLE; } public Cause getLeft() { return left; } public Cause getRight() { return right; } @Override public String toString() { return "(" + getLeft() + ") and (" + getRight() + ") are incompatible."; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy