fuzzydl
Class TriangularModifier

java.lang.Object
  extended by fuzzydl.Modifier
      extended by fuzzydl.TriangularModifier

public class TriangularModifier
extends Modifier

Triangular modifier.


Field Summary
 
Fields inherited from class fuzzydl.Modifier
name
 
Constructor Summary
TriangularModifier(java.lang.String name, double a, double b, double c)
           
 
Method Summary
 double getA()
          Gets parameter a.
 double getB()
          Gets parameter b.
 double getC()
          Gets parameter c.
 java.lang.String getName()
          Gets the name of the modifier.
 Concept modify(Concept c)
          Modifies a fuzzy concept
 java.lang.String toString()
           
 
Methods inherited from class fuzzydl.Modifier
setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriangularModifier

public TriangularModifier(java.lang.String name,
                          double a,
                          double b,
                          double c)
                   throws FuzzyOntologyException
Throws:
FuzzyOntologyException
Method Detail

getA

public double getA()
Gets parameter a.

Returns:
Parameter a.

getB

public double getB()
Gets parameter b.

Returns:
Parameter b.

getC

public double getC()
Gets parameter c.

Returns:
Parameter c.

getName

public java.lang.String getName()
Description copied from class: Modifier
Gets the name of the modifier.

Overrides:
getName in class Modifier
Returns:
Name of the modifier.

modify

public Concept modify(Concept c)
Description copied from class: Modifier
Modifies a fuzzy concept

Specified by:
modify in class Modifier
Parameters:
c - A fuzzy concept
Returns:
Fuzzy concept resulting from the application of the modifier to c.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object