nrc.fuzzy.jess
Class FuzzyFunctions.getDefaultFuzzyRuleExecutor
java.lang.Object
|
+--nrc.fuzzy.jess.FuzzyFunctions.getDefaultFuzzyRuleExecutor
- All Implemented Interfaces:
- jess.Userfunction
- Enclosing class:
- FuzzyFunctions
- public class FuzzyFunctions.getDefaultFuzzyRuleExecutor
- extends java.lang.Object
- implements jess.Userfunction
Userfunction class:
Implements the Jess user function (get-default-fuzzy-rule-executor)
The function takes no arguments. Returns one of:
mamdanimin - the MamdaniMinMaxMin rule executor is the default.
larsenproduct - the LarsenProductMaxMin rule executor is the default.
tsukamoto - the Tsukamoto rule executor is the default.
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 |
FuzzyFunctions.getDefaultFuzzyRuleExecutor
public FuzzyFunctions.getDefaultFuzzyRuleExecutor()
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 mamdanimin or larsenproduct.context
-
- Returns:
- an RU.ATOM with mamdanimin, larsenproduct or tsukamoto 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 rule executors that have been added.
- Throws:
jess.JessException