P - type of elements that represent a problem to be solved.S - type of elements that represent the solution to a problem.public class DivideAndConquerStage<P extends AbstractDivideAndConquerProblem<P,S>,S extends AbstractDivideAndConquerSolution<S>> extends AbstractStage implements ITransformation<P,S>
logger| Constructor and Description |
|---|
DivideAndConquerStage()
Creates a new divide and conquer stage and connects the additional in- and output ports with
DivideAndConquerRecursivePipe with a
default threshold of Runtime.getRuntime().availableProcessors(). |
DivideAndConquerStage(int maxCopiedInstances)
Creates a new divide and conquer stage and connects the additional in- and output ports with
DivideAndConquerRecursivePipe. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
InputPort<P> |
getInputPort() |
OutputPort<S> |
getOutputPort() |
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompletedpublic DivideAndConquerStage()
DivideAndConquerRecursivePipe with a
default threshold of Runtime.getRuntime().availableProcessors().public DivideAndConquerStage(int maxCopiedInstances)
DivideAndConquerRecursivePipe.protected void execute()
AbstractStageexecute in class AbstractStagepublic final InputPort<P> getInputPort()
getInputPort in interface ITransformation<P extends AbstractDivideAndConquerProblem<P,S>,S extends AbstractDivideAndConquerSolution<S>>InputPortpublic final OutputPort<S> getOutputPort()
getOutputPort in interface ITransformation<P extends AbstractDivideAndConquerProblem<P,S>,S extends AbstractDivideAndConquerSolution<S>>OutputPortCopyright © 2015–2020. All rights reserved.