Package org.aksw.faraday_cage.decorator
Class AbstractExecutionNodeDecorator<T>
- java.lang.Object
-
- org.aksw.faraday_cage.decorator.AbstractExecutionNodeDecorator<T>
-
- All Implemented Interfaces:
ExecutionNode<T>,Plugin,org.pf4j.ExtensionPoint
- Direct Known Subclasses:
AbstractParameterizedExecutionNodeDecorator
public abstract class AbstractExecutionNodeDecorator<T> extends Object implements ExecutionNode<T>
Base abstract class for decorator pattern
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.aksw.faraday_cage.engine.ExecutionNode
ExecutionNode.DegreeBounds
-
-
Constructor Summary
Constructors Constructor Description AbstractExecutionNodeDecorator(ExecutionNode<T> other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>apply(List<T> data)TdeepCopy(T data)ExecutionNode.DegreeBoundsgetDegreeBounds()ResourcegetId()intgetInDegree()intgetOutDegree()ResourcegetType()Get the type URI resource of theParametrizedPlugin.ExecutionNode<T>getWrapped()voidinitDegrees(int inDegree, int outDegree)voidinitPluginId(Resource id)booleanisInitialized()Get initialization status
-
-
-
Constructor Detail
-
AbstractExecutionNodeDecorator
public AbstractExecutionNodeDecorator(ExecutionNode<T> other)
-
-
Method Detail
-
getDegreeBounds
public final ExecutionNode.DegreeBounds getDegreeBounds()
- Specified by:
getDegreeBoundsin interfaceExecutionNode<T>
-
getInDegree
public final int getInDegree()
- Specified by:
getInDegreein interfaceExecutionNode<T>
-
getOutDegree
public final int getOutDegree()
- Specified by:
getOutDegreein interfaceExecutionNode<T>
-
initDegrees
public final void initDegrees(int inDegree, int outDegree)- Specified by:
initDegreesin interfaceExecutionNode<T>
-
initPluginId
public void initPluginId(Resource id)
- Specified by:
initPluginIdin interfacePlugin
-
getType
public final Resource getType()
Description copied from interface:PluginGet the type URI resource of theParametrizedPlugin. The type of aParametrizedPluginidentifies the implementing class, must be unique and must not be a blank node. It is used to instantiate the class using thePluginFactory. Defaults to using the implementing classesClass.getSimpleName().
-
deepCopy
public T deepCopy(T data)
- Specified by:
deepCopyin interfaceExecutionNode<T>
-
isInitialized
public final boolean isInitialized()
Description copied from interface:PluginGet initialization status- Specified by:
isInitializedin interfacePlugin- Returns:
true, if initialized;false, else.
-
getWrapped
public ExecutionNode<T> getWrapped()
-
-