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, workCompleted
public DivideAndConquerStage()
DivideAndConquerRecursivePipe
with a
default threshold of Runtime.getRuntime().availableProcessors()
.public DivideAndConquerStage(int maxCopiedInstances)
DivideAndConquerRecursivePipe
.protected void execute()
AbstractStage
execute
in class AbstractStage
public final InputPort<P> getInputPort()
getInputPort
in interface ITransformation<P extends AbstractDivideAndConquerProblem<P,S>,S extends AbstractDivideAndConquerSolution<S>>
InputPort
public final OutputPort<S> getOutputPort()
getOutputPort
in interface ITransformation<P extends AbstractDivideAndConquerProblem<P,S>,S extends AbstractDivideAndConquerSolution<S>>
OutputPort
Copyright © 2015–2020. All rights reserved.