|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sazonov.fuzzy.engine.FuzzyState
Contains the state of the fuzzy engine. State consists of the linguistic variable, the hedges, and the label weights that are applied to entire rules. Note: This class is not thread-safe.
Field Summary | |
static int |
AND
|
static int |
COMPLETE_EVALUATION
|
static int |
COMPLETE_EXECUTION
|
static int |
EVALUATION
|
static int |
EXCEPTION
|
static int |
EXECUTE
|
static int |
EXECUTION
|
static int |
HEDGE
|
static int |
HEDGE_READ
|
static int |
IF
|
static int |
IS
|
static int |
IS_READ
|
static int |
LABEL
|
static int |
LABEL_READ
|
static int |
LEFTP
|
static int |
LV
|
static int |
LV_READ
|
static int |
NOP
|
static int |
NOT_READ
|
static int |
OR
|
static int |
READY
|
static int |
RIGHTP
|
static int |
RULE
|
static int |
RULE_READ
|
static int |
SET
|
static int |
STORE_LABEL
|
static int |
THEN
|
static int |
UNDEFINED
|
static int |
WEIGHT
|
Method Summary | |
void |
addHedge(Hedge hedge)
Add a hedge (derived from engine.Hedge) to the engine |
RuleBlock |
createRuleExecutionSet(java.io.Reader reader)
The reader sequence is read and parsed into rules. |
boolean |
isRuleFired()
Returns "true" if a rule has fired during the last call to FuzzyEngine.evaluateRule(String). |
void |
register(LinguisticVariable function)
Register a linguistic variable with the engine. |
void |
reset()
Reset all previously fired rules. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IF
public static final int THEN
public static final int IS
public static final int SET
public static final int AND
public static final int OR
public static final int LEFTP
public static final int RIGHTP
public static final int NOP
public static final int EXECUTE
public static final int HEDGE
public static final int RULE
public static final int UNDEFINED
public static final int WEIGHT
public static final int LV
public static final int READY
public static final int LV_READ
public static final int IS_READ
public static final int NOT_READ
public static final int HEDGE_READ
public static final int EXCEPTION
public static final int STORE_LABEL
public static final int COMPLETE_EVALUATION
public static final int RULE_READ
public static final int LABEL_READ
public static final int COMPLETE_EXECUTION
public static final int LABEL
public static final int EVALUATION
public static final int EXECUTION
Method Detail |
public void addHedge(Hedge hedge)
hedge
- Implementation of a hedgepublic boolean isRuleFired()
public void register(LinguisticVariable function)
function
- fuzzyEngine.LinguisticVariable to be registered with the engine.public void reset()
public RuleBlock createRuleExecutionSet(java.io.Reader reader) throws RulesParsingException
reader
- input sequence
RulesParsingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |