public class Tool4ExpertStochastic extends Tool4ExpertSystem
Tool4ExpertStochastic
class provides an expert system with stochastic rules.
title: SystemCoreExpLib
description:
copyright: (c) 2017 thomas kaffka, born 11/08/1959 in düsseldorf - germany , all rights reserved.
Constructor and Description |
---|
Tool4ExpertStochastic(n4e.core.list.List4SysUser sysUser,
java.lang.String expsystem_uniqueid,
int result_number,
java.lang.String database)
The constructor
Tool4Export creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
boolean |
findMaxSymptom()
The method
findMaxSymptom finds the symptom with the max. rule value. |
java.lang.String |
getAttributeUid()
The method
getAttributeUid gets the uniqueid of the attribute. |
int |
getCountQuestion()
The method
getCountQuestion gets the question count. |
java.lang.String |
getQuestion()
The method
getQuestion gets the current question. |
boolean |
searchForBest()
The method
searchForBest gives the n best answers. |
void |
updateProbabilities(double answer)
The method
updateProbabilities update the probabilities. |
getContextList, getContextListAllValues, getContextListFirstRule, getContextListFirstValue, getContextListValue, isValueInSet, putContextList, putListContextList, reset
public Tool4ExpertStochastic(n4e.core.list.List4SysUser sysUser, java.lang.String expsystem_uniqueid, int result_number, java.lang.String database)
Tool4Export
creates a new instance(object) of the class.sysUser
- the system user objectexpsystem_uniqueid
- the uniqueid of the expert systemresult_number
- the number of result itemsdatabase
- the database namepublic boolean findMaxSymptom()
findMaxSymptom
finds the symptom with the max. rule value.public void updateProbabilities(double answer) throws java.lang.Exception
updateProbabilities
update the probabilities.answer
- the answer.java.lang.Exception
- if errorpublic boolean searchForBest() throws java.lang.Exception
searchForBest
gives the n best answers.java.lang.Exception
- if errorpublic java.lang.String getQuestion()
getQuestion
gets the current question.public java.lang.String getAttributeUid()
getAttributeUid
gets the uniqueid of the attribute.public int getCountQuestion()
getCountQuestion
gets the question count.