Class MTreeGeneratorStage<T>
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<java.util.List<T>,MTree<T>>
kieker.analysis.generic.clustering.mtree.MTreeGeneratorStage<T>
- Type Parameters:
T
- The type, which the objects should have
- All Implemented Interfaces:
teetime.stage.basic.ITransformation<java.util.List<T>,MTree<T>>
public class MTreeGeneratorStage<T> extends teetime.stage.basic.AbstractTransformation<java.util.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
-
Constructor Summary
Constructors Constructor Description MTreeGeneratorStage(IDistanceFunction<T> distanceFunction)
MTreeGeneratorStage(IDistanceFunction<T> distanceFunction, int minNodeCapacity, int maxNodeCapacity)
-
Method Summary
Modifier and Type Method Description protected void
execute(java.util.List<T> models)
int
getMaxNodeCapacity()
int
getMinNodeCapacity()
void
setMaxNodeCapacity(int maxNodeCapacity)
void
setMinNodeCapacity(int minNodeCapacity)
Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPort
Methods 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, workCompleted
-
Constructor Details
-
MTreeGeneratorStage
-
MTreeGeneratorStage
public MTreeGeneratorStage(IDistanceFunction<T> distanceFunction, int minNodeCapacity, int maxNodeCapacity)
-
-
Method Details
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<java.util.List<T>>
- Throws:
java.lang.Exception
-
getMaxNodeCapacity
public int getMaxNodeCapacity() -
setMaxNodeCapacity
public void setMaxNodeCapacity(int maxNodeCapacity) -
getMinNodeCapacity
public int getMinNodeCapacity() -
setMinNodeCapacity
public void setMinNodeCapacity(int minNodeCapacity)
-