|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.Antecedent
public class Antecedent
This class represents an if-clause (antecedent) of a rule according to JavaBeans conventions.
Antecedent,
Serialized Form| Field Summary | |
|---|---|
static String |
COMPATIBILITY_OPERATOR_PROPERTY
Bound property name for compatibilityOperator. |
static String |
LINGUISTIC_TERM_NAME_PROPERTY
Bound property name for linguisticTermName. |
static String |
LINGUISTIC_VARIABLE_NAME_PROPERTY
Bound property name for linguisticVariableName. |
| Constructor Summary | |
|---|---|
Antecedent()
Default Antecedent constructor. |
|
Antecedent(String newLinguisticVariableName,
String newLinguisticTermName,
Operator newCompatibilityOperator)
Constructs an new antecedent with specified property values. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
Object |
clone()
|
boolean |
equals(Object obj)
|
Operator |
getCompatibilityOperator()
Returns the compatibility operator of this antecedent. |
String |
getLinguisticTermName()
Returns the name of a linguistic term belongs to the antecedent. |
String |
getLinguisticVariableName()
Returns the name of the linguistic variable belongs to this antecedent. |
int |
hashCode()
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
setCompatibilityOperator(Operator compatibilityOp)
Sets the compatibility operator of this rule. |
void |
setLinguisticTermName(String lingTermName)
Sets the name of linguistic term belongs to the antecedent. |
void |
setLinguisticVariableName(String lingVariableName)
Sets the name of a linguistic variable belongs to the antecedent. |
String |
toString()
|
void |
vetoableChange(PropertyChangeEvent evt)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COMPATIBILITY_OPERATOR_PROPERTY
compatibilityOperator.
public static final String LINGUISTIC_VARIABLE_NAME_PROPERTY
linguisticVariableName.
public static final String LINGUISTIC_TERM_NAME_PROPERTY
linguisticTermName.
| Constructor Detail |
|---|
public Antecedent()
Antecedent constructor. This constructor sets a
default compatibility operator specified in
Antecedent, and registers itself as a vetoable
change listener.
Antecedent.getDefaultCompatibilityOperator()
public Antecedent(String newLinguisticVariableName,
String newLinguisticTermName,
Operator newCompatibilityOperator)
newLinguisticVariableName - The new value for the property linguisticVariableName.newLinguisticTermName - The new value for the property linguisticTermName.newCompatibilityOperator - The new value for the property compatibilityOperator.| Method Detail |
|---|
public Operator getCompatibilityOperator()
compatibilityOperator propertysetCompatibilityOperator(net.sourceforge.fuzzyservices.beans.Operator)public String getLinguisticTermName()
linguisticTermName propertysetLinguisticTermName(java.lang.String)public String getLinguisticVariableName()
linguisticVariableName propertysetLinguisticVariableName(java.lang.String)public void setCompatibilityOperator(Operator compatibilityOp)
compatibilityOp - The new value for the property.getCompatibilityOperator()public void setLinguisticTermName(String lingTermName)
lingTermName - The new value for the property.getLinguisticTermName()public void setLinguisticVariableName(String lingVariableName)
linguisticTermName property is
set to null.
lingVariableName - The new value for the property.getLinguisticVariableName()public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener to the listener list. The
listener is registered for all properties.
A PropertyChangeEvent will get fired in response to setting
a bound property.
listener - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
listener - the PropertyChangeListener to be removed
public void vetoableChange(PropertyChangeEvent evt)
throws PropertyVetoException
vetoableChange in interface VetoableChangeListenerPropertyVetoExceptionpublic Object clone()
clone in class Objectpublic final boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||