nrc.fuzzy.jess
Class SumGlobalContributionOperator
java.lang.Object
|
+--nrc.fuzzy.jess.GlobalContributionOperator
|
+--nrc.fuzzy.jess.SumGlobalContributionOperator
- All Implemented Interfaces:
- java.lang.Cloneable, GlobalContributionOperatorInterface, java.io.Serializable
- public class SumGlobalContributionOperator
- extends GlobalContributionOperator
- implements java.io.Serializable
A class that provides a 'sum' operator to combine fuzzy
values when doing global contribution. For example, when a
temperature fuzzy value is asserted by more than 1 rule,
the existing fuzzy value and the new fuzzy value are combined
to form a new fuzzy value that represents the desired way to
combine both pieces of information. This will normally be the union
of the 2 fuzzy values but can be set to other operations such as
the summ of the fuzzy values (or it can also be set to perform
no global combining and just replace the exiting value with the new one).
- See Also:
GlobalContributionOperatorInterface
,
GlobalContributionOperator
,
UnionGlobalContributionOperator
,
Serialized Form
Method Summary |
nrc.fuzzy.FuzzyValue |
execute(nrc.fuzzy.FuzzyValue newFuzzyValue,
nrc.fuzzy.FuzzyValue existingFuzzyValue)
Class that implements the Sum operator via an
execute method that accepts 2 fuzzy values and
returns a fuzzy value that is the result of doing the fuzzy sum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SumGlobalContributionOperator
public SumGlobalContributionOperator()
execute
public nrc.fuzzy.FuzzyValue execute(nrc.fuzzy.FuzzyValue newFuzzyValue,
nrc.fuzzy.FuzzyValue existingFuzzyValue)
throws IncompatibleFuzzyValuesException,
XValueOutsideUODException
- Class that implements the Sum operator via an
execute method that accepts 2 fuzzy values and
returns a fuzzy value that is the result of doing the fuzzy sum.
- Specified by:
execute
in interface GlobalContributionOperatorInterface
- Parameters:
newFuzzyValue
- should be the new FuzzyValue being assertedexistingFuzzyValue
- should be the existing FuzzyValue
- Returns:
- FuzzyValue that is the result of doing a fuzzy sum of the 2 values
IncompatibleFuzzyValuesException
XValueOutsideUODException