nrc.fuzzy.jess
Class UnionGlobalContributionOperator
java.lang.Object
|
+--nrc.fuzzy.jess.GlobalContributionOperator
|
+--nrc.fuzzy.jess.UnionGlobalContributionOperator
- All Implemented Interfaces:
- java.lang.Cloneable, GlobalContributionOperatorInterface, java.io.Serializable
- public class UnionGlobalContributionOperator
- extends GlobalContributionOperator
- implements java.io.Serializable
A class that provides a 'union' 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
,
SumGlobalContributionOperator
,
Serialized Form
Method Summary |
nrc.fuzzy.FuzzyValue |
execute(nrc.fuzzy.FuzzyValue newFuzzyValue,
nrc.fuzzy.FuzzyValue existingFuzzyValue)
Class that implements the Union operator via an
execute method that accepts 2 fuzzy values and
returns a fuzzy value that is the result of doing the fuzzy union. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnionGlobalContributionOperator
public UnionGlobalContributionOperator()
execute
public nrc.fuzzy.FuzzyValue execute(nrc.fuzzy.FuzzyValue newFuzzyValue,
nrc.fuzzy.FuzzyValue existingFuzzyValue)
throws IncompatibleFuzzyValuesException,
XValueOutsideUODException
- Class that implements the Union operator via an
execute method that accepts 2 fuzzy values and
returns a fuzzy value that is the result of doing the fuzzy union.
- 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 union of the 2 values
IncompatibleFuzzyValuesException
XValueOutsideUODException