public class IT2_Rule
extends java.lang.Object
Constructor and Description |
---|
IT2_Rule(IT2_Antecedent[] antecedents,
IT2_Consequent consequent)
Standard constructor for a single consequent.
|
IT2_Rule(IT2_Antecedent[] antecedents,
IT2_Consequent[] consequents)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareBasedOnAntecedents(IT2_Rule r)
Performs a comparison operation by comparing the rule objects solely based on they antecedents.
|
IT2_Antecedent[] |
getAntecedents() |
Tuple |
getConsequentCentroid(Output o) |
IT2_Consequent[] |
getConsequents() |
java.util.Iterator<IT2_Consequent> |
getConsequentsIterator() |
Tuple |
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 IT2_Rule(IT2_Antecedent[] antecedents, IT2_Consequent consequent)
antecedents
- Array of antecedents.consequent
- The consequent.public IT2_Rule(IT2_Antecedent[] antecedents, IT2_Consequent[] consequents)
antecedents
- Array of antecedents.consequents
- Array of consequents.public int getNumberOfAntecedents()
public int getNumberOfConsequents()
public IT2_Antecedent[] getAntecedents()
public IT2_Consequent[] getConsequents()
public java.util.Iterator<IT2_Consequent> getConsequentsIterator()
public Tuple getFStrength(byte tNorm)
tNorm
- Either product (0) or minimum (1) is currently supported.public Input[] getInputs()
public boolean compareBasedOnAntecedents(IT2_Rule r)
public java.lang.String toString()
toString
in class java.lang.Object