|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.FuzzySet
public class FuzzySet
This class represents a fuzzy setDegreeOfMembership according to JavaBeans conventions.
FuzzySet,
Serialized Form| Field Summary | |
|---|---|
static String |
CONVEX_PROPERTY
Bound property name for convex. |
static String |
HEIGHT_PROPERTY
Bound property name for height. |
static String |
MEMBERSHIP_FUNCTION_PROPERTY
Bound property name for membershipFunction. |
static String |
NORMALIZED_PROPERTY
Bound property name for normalized. |
static String |
VALID_FUZZY_INTERVAL_PROPERTY
Bound property name for validFuzzyInterval. |
static String |
VALID_FUZZY_LR_INTERVAL_PROPERTY
Bound property name for validFuzzyLRInterval. |
static String |
VALID_FUZZY_LR_NUMBER_PROPERTY
Bound property name for validFuzzyLRNumber. |
static String |
VALID_FUZZY_NUMBER_PROPERTY
Bound property name for validFuzzyLRNumber. |
| Constructor Summary | |
|---|---|
FuzzySet()
Default FuzzySet constructor. |
|
FuzzySet(MembershipFunction newMembershipFunction)
Creates a new FuzzySet. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
Object |
clone()
|
void |
concentrate()
Concentrates this fuzzy setDegreeOfMembership. |
void |
dilate()
Dilates this fuzzy setDegreeOfMembership. |
boolean |
equals(Object obj)
|
float |
getHeight()
Returns the height of this fuzzy set. |
int |
getId()
Returns the technical identifier (e.g. within a database). |
MembershipFunction |
getMembershipFunction()
Returns the membership function. |
int |
hashCode()
|
boolean |
isConvex()
Checks whether the membership function is convex. |
boolean |
isNormalized()
Checks whether the membership function is normalized. |
boolean |
isValidFuzzyInterval()
Checks whether the fuzzy set fulfills the requirements of a fuzzy interval. |
boolean |
isValidFuzzyLRInterval()
Checks whether the fuzzy set fulfills the requirements of a fuzzy LR interval. |
boolean |
isValidFuzzyLRNumber()
Checks whether the fuzzy set fulfills the requirements of a fuzzy LR number. |
boolean |
isValidFuzzyNumber()
Checks whether the fuzzy set fulfills the requirements of a fuzzy number. |
void |
normalize()
Normalizes this fuzzy set. |
void |
propertyChange(PropertyChangeEvent evt)
|
void |
reciproce()
Computes the reciproce fuzzy set. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
setMembershipFunction(MembershipFunction newMembershipFunction)
Sets the membership function. |
String |
toString()
|
String |
toString(boolean withMembershipFunction)
Returns a textual representation of the fuzzy set |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MEMBERSHIP_FUNCTION_PROPERTY
membershipFunction.
public static final String CONVEX_PROPERTY
convex.
public static final String HEIGHT_PROPERTY
height.
public static final String NORMALIZED_PROPERTY
normalized.
public static final String VALID_FUZZY_NUMBER_PROPERTY
validFuzzyLRNumber.
public static final String VALID_FUZZY_LR_NUMBER_PROPERTY
validFuzzyLRNumber.
public static final String VALID_FUZZY_INTERVAL_PROPERTY
validFuzzyInterval.
public static final String VALID_FUZZY_LR_INTERVAL_PROPERTY
validFuzzyLRInterval.
| Constructor Detail |
|---|
public FuzzySet()
FuzzySet constructor.
public FuzzySet(MembershipFunction newMembershipFunction)
FuzzySet.
newMembershipFunction - membership function of the fuzzy set| Method Detail |
|---|
public int getId()
public final MembershipFunction getMembershipFunction()
membershipFunction propertysetMembershipFunction(MembershipFunction)public final void setMembershipFunction(MembershipFunction newMembershipFunction)
newMembershipFunction - The new value for the property.getMembershipFunction()
public final void concentrate()
throws PropertyVetoException
PropertyVetoException - when the attempt to set the property is
vetoed by a listener
public final void dilate()
throws PropertyVetoException
PropertyVetoException - when the attempt to set the property is
vetoed by a listenerpublic final float getHeight()
public final boolean isConvex()
true if membership function is convex
false, otherwisepublic final boolean isNormalized()
true if membership function is normalized
false, otherwisegetHeight()public final boolean isValidFuzzyInterval()
true if the membership function would be a fuzzy
interval false, otherwiseisNormalized(),
isConvex()public final boolean isValidFuzzyLRInterval()
true if the fuzzy set would be a fuzzy LR interval
false, otherwiseisValidFuzzyInterval()public final boolean isValidFuzzyLRNumber()
true if the fuzzy set would be a fuzzy LR number
false, otherwiseisValidFuzzyNumber()public final boolean isValidFuzzyNumber()
true if the fuzzy set would be a fuzzy number
false, otherwiseisNormalized(),
isConvex()
public final void normalize()
throws PropertyVetoException
PropertyVetoException - when the attempt to set the property is
vetoed by a listener
public final void reciproce()
throws PropertyVetoException
PropertyVetoException - when the attempt to set the property is
vetoed by a listenerpublic 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 removedpublic final void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic 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 Objectpublic String toString(boolean withMembershipFunction)
withMembershipFunction - true if all points of membership function are also returned,
false otherwise.
MembershipFunction.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||