fuzzydl
Class MomDefuzzifyQuery
java.lang.Object
fuzzydl.Query
fuzzydl.DefuzzifyQuery
fuzzydl.MomDefuzzifyQuery
public class MomDefuzzifyQuery
- extends DefuzzifyQuery
Middle of maxima defuzzification query.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MomDefuzzifyQuery
public MomDefuzzifyQuery(Concept c,
Individual ind,
java.lang.String featureName)
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.