clarion.system
Class RuleExtractor

java.lang.Object
  extended by clarion.system.RuleExtractor

public final class RuleExtractor
extends java.lang.Object

This class implements a rule extractor within CLARION.

Usage:

This class is used to handle the extraction of rules from the bottom level implicit modules in ACS (mainly).

Classes that currently instantiate a rule extractor are:

This class contains both global (static) and local constants. The default is to use the local constants. If you want to change any of the global constants, you need to do so before any instances of this class are initialized.

Version:
6.0.4
Author:
Nick Wilson

Field Summary
 double EXTRACTION_PROBABILITY
          The probability of extracting a rule
static double GLOBAL_EXTRACTION_PROBABILITY
          The probability of extracting a rule
 
Constructor Summary
RuleExtractor()
           
 
Method Summary
 boolean checkExtractionCriterion(AbstractImplicitModule im)
          Checks to see if the criteria for rule extraction has been satisfied given a specified implicit module.
static AbstractRule extractRule(AbstractImplicitModule im, AbstractAction Act)
          Extracts a rule from the specified implicit module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_EXTRACTION_PROBABILITY

public static double GLOBAL_EXTRACTION_PROBABILITY
The probability of extracting a rule


EXTRACTION_PROBABILITY

public double EXTRACTION_PROBABILITY
The probability of extracting a rule

Constructor Detail

RuleExtractor

public RuleExtractor()
Method Detail

checkExtractionCriterion

public boolean checkExtractionCriterion(AbstractImplicitModule im)
Checks to see if the criteria for rule extraction has been satisfied given a specified implicit module. This method uses the implicit module's checkMatchCriterion function in order to determine if extraction should be performed.

Parameters:
im - The implicit modules to check.
Returns:
True if the extraction criteria has been satisfied, otherwise false.

extractRule

public static AbstractRule extractRule(AbstractImplicitModule im,
                                       AbstractAction Act)
Extracts a rule from the specified implicit module. If a dimension within the input layer of the implicit module contains no activated values, then that dimension will be set to accept any value for the extracted rule. All of the values in that dimension will be fully activated (i.e. the dimension will be completely generalized).

Parameters:
im - The implicit module from which to extract a rule.
Act - The action for the rule to be created.
Returns:
The extracted rule.