|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fuzzyservices.beans.Fact
public class Fact
This class represents a fact according to JavaBeans conventions.
Fact,
Serialized Form| Field Summary | |
|---|---|
static String |
LINGUISTIC_VARIABLE_NAME_PROPERTY
Bound property name for linguisticVariableName. |
static String |
VALUE_PROPERTY
Bound property name for value. |
| Constructor Summary | |
|---|---|
Fact()
Default Fact constructor. |
|
Fact(String newLinguisticVariableName,
FuzzySet newValue)
Constructs a new Fact based on the name of a linguistic variable and a value described as 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)
|
int |
getId()
Returns the technical identifier (e.g. within a database). |
String |
getLinguisticVariableName()
Returns the linguistic variable name of this fact. |
FuzzySet |
getValue()
Returns the value of this fact which is represented by a fuzzy set. |
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 |
setLinguisticVariableName(String newLinguisticVariableName)
Sets the linguistic variable name of this fact. |
void |
setValue(FuzzySet newValue)
Defines a new value for this fact. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LINGUISTIC_VARIABLE_NAME_PROPERTY
linguisticVariableName.
public static final String VALUE_PROPERTY
value.
| Constructor Detail |
|---|
public Fact()
Fact constructor.
public Fact(String newLinguisticVariableName,
FuzzySet newValue)
newLinguisticVariableName - The new value for the property.newValue - The new value for the property.| Method Detail |
|---|
public int getId()
public String getLinguisticVariableName()
linguisticVariableName propertysetLinguisticVariableName(java.lang.String)public FuzzySet getValue()
value propertysetValue(net.sourceforge.fuzzyservices.beans.FuzzySet)
public final void setLinguisticVariableName(String newLinguisticVariableName)
throws PropertyVetoException
newLinguisticVariableName - The new value for the property.
PropertyVetoException - when the attempt to set the
property is vetoed by a listenergetLinguisticVariableName()public final void setValue(FuzzySet newValue)
newValue - The new value for the property.getValue()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 | |||||||||