Class MTreeGeneratorStage<T>
- Type Parameters:
T- The type, which the objects should have
public class MTreeGeneratorStage<T>
extends teetime.stage.basic.AbstractTransformation<List<T>,MTree<T>>
A stage to generate an M-Tree with objects of a generic type, with a given distance function.
- Since:
- 2.0.0
- Author:
- Lars Jürgensen
-
Field Summary
Fields inherited from class teetime.stage.basic.AbstractTransformation
outputPortFields inherited from class teetime.framework.AbstractConsumerStage
inputPortFields inherited from class teetime.framework.AbstractStage
logger -
Constructor Summary
ConstructorsConstructorDescriptionMTreeGeneratorStage(IDistanceFunction<T> distanceFunction) MTreeGeneratorStage(IDistanceFunction<T> distanceFunction, int minNodeCapacity, int maxNodeCapacity) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintintvoidsetMaxNodeCapacity(int maxNodeCapacity) voidsetMinNodeCapacity(int minNodeCapacity) Methods inherited from class teetime.stage.basic.AbstractTransformation
getOutputPortMethods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPortMethods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, 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, workCompletedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface teetime.stage.basic.ITransformation
getInputPort
-
Constructor Details
-
MTreeGeneratorStage
-
MTreeGeneratorStage
public MTreeGeneratorStage(IDistanceFunction<T> distanceFunction, int minNodeCapacity, int maxNodeCapacity)
-
-
Method Details
-
execute
-
getMaxNodeCapacity
public int getMaxNodeCapacity() -
setMaxNodeCapacity
public void setMaxNodeCapacity(int maxNodeCapacity) -
getMinNodeCapacity
public int getMinNodeCapacity() -
setMinNodeCapacity
public void setMinNodeCapacity(int minNodeCapacity)
-