Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.yajre.spi
Class AssignmentCondition  view AssignmentCondition download AssignmentCondition.java

java.lang.Object
  extended byorg.yajre.spi.AssignmentCondition
All Implemented Interfaces:
Condition

public class AssignmentCondition
extends java.lang.Object
implements Condition

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.


Field Summary
private  FactExtractor factExtractor
          FactExtractor to acquire value for assignment.
private  Declaration targetDeclaration
          The target of the assignment.
 
Constructor Summary
AssignmentCondition(Declaration targetDeclaration, FactExtractor factExtractor)
          Construct.
 
Method Summary
 FactExtractor getFactExtractor()
          Retrieve the FactExtractor 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
 

Field Detail

targetDeclaration

private Declaration targetDeclaration
The target of the assignment.


factExtractor

private FactExtractor factExtractor
FactExtractor to acquire value for assignment.

Constructor Detail

AssignmentCondition

public AssignmentCondition(Declaration targetDeclaration,
                           FactExtractor factExtractor)
Construct.

Method Detail

getTargetDeclaration

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


getFactExtractor

public FactExtractor getFactExtractor()
Retrieve the FactExtractor responsible for generating the assignment value.


getRequiredTupleMembers

public Declaration[] getRequiredTupleMembers()
Description copied from interface: Condition
Retrieve the array of Declarations required by this condition to perform its duties.

Specified by:
getRequiredTupleMembers in interface Condition