|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.Defuzzificator
public class Defuzzificator
This class represents a defuzzificator according to JavaBeans conventions.
AbstractDefuzzificator,
Serialized Form| Field Summary | |
|---|---|
static byte |
TYPE_CENTER_OF_AREA
Constant that defines the center-of-area method as type. |
static byte |
TYPE_LEFT_OF_MAX
Constant that defines the left-of-max method as type. |
static byte |
TYPE_MEAN_OF_MAX
Constant that defines the mean-of-max method as type. |
static String |
TYPE_PROPERTY
Bound property name for type. |
static byte |
TYPE_RIGHT_OF_MAX
Constant that defines the right-of-max method as type. |
| Constructor Summary | |
|---|---|
Defuzzificator()
Default Defuzzificator constructor. |
|
Defuzzificator(byte newType)
Constructs a new defuzzifcator. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
float |
defuzzify(FuzzySet fuzzySet)
Defuzzifies the fuzzySet object using the specified type. |
byte |
getType()
Returns the type of this defuzzificator. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
setType(byte newType)
Sets the defuzzification type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte TYPE_CENTER_OF_AREA
type.
setType(byte),
net.sourceforge.fuzzyservices.core.defuzzification.CenterOfArea,
Constant Field Valuespublic static final byte TYPE_LEFT_OF_MAX
type.
setType(byte),
net.sourceforge.fuzzyservices.core.defuzzification.LeftOfMax,
Constant Field Valuespublic static final byte TYPE_MEAN_OF_MAX
type.
setType(byte),
net.sourceforge.fuzzyservices.core.defuzzification.MeanOfMax,
Constant Field Valuespublic static final byte TYPE_RIGHT_OF_MAX
type.
setType(byte),
net.sourceforge.fuzzyservices.core.defuzzification.RightOfMax,
Constant Field Valuespublic static final String TYPE_PROPERTY
type.
| Constructor Detail |
|---|
public Defuzzificator()
Defuzzificator constructor.
public Defuzzificator(byte newType)
newType - The new value for the property type.| Method Detail |
|---|
public final byte getType()
type propertysetType(byte)public final void setType(byte newType)
newType - The new value for the property.getType()public final float defuzzify(FuzzySet fuzzySet)
fuzzySet object using the specified type.
fuzzySet - The fuzzy set to be defuzzified
setType(byte)public final 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 final 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||