Class AbstractModelIO

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.aksw.faraday_cage.engine.ExecutionNode

        org.aksw.faraday_cage.engine.ExecutionNode.DegreeBounds
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractModelIO()  
    • Method Summary

      Modifier and Type Method Description
      Model deepCopy​(Model data)  
      Resource getType()  
      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.
      static void takeWorkingDirectoryFrom​(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
    • Constructor Detail

      • AbstractModelIO

        public AbstractModelIO()
    • Method Detail

      • 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:
        deepCopy in interface org.aksw.faraday_cage.engine.ExecutionNode<Model>
      • getType

        public Resource getType()
        Specified by:
        getType in interface org.aksw.faraday_cage.engine.Plugin