|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.FuzzyLRNumber
public class FuzzyLRNumber
This class represents a fuzzy number of type LR according to JavaBeans conventions.
FuzzyLRNumber,
Serialized Form| Field Summary | |
|---|---|
static String |
ALPHA_PROPERTY
Bound property name for alpha. |
static String |
BETA_PROPERTY
Bound property name for beta. |
static String |
MEMBERSHIP_FUNCTION_PROPERTY
Bound property name for membershipFunction. |
static String |
NEGATIVE_PROPERTY
Bound property name for negative. |
static String |
POSITIVE_PROPERTY
Bound property name for positive. |
| Constructor Summary | |
|---|---|
FuzzyLRNumber()
Default FuzzyNumberBean constructor. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
Object |
clone()
|
boolean |
equals(Object obj)
|
float |
getAlpha()
Returns the spread on the left falling edge. |
float |
getBeta()
Returns the spread on the right falling edge. |
int |
getId()
Returns the technical identifier (e.g. within a database). |
MembershipFunction |
getMembershipFunction()
Returns the membership function. |
int |
hashCode()
|
void |
invert()
Inverts this fuzzy LR number. |
boolean |
isNegative()
Checks whether the fuzzy number of type LR is negative. |
boolean |
isPositive()
Checks whether the fuzzy number of type LR is positive. |
void |
negate()
Negates this fuzzy LR number. |
void |
propertyChange(PropertyChangeEvent evt)
|
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 LR number |
void |
vetoableChange(PropertyChangeEvent evt)
|
| 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 NEGATIVE_PROPERTY
negative.
public static final String POSITIVE_PROPERTY
positive.
public static final String ALPHA_PROPERTY
alpha.
public static final String BETA_PROPERTY
beta.
| Constructor Detail |
|---|
public FuzzyLRNumber()
FuzzyNumberBean constructor. This constructor
creates a valid default fuzzy number of type LR with the coordinates
(0.0, 0.0), (1.0, 1.0) and (2.0, 0.0). Hence, this number has got an
alpha = beta = 1.0.
| 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 float getAlpha()
public final float getBeta()
public final void invert()
throws PropertyVetoException
PropertyVetoException - when the attempt to set the property is
vetoed by a listenerpublic final boolean isNegative()
true if fuzzy LR number is negative, false otherwisepublic final boolean isPositive()
true if fuzzy LR number is positive, false otherwise
public final void negate()
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 PropertyChangeListener
public final 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 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 | |||||||||