org.drools.verifier.report.components.AlwaysTrue Maven / Gradle / Ivy
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