net.sourceforge.fuzzyservices.beans
Class FuzzyCalculator

java.lang.Object
  extended by net.sourceforge.fuzzyservices.beans.FuzzyCalculator
All Implemented Interfaces:
Serializable, FuzzyCalculatorI

public class FuzzyCalculator
extends Object
implements FuzzyCalculatorI, Serializable

This class represents a fuzzy calculator according to JavaBeans conventions.

Version:
1.0
Author:
Uwe Weng
See Also:
FuzzyCalculator, Serialized Form

Constructor Summary
FuzzyCalculator()
           
 
Method Summary
 FuzzyInterval add(FuzzyInterval operand1, FuzzyInterval operand2)
          Adds fuzzy interval operand1 to fuzzy interval operand2.
 FuzzyLRInterval add(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Adds fuzzy LR interval operand1 to fuzzy LR interval operand2.
 FuzzyLRNumber add(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Adds fuzzy LR number operand1 to fuzzy LR number operand2.
 FuzzyNumber add(FuzzyNumber operand1, FuzzyNumber operand2)
          Adds fuzzy number operand1 to fuzzy number operand2.
 FuzzyInterval divide(FuzzyInterval operand1, FuzzyInterval operand2)
          Devides fuzzy interval operand1 through fuzzy interval operand2.
 FuzzyLRInterval divide(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Devides fuzzy LR interval operand1 through fuzzy LR interval operand2.
 FuzzyLRNumber divide(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Devides fuzzy LR number operand1 through fuzzy LR number operand2.
 FuzzyNumber divide(FuzzyNumber operand1, FuzzyNumber operand2)
          Devides fuzzy number operand1 through fuzzy number operand2.
 FuzzyInterval multiply(FuzzyInterval operand1, FuzzyInterval operand2)
          Multiplies fuzzy interval operand1 with fuzzy interval operand2.
 FuzzyLRInterval multiply(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Multiplies fuzzy LR interval operand1 with fuzzy LR interval operand2.
 FuzzyLRNumber multiply(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Multiplies fuzzy LR number operand1 with fuzzy LR number operand2.
 FuzzyNumber multiply(FuzzyNumber operand1, FuzzyNumber operand2)
          Multiplies fuzzy number operand1 with fuzzy number operand2.
 FuzzyInterval subtract(FuzzyInterval operand1, FuzzyInterval operand2)
          Subtracts fuzzy interval operand2 from fuzzy interval operand1.
 FuzzyLRInterval subtract(FuzzyLRInterval operand1, FuzzyLRInterval operand2)
          Subtracts fuzzy LR interval operand2 from fuzzy LR interval operand1.
 FuzzyLRNumber subtract(FuzzyLRNumber operand1, FuzzyLRNumber operand2)
          Subtracts fuzzy LR number operand2 from fuzzy LR number operand1.
 FuzzyNumber subtract(FuzzyNumber operand1, FuzzyNumber operand2)
          Subtracts fuzzy number operand2 from fuzzy number operand1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzyCalculator

public FuzzyCalculator()
Method Detail

add

public FuzzyInterval add(FuzzyInterval operand1,
                         FuzzyInterval operand2)
Description copied from interface: FuzzyCalculatorI
Adds fuzzy interval operand1 to fuzzy interval operand2.

Specified by:
add in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

add

public FuzzyLRInterval add(FuzzyLRInterval operand1,
                           FuzzyLRInterval operand2)
Description copied from interface: FuzzyCalculatorI
Adds fuzzy LR interval operand1 to fuzzy LR interval operand2.

Specified by:
add in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

add

public FuzzyLRNumber add(FuzzyLRNumber operand1,
                         FuzzyLRNumber operand2)
Description copied from interface: FuzzyCalculatorI
Adds fuzzy LR number operand1 to fuzzy LR number operand2.

Specified by:
add in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

add

public FuzzyNumber add(FuzzyNumber operand1,
                       FuzzyNumber operand2)
Description copied from interface: FuzzyCalculatorI
Adds fuzzy number operand1 to fuzzy number operand2.

Specified by:
add in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

divide

public FuzzyInterval divide(FuzzyInterval operand1,
                            FuzzyInterval operand2)
Description copied from interface: FuzzyCalculatorI
Devides fuzzy interval operand1 through fuzzy interval operand2.

Specified by:
divide in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

divide

public FuzzyLRInterval divide(FuzzyLRInterval operand1,
                              FuzzyLRInterval operand2)
Description copied from interface: FuzzyCalculatorI
Devides fuzzy LR interval operand1 through fuzzy LR interval operand2.

Specified by:
divide in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

divide

public FuzzyLRNumber divide(FuzzyLRNumber operand1,
                            FuzzyLRNumber operand2)
Description copied from interface: FuzzyCalculatorI
Devides fuzzy LR number operand1 through fuzzy LR number operand2.

Specified by:
divide in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

divide

public FuzzyNumber divide(FuzzyNumber operand1,
                          FuzzyNumber operand2)
Description copied from interface: FuzzyCalculatorI
Devides fuzzy number operand1 through fuzzy number operand2.

Specified by:
divide in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

multiply

public FuzzyInterval multiply(FuzzyInterval operand1,
                              FuzzyInterval operand2)
Description copied from interface: FuzzyCalculatorI
Multiplies fuzzy interval operand1 with fuzzy interval operand2.

Specified by:
multiply in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

multiply

public FuzzyLRInterval multiply(FuzzyLRInterval operand1,
                                FuzzyLRInterval operand2)
Description copied from interface: FuzzyCalculatorI
Multiplies fuzzy LR interval operand1 with fuzzy LR interval operand2.

Specified by:
multiply in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

multiply

public FuzzyLRNumber multiply(FuzzyLRNumber operand1,
                              FuzzyLRNumber operand2)
Description copied from interface: FuzzyCalculatorI
Multiplies fuzzy LR number operand1 with fuzzy LR number operand2.

Specified by:
multiply in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

multiply

public FuzzyNumber multiply(FuzzyNumber operand1,
                            FuzzyNumber operand2)
Description copied from interface: FuzzyCalculatorI
Multiplies fuzzy number operand1 with fuzzy number operand2.

Specified by:
multiply in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

subtract

public FuzzyInterval subtract(FuzzyInterval operand1,
                              FuzzyInterval operand2)
Description copied from interface: FuzzyCalculatorI
Subtracts fuzzy interval operand2 from fuzzy interval operand1.

Specified by:
subtract in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

subtract

public FuzzyLRInterval subtract(FuzzyLRInterval operand1,
                                FuzzyLRInterval operand2)
Description copied from interface: FuzzyCalculatorI
Subtracts fuzzy LR interval operand2 from fuzzy LR interval operand1.

Specified by:
subtract in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

subtract

public FuzzyLRNumber subtract(FuzzyLRNumber operand1,
                              FuzzyLRNumber operand2)
Description copied from interface: FuzzyCalculatorI
Subtracts fuzzy LR number operand2 from fuzzy LR number operand1.

Specified by:
subtract in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation

subtract

public FuzzyNumber subtract(FuzzyNumber operand1,
                            FuzzyNumber operand2)
                     throws NullPointerException
Description copied from interface: FuzzyCalculatorI
Subtracts fuzzy number operand2 from fuzzy number operand1.

Specified by:
subtract in interface FuzzyCalculatorI
Parameters:
operand1 - The first operand
operand2 - The second operand
Returns:
The result of this algebraic operation
Throws:
NullPointerException - if at least one operand is null


Copyright © 2007-2012 Fuzzy Services. All Rights Reserved.