|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.LinguisticTerm
public class LinguisticTerm
This class represents a term of a linguistic variable according to JavaBeans conventions.
LinguisticVariable,
Serialized Form| Field Summary | |
|---|---|
static String |
NAME_PROPERTY
Bound property name for name. |
static String |
PROPERTY_FUZZY_SET
Bound property name for fuzzySet. |
| Constructor Summary | |
|---|---|
LinguisticTerm()
Default LinguisticTerm constructor. |
|
LinguisticTerm(String newName,
FuzzySet newFuzzySet)
Constructs a new linguistic Term based on a name and a fuzzy set. |
|
| 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()
|
boolean |
equals(Object obj)
|
FuzzySet |
getFuzzySet()
Returns the fuzzy set of this linguistic term. |
int |
getId()
Returns the technical identifier (e.g. within a database). |
String |
getName()
Returns the name of this linguistic term. |
int |
hashCode()
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes a VetoableChangeListener from the listener list. |
void |
setFuzzySet(FuzzySet newFuzzySet)
Sets a new fuzzy set. |
void |
setName(String newName)
Sets the name of this linguistic term. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME_PROPERTY
name.
public static final String PROPERTY_FUZZY_SET
fuzzySet.
| Constructor Detail |
|---|
public LinguisticTerm()
LinguisticTerm constructor.
public LinguisticTerm(String newName,
FuzzySet newFuzzySet)
newName - The new value for the property.newFuzzySet - The new value for the property.| Method Detail |
|---|
public int getId()
public final String getName()
name propertysetName(java.lang.String)public final FuzzySet getFuzzySet()
fuzzySet propertysetFuzzySet(net.sourceforge.fuzzyservices.beans.FuzzySet)public final void setFuzzySet(FuzzySet newFuzzySet)
newFuzzySet - The new value for the property.getFuzzySet()
public final void setName(String newName)
throws PropertyVetoException
newName - The new value for the property.
PropertyVetoException - when the attempt to set the property is
vetoed by a listenergetName()public final void addVetoableChangeListener(VetoableChangeListener listener)
VetoableChangeListener to the listener list. The
listener is registered for all properties.
listener - the VetoableChangeListener to be addedpublic final 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 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 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 | |||||||||