public abstract class ExtendBinaryTransitiveClosure extends ExtendOperation<java.lang.Object> implements IPatternMatcherOperation
Modifier and Type | Class and Description |
---|---|
static class |
ExtendBinaryTransitiveClosure.Backward
Calculates the transitive closure of a pattern match in a backward direction (first parameter unbound, second
bound)
|
static class |
ExtendBinaryTransitiveClosure.Forward
Calculates the transitive closure of a pattern match in a forward direction (first parameter bound, second
unbound)
|
it, position
Modifier | Constructor and Description |
---|---|
protected |
ExtendBinaryTransitiveClosure(CallInformation information,
int seedPosition,
int targetPosition)
The source position will be matched in the called pattern to the first parameter; while target to the second.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object[] |
calculateCallFrame(java.lang.Object seed) |
protected abstract java.lang.Object |
getTarget(Tuple frame) |
java.util.List<java.lang.Integer> |
getVariablePositions() |
void |
onInitialize(MatchingFrame frame,
ISearchContext context)
During the execution of the corresponding plan, the onInitialize callback is evaluated before the execution of
the operation may begin.
|
java.lang.String |
toString() |
execute, onBacktrack
protected ExtendBinaryTransitiveClosure(CallInformation information, int seedPosition, int targetPosition)
protected abstract java.lang.Object[] calculateCallFrame(java.lang.Object seed)
protected abstract java.lang.Object getTarget(Tuple frame)
public void onInitialize(MatchingFrame frame, ISearchContext context) throws LocalSearchException
ISearchOperation
onInitialize
in interface ISearchOperation
LocalSearchException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.lang.Integer> getVariablePositions()
getVariablePositions
in interface ISearchOperation