public class T1_Antecedent
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable
Constructor and Description |
---|
T1_Antecedent(java.lang.String name,
T1MF_Interface mF,
Input input)
Creates a new instance of Antecedent
|
T1_Antecedent(T1MF_Interface mF,
Input input)
Creates a new instance of Antecedent
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Allows the comparison of two antecedents, based on their membership functions.
|
double |
getFS()
Returns the firing strength for the given antecedent using the current input supplied.
|
Input |
getInput() |
T1MF_Interface |
getMF()
Returns the membership function defining the consequent.
|
java.lang.String |
getName() |
void |
setMF(T1MF_Interface mF)
Allows changing the membership function defining the antecedent
|
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
public T1_Antecedent(T1MF_Interface mF, Input input)
mF
- The actual membership function to associated with this antecedent.input
- The input to associate with this antecedent.public T1_Antecedent(java.lang.String name, T1MF_Interface mF, Input input)
name
- Name of the antecedent.mF
- The actual membership function to associated with this antecedent.input
- The input to associate with this antecedent.public void setMF(T1MF_Interface mF)
mF
- The new membership function.public T1MF_Interface getMF()
public Input getInput()
public java.lang.String getName()
public void setName(java.lang.String name)
public double getFS()
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
o
- The other antecedentjava.lang.ClassCastException
public java.lang.String toString()
toString
in class java.lang.Object