Package org.aksw.deer.io
Class AbstractModelIO
java.lang.Object
org.aksw.faraday_cage.engine.AbstractExecutionNode<T>
org.aksw.faraday_cage.engine.AbstractParameterizedExecutionNode<Model>
org.aksw.deer.io.AbstractModelIO
- All Implemented Interfaces:
DeerExecutionNode,ParameterizedDeerExecutionNode,ExecutionNode<Model>,Parameterized,Plugin,org.pf4j.ExtensionPoint
- Direct Known Subclasses:
AbstractModelReader,AbstractModelWriter
public abstract class AbstractModelIO
extends AbstractParameterizedExecutionNode<Model>
implements ParameterizedDeerExecutionNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aksw.faraday_cage.engine.ExecutionNode
ExecutionNode.DegreeBounds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Get the type URI resource of theParametrizedPlugin.static StringinjectWorkingDirectory(String pathString)Use this always when writing to or reading from Files whose paths are specified by parameters.static voidtakeWorkingDirectoryFrom(Supplier<String> supplier)Specify the supplier of the working directory injection.Methods inherited from class org.aksw.faraday_cage.engine.AbstractParameterizedExecutionNode
getParameterMap, getValidationModelFor, initParameters, isInitializedMethods inherited from class org.aksw.faraday_cage.engine.AbstractExecutionNode
apply, getId, getInDegree, getOutDegree, initDegrees, initPluginId, safeApplyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.faraday_cage.engine.ExecutionNode
apply, getDegreeBounds, getInDegree, getOutDegree, initDegreesMethods inherited from interface org.aksw.faraday_cage.engine.Parameterized
createParameterMap, getParameterMap, initParameters, isInitializedMethods inherited from interface org.aksw.faraday_cage.engine.Plugin
getId, initPluginId, isInitialized
-
Constructor Details
-
AbstractModelIO
public AbstractModelIO()
-
-
Method Details
-
takeWorkingDirectoryFrom
Specify the supplier of the working directory injection. It must have the necessary information to construct a valid working directory path at ExecutionGraph compileCanonicalForm time.- Parameters:
supplier- the supplier
-
injectWorkingDirectory
Use this always when writing to or reading from Files whose paths are specified by parameters.- Parameters:
pathString- Path to inject working directory into- Returns:
- injected path
-
deepCopy
- Specified by:
deepCopyin interfaceExecutionNode<Model>
-
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().
-