net.sourceforge.fuzzyservices.beans
Class Consequent

java.lang.Object
  extended by net.sourceforge.fuzzyservices.beans.Consequent
All Implemented Interfaces:
Serializable

public class Consequent
extends Object
implements Serializable

This class represents an then-clause (consequent) of a rule according to JavaBeans conventions.

Version:
1.0
Author:
Uwe Weng
See Also:
Consequent, Serialized Form

Field Summary
static String LINGUISTIC_TERM_NAME_PROPERTY
          Bound property name for linguisticTermName.
static String LINGUISTIC_VARIABLE_NAME_PROPERTY
          Bound property name for linguisticVariableName.
 
Constructor Summary
Consequent()
          Default Consequent constructor.
Consequent(String newLinguisticVariableName, String newLinguisticTermName)
          Constructs an new antecedent with specified property values.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a PropertyChangeListener to the listener list.
 Object clone()
           
 boolean equals(Object obj)
           
 String getLinguisticTermName()
          Returns the name of a linguistic term belongs to the consequent.
 String getLinguisticVariableName()
          Returns the name of a linguistic variable belongs to the consequent.
 int hashCode()
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a PropertyChangeListener from the listener list.
 void setLinguisticTermName(String lingTermName)
          Sets the name of a linguistic term belongs to the consequent.
 void setLinguisticVariableName(String lingVariableName)
          Sets the name of a linguistic variable belongs to this consequent.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LINGUISTIC_VARIABLE_NAME_PROPERTY

public static final String LINGUISTIC_VARIABLE_NAME_PROPERTY
Bound property name for linguisticVariableName.

See Also:
Constant Field Values

LINGUISTIC_TERM_NAME_PROPERTY

public static final String LINGUISTIC_TERM_NAME_PROPERTY
Bound property name for linguisticTermName.

See Also:
Constant Field Values
Constructor Detail

Consequent

public Consequent()
Default Consequent constructor.


Consequent

public Consequent(String newLinguisticVariableName,
                  String newLinguisticTermName)
Constructs an new antecedent with specified property values.

Parameters:
newLinguisticVariableName - The new value for the property linguisticVariableName.
newLinguisticTermName - The new value for the property linguisticTermName.
newCompatibilityOperator - The new value for the property compatibilityOperator.
Method Detail

getLinguisticTermName

public String getLinguisticTermName()
Returns the name of a linguistic term belongs to the consequent.

Returns:
the linguisticTermName property
See Also:
setLinguisticTermName(java.lang.String)

getLinguisticVariableName

public String getLinguisticVariableName()
Returns the name of a linguistic variable belongs to the consequent.

Returns:
the linguisticVariableName property
See Also:
setLinguisticVariableName(java.lang.String)

setLinguisticTermName

public final void setLinguisticTermName(String lingTermName)
Sets the name of a linguistic term belongs to the consequent.

Parameters:
lingTermName - The new value for the property.
See Also:
getLinguisticTermName()

setLinguisticVariableName

public final void setLinguisticVariableName(String lingVariableName)
Sets the name of a linguistic variable belongs to this consequent. Additionally, the linguisticTermName property is set to null.

Parameters:
lingVariableName - The new value for the property.
See Also:
getLinguisticVariableName()

addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties.

A PropertyChangeEvent will get fired in response to setting a bound property.

Parameters:
listener - the PropertyChangeListener to be added

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Parameters:
listener - the PropertyChangeListener to be removed

clone

public Object clone()
Overrides:
clone in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Fuzzy Services. All Rights Reserved.