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

Field Summary
static Extraction[] EMPTY_ARRAY
          Empty Extraction array.
 
Constructor Summary
Extraction(Declaration targetDeclaration)
           
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.
 void setExtractor(Extractor extractor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final Extraction[] EMPTY_ARRAY
Empty Extraction array.

Constructor Detail

Extraction

public Extraction(Declaration targetDeclaration,
                  Extractor extractor)
Construct.

Parameters:
targetDeclaration - The target of this assignment.
extractor - Value generator for the assignment.

Extraction

public Extraction(Declaration targetDeclaration)
Method Detail

getTargetDeclaration

public Declaration getTargetDeclaration()
Retrieve the Declaration for the target of the assignment.

Returns:
The target's Declaration

setExtractor

public void setExtractor(Extractor extractor)

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.