java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetDeclaration
private Declaration targetDeclaration
- The target of the assignment.
factExtractor
private FactExtractor factExtractor
- FactExtractor to acquire value for assignment.
AssignmentCondition
public AssignmentCondition(Declaration targetDeclaration,
FactExtractor factExtractor)
- Construct.
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