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,DeerPlugin,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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.lang.StringdocumentationURL
-
Constructor Summary
Constructors Constructor Description AbstractModelIO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModeldeepCopy(Model data)java.lang.StringgetDescription()java.lang.StringgetDocumentationURL()ResourcegetType()Get the type URI resource of theParametrizedPlugin.static java.lang.StringinjectWorkingDirectory(java.lang.String pathString)Use this always when writing to or reading from Files whose paths are specified by parameters.static voidtakeWorkingDirectoryFrom(java.util.function.Supplier<java.lang.String> supplier)Specify the supplier of the working directory injection.-
Methods inherited from class org.aksw.faraday_cage.engine.AbstractParameterizedExecutionNode
getParameterMap, getValidationModelFor, initParameters, isInitialized
-
Methods inherited from class org.aksw.faraday_cage.engine.AbstractExecutionNode
apply, getId, getInDegree, getOutDegree, initDegrees, initPluginId, safeApply
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.faraday_cage.engine.ExecutionNode
apply, getDegreeBounds, getInDegree, getOutDegree, initDegrees
-
Methods inherited from interface org.aksw.faraday_cage.engine.Parameterized
createParameterMap, getParameterMap, initParameters, isInitialized
-
Methods inherited from interface org.aksw.faraday_cage.engine.Plugin
getId, initPluginId, isInitialized
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceDeerPlugin
-
getDocumentationURL
public java.lang.String getDocumentationURL()
- Specified by:
getDocumentationURLin interfaceDeerPlugin
-
takeWorkingDirectoryFrom
public static void takeWorkingDirectoryFrom(java.util.function.Supplier<java.lang.String> supplier)
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
public static java.lang.String injectWorkingDirectory(java.lang.String pathString)
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
public Model deepCopy(Model data)
- Specified by:
deepCopyin interfaceExecutionNode<Model>
-
getType
public 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().
-
-