nrc.fuzzy.jess
Class FuzzyFunctions.setDefaultAntecedentCombineOperator

java.lang.Object
  |
  +--nrc.fuzzy.jess.FuzzyFunctions.setDefaultAntecedentCombineOperator
All Implemented Interfaces:
jess.Userfunction
Enclosing class:
FuzzyFunctions

public class FuzzyFunctions.setDefaultAntecedentCombineOperator
extends java.lang.Object
implements jess.Userfunction

Userfunction class:

Implements the Jess user function (set-default-antecedent-combine-operator)

The function takes one argument that specifies which operator should be used to combine the antecedent/input match values when a fuzzt rule is fired. The values can be one of:

minimum - use the minimum of the match values of the antecedent/input pairs (this is the default).
product - use the product of the match values of the antecedent/input pairs.
compensatoryAnd - use the 'compensatory and' of the match values of the antecedent/input pairs.


Constructor Summary
FuzzyFunctions.setDefaultAntecedentCombineOperator()
           
 
Method Summary
 jess.Value call(jess.ValueVector vv, jess.Context context)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzyFunctions.setDefaultAntecedentCombineOperator

public FuzzyFunctions.setDefaultAntecedentCombineOperator()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface jess.Userfunction
Returns:
String the name of the Jess function

call

public jess.Value call(jess.ValueVector vv,
                       jess.Context context)
                throws jess.JessException
Specified by:
call in interface jess.Userfunction
Parameters:
vv - a ValueVector with the function arguments (1 argument). The argument is a symbol or string and must be one of minimum, product or compensatoryAnd.
context -
Returns:
Value TRUE if the setting of the default combine operator is successful or throws a JessException if it fails (argument was not in correct range of allowed values).
Throws:
jess.JessException