|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.Operator
public class Operator
This class represents a fuzzy operator according to JavaBeans conventions.
AbstractOperator,
Serialized Form| Field Summary | |
|---|---|
static String |
PARAMETER_PROPERTY
Bound property name for parameter. |
static String |
TYPE_PROPERTY
Bound property name for type. |
static String |
VALID_S_NORM_PROPERTY
Bound property name for validSNorm. |
static String |
VALID_T_NORM_PROPERTY
Bound property name for validTNorm. |
| Constructor Summary | |
|---|---|
Operator()
Default Operator constructor. |
|
Operator(String newType,
float newParameter)
Constructs a new operator with specified property values. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener to the listener list. |
Object |
clone()
|
FuzzySet |
combine(FuzzySet fs1,
FuzzySet fs2)
Combines two fuzzy sets appropiated the operator type. |
boolean |
equals(Object obj)
|
float |
getParameter()
Returns the parameter of this operator. |
String |
getType()
Returns the type of this operator. |
int |
hashCode()
|
boolean |
isValidSNorm()
Indicates whether an operator fullfils the s-norm. |
boolean |
isValidTNorm()
Indicates whether an operator fullfils the t-norm. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes a VetoableChangeListener from the listener list. |
void |
setParameter(float param)
Sets the parameter of this operator. |
void |
setType(String newType)
Sets the operator type. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_PROPERTY
type.
public static final String PARAMETER_PROPERTY
parameter.
public static final String VALID_S_NORM_PROPERTY
validSNorm.
public static final String VALID_T_NORM_PROPERTY
validTNorm.
| Constructor Detail |
|---|
public Operator()
Operator constructor. The operator type is
NOT defined!
public Operator(String newType,
float newParameter)
newType - The new value for the property type.newParameter - The new value for the property parameter.| Method Detail |
|---|
public String getType()
type propertysetType(java.lang.String)
public void setType(String newType)
throws PropertyVetoException
newType - The new value for the property.
PropertyVetoException - when the attempt to set the property is
vetoed by a listenergetType()public float getParameter()
parameter propertysetParameter(float)
public void setParameter(float param)
throws PropertyVetoException
param - The new value for the property.
PropertyVetoException - when the attempt to set the property is
vetoed by a listenergetParameter()
public FuzzySet combine(FuzzySet fs1,
FuzzySet fs2)
fs1 - The first fuzzy set as operandfs2 - The second fuzzy set as operand
public boolean isValidSNorm()
true if this operator fullfils the s-norm,
false otherwise.public boolean isValidTNorm()
true if this operator fullfils the t-norm,
false otherwise.public void addVetoableChangeListener(VetoableChangeListener listener)
VetoableChangeListener to the listener list. The
listener is registered for all properties.
listener - the VetoableChangeListener to be addedpublic void removeVetoableChangeListener(VetoableChangeListener listener)
VetoableChangeListener from the listener list.
This removes a VetoableChangeListener that was registered
for all properties.
listener - the VetoableChangeListener to be removedpublic 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 removedpublic 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 | |||||||||