org.drools.rule
Class Extraction

java.lang.Object
  |
  +--org.drools.rule.Extraction

public class Extraction
extends java.lang.Object

A Condition representing a consistent assignment as defined by the Rete-OO algorithm. The assignment occurs through the process of extracting a new fact from existing facts.

Author:
bob mcwhirter
See Also:
Extractor

Constructor Summary
Extraction(Declaration targetDeclaration, Extractor extractor)
          Construct.
 
Method Summary
 Extractor getExtractor()
          Retrieve the Extractor responsible for generating the assignment value.
 Declaration[] getRequiredTupleMembers()
          Retrieve the array of Declarations required by this condition to perform its duties.
 Declaration getTargetDeclaration()
          Retrieve the Declaration for the target of the assignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extraction

public Extraction(Declaration targetDeclaration,
                  Extractor extractor)
Construct.
Parameters:
targetDeclaration - The target of this assignment.
extractor - Value generator for the assignment.
Method Detail

getTargetDeclaration

public Declaration getTargetDeclaration()
Retrieve the Declaration for the target of the assignment.
Returns:
The target's Declaration

getExtractor

public Extractor getExtractor()
Retrieve the Extractor responsible for generating the assignment value.
Returns:
The Extractor.

getRequiredTupleMembers

public Declaration[] getRequiredTupleMembers()
Retrieve the array of Declarations required by this condition to perform its duties.
Returns:
The array of Declarations expected on incoming Tuples.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.