public class T1_Rule
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
T1_Rule(T1_Antecedent[] antecedents,
T1_Consequent consequent)
Creates a new instance of Rule with a single consequent
|
T1_Rule(T1_Antecedent[] antecedents,
T1_Consequent[] consequents)
Creates a new instance of Rule
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareBasedOnAntecedents(T1_Rule r)
Performs a comparison operation by comparing the rule objects solely based
on their antecedents.
|
T1_Antecedent[] |
getAntecedents() |
T1_Consequent[] |
getConsequents() |
java.util.Iterator<T1_Consequent> |
getConsequentsIterator() |
double |
getFStrength(byte tNorm)
Returns the rule's firing strength.
|
Input[] |
getInputs()
Returns the inputs of the antecedents used in the current rule.
|
int |
getNumberOfAntecedents() |
int |
getNumberOfConsequents() |
java.lang.String |
toString() |
public T1_Rule(T1_Antecedent[] antecedents, T1_Consequent consequent)
antecedents
- The array of antecedentsconsequent
- The consequent (only a single consequent is supported here)public T1_Rule(T1_Antecedent[] antecedents, T1_Consequent[] consequents)
antecedents
- The array of antecedentsconsequents
- The array of consequentspublic int getNumberOfAntecedents()
public int getNumberOfConsequents()
public T1_Antecedent[] getAntecedents()
public T1_Consequent[] getConsequents()
public java.util.Iterator<T1_Consequent> getConsequentsIterator()
public Input[] getInputs()
public boolean compareBasedOnAntecedents(T1_Rule r)
public double getFStrength(byte tNorm)
tNorm
- Either product (0) or minimum (1) is currently supported.public java.lang.String toString()
toString
in class java.lang.Object