public class Tool4ExpertSystem
extends java.lang.Object
Tool4ExpertSystem
class provides the functions of an expert system.
title: SystemCoreExpLib
description:
copyright: (c) 2013 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Constructor and Description |
---|
Tool4ExpertSystem()
The constructor
Tool4ExpertSystem creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable |
getContextList()
The method
getContextList gets the context list. |
java.lang.String |
getContextListAllValues(java.lang.String key,
boolean bullets)
The method
getContextListAllValues gets the context list value list. |
long |
getContextListFirstRule(java.lang.String key)
The method
getContextListFirstRule gets the context list first rule. |
java.lang.String |
getContextListFirstValue(java.lang.String key)
The method
getContextListFirstValue gets the context list first value. |
java.util.ArrayList |
getContextListValue(java.lang.String key)
The method
getContextListValue gets the context list value. |
boolean |
isValueInSet(java.lang.String att_uid,
java.lang.String val_uid)
The method
isValueInSet evaluates the context list,
if the specified attribute has the specified value. |
void |
putContextList(java.lang.String key,
java.lang.String value,
long rule)
The method
putContextList puts a value into the context list, if not there. |
void |
putListContextList(java.lang.String key,
java.lang.String value,
long rule)
The method
putListContextList puts a list of values into the context list,
if not there. |
void |
reset()
The method
reset resets the expert system. |
public Tool4ExpertSystem()
Tool4ExpertSystem
creates a new instance(object) of the class.public void reset()
reset
resets the expert system.public java.util.Hashtable getContextList()
getContextList
gets the context list.public boolean isValueInSet(java.lang.String att_uid, java.lang.String val_uid)
isValueInSet
evaluates the context list,
if the specified attribute has the specified value.att_uid
- the uniqueid of the attribute.val_uid
- the uniqueid of the value.public void putContextList(java.lang.String key, java.lang.String value, long rule)
putContextList
puts a value into the context list, if not there.key
- the key.value
- the value.rule
- the involved rule number.public void putListContextList(java.lang.String key, java.lang.String value, long rule)
putListContextList
puts a list of values into the context list,
if not there.key
- the key.value
- the value.rule
- the involved rule number.public java.util.ArrayList getContextListValue(java.lang.String key)
getContextListValue
gets the context list value.key
- the key.public java.lang.String getContextListFirstValue(java.lang.String key)
getContextListFirstValue
gets the context list first value.key
- the key.public java.lang.String getContextListAllValues(java.lang.String key, boolean bullets)
getContextListAllValues
gets the context list value list.key
- the key.bullets
- true: bulletspublic long getContextListFirstRule(java.lang.String key)
getContextListFirstRule
gets the context list first rule.key
- the key.