groovyx.gpars.extra166y
Class PAS.FJDReduce

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.RecursiveAction
          extended by groovyx.gpars.extra166y.PAS.FJBase
              extended by groovyx.gpars.extra166y.PAS.FJDReduce
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Future<java.lang.Void>
Enclosing class:
PAS

static final class PAS.FJDReduce
extends PAS.FJBase


Field Summary
(package private)  Ops.DoubleReducer reducer
           
(package private)  double result
           
 
Fields inherited from class groovyx.gpars.extra166y.PAS.FJBase
hi, lo, next, pap
 
Constructor Summary
PAS.FJDReduce(AbstractParallelAnyArray pap, int lo, int hi, PAS.FJBase next, Ops.DoubleReducer reducer, double base)
           
 
Method Summary
(package private)  void atLeaf(int l, int h)
          Leaf computation
(package private)  PAS.FJBase newSubtask(int l, int h, PAS.FJBase r)
          Factory method to create new subtask, normally of current type
(package private)  void onReduce(PAS.FJBase right)
          Operation performed after joining right subtask -- default noop
 
Methods inherited from class groovyx.gpars.extra166y.PAS.FJBase
compute, internalCompute
 
Methods inherited from class jsr166y.RecursiveAction
exec, getRawResult, setRawResult
 
Methods inherited from class jsr166y.ForkJoinTask
adapt, adapt, adapt, cancel, complete, completeExceptionally, fork, get, get, getException, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyInvoke, quietlyJoin, reinitialize, tryUnfork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reducer

final Ops.DoubleReducer reducer

result

double result
Constructor Detail

PAS.FJDReduce

PAS.FJDReduce(AbstractParallelAnyArray pap,
              int lo,
              int hi,
              PAS.FJBase next,
              Ops.DoubleReducer reducer,
              double base)
Method Detail

newSubtask

PAS.FJBase newSubtask(int l,
                      int h,
                      PAS.FJBase r)
Description copied from class: PAS.FJBase
Factory method to create new subtask, normally of current type

Specified by:
newSubtask in class PAS.FJBase

atLeaf

void atLeaf(int l,
            int h)
Description copied from class: PAS.FJBase
Leaf computation

Specified by:
atLeaf in class PAS.FJBase

onReduce

void onReduce(PAS.FJBase right)
Description copied from class: PAS.FJBase
Operation performed after joining right subtask -- default noop

Overrides:
onReduce in class PAS.FJBase

Copyright © 2008–2012 Václav Pech. All Rights Reserved.