nrc.fuzzy.jess
Class FuzzyFunctions.getFuzzyGlobalContributionOperator

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

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

Userfunction class:

Implements the Jess user function (get-fuzzy-global-contribution-operator)

The function takes no arguments and return an indicator of the way fuzzy global contribution should be done when 'identical' facts with fuzzy values are asserted. The values will be one of:

union - combine the fuzzy values using the fuzzy union operation (this is the default).
sum - combine the fuzzy values using the fuzzy sum operation.
none - do not combine the fuzzy values; replace the old value with the new one.


Constructor Summary
FuzzyFunctions.getFuzzyGlobalContributionOperator()
           
 
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.getFuzzyGlobalContributionOperator

public FuzzyFunctions.getFuzzyGlobalContributionOperator()
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 union, sum or none.
context -
Returns:
an RU.ATOM with union, sum or none as a value or throws a JessException if it fails (has arguments or not a recognized operator .... may be an internal error suggesting that the FuzzyJess function needs to be updated to reflect new global operators that have been added.
Throws:
jess.JessException