fuzzydl
Class MomDefuzzifyQuery

java.lang.Object
  extended by fuzzydl.Query
      extended by fuzzydl.DefuzzifyQuery
          extended by fuzzydl.MomDefuzzifyQuery

public class MomDefuzzifyQuery
extends DefuzzifyQuery

Middle of maxima defuzzification query.


Field Summary
 
Fields inherited from class fuzzydl.DefuzzifyQuery
a, conc, fName, objExpr
 
Constructor Summary
MomDefuzzifyQuery(Concept c, Individual ind, java.lang.String featureName)
           
 
Method Summary
 Expression getObjExpression(Variable q)
          Gets the objective expression.
 void preprocess(KnowledgeBase kb)
          Performs some preprocessing steps of the query over a fuzzy KB.
 Solution solve(KnowledgeBase kb)
          Solves the query over a fuzzy KB.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MomDefuzzifyQuery

public MomDefuzzifyQuery(Concept c,
                         Individual ind,
                         java.lang.String featureName)
Method Detail

preprocess

public void preprocess(KnowledgeBase kb)
                throws FuzzyOntologyException
Description copied from class: Query
Performs some preprocessing steps of the query over a fuzzy KB.

Overrides:
preprocess in class DefuzzifyQuery
Parameters:
kb - A fuzzy KB.
Throws:
FuzzyOntologyException

solve

public Solution solve(KnowledgeBase kb)
               throws FuzzyOntologyException
Description copied from class: Query
Solves the query over a fuzzy KB.

Overrides:
solve in class DefuzzifyQuery
Parameters:
kb - A fuzzy KB.
Returns:
An optimal solution to the query.
Throws:
FuzzyOntologyException

toString

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

getObjExpression

public Expression getObjExpression(Variable q)
Description copied from class: DefuzzifyQuery
Gets the objective expression.

Specified by:
getObjExpression in class DefuzzifyQuery
Parameters:
q - Variable taking part in the query.
Returns:
Objective expression.