Class PerceptualImageDifferencing.Comparison.CompareTask
- java.lang.Object
-
- java.util.concurrent.ForkJoinTask<V>
-
- java.util.concurrent.RecursiveTask<Boolean>
-
- com.crawljax.stateabstractions.visual.PerceptualImageDifferencing.Comparison.CompareTask
-
- All Implemented Interfaces:
Serializable,Future<Boolean>
- Enclosing class:
- PerceptualImageDifferencing.Comparison
private class PerceptualImageDifferencing.Comparison.CompareTask extends RecursiveTask<Boolean>
-
-
Field Summary
Fields Modifier and Type Field Description private intbeginIndexprivate intendIndexprivate PerceptualImageDifferencing.Comparison.CompareTasknext
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompareTask(int beginIndex, int endIndex, PerceptualImageDifferencing.Comparison.CompareTask next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanatLeaf(int begin, int end)Compares pixels in specified range of indices.protected Booleancompute()-
Methods inherited from class java.util.concurrent.RecursiveTask
exec, getRawResult, setRawResult
-
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
-
-
-
-
Field Detail
-
beginIndex
private final int beginIndex
-
endIndex
private final int endIndex
-
next
private final PerceptualImageDifferencing.Comparison.CompareTask next
-
-
Constructor Detail
-
CompareTask
protected CompareTask(int beginIndex, int endIndex, PerceptualImageDifferencing.Comparison.CompareTask next)
-
-
Method Detail
-
compute
protected Boolean compute()
- Specified by:
computein classRecursiveTask<Boolean>
-
atLeaf
protected boolean atLeaf(int begin, int end)Compares pixels in specified range of indices.- Parameters:
begin- beginning index, inclusiveend- ending index, exclusive- Returns:
trueif all pixels in specified range were compared
-
-