diff --git a/scijava-ops-tutorial/src/main/java/module-info.java b/scijava-ops-tutorial/src/main/java/module-info.java index 12cf5091c..bfeb5c282 100644 --- a/scijava-ops-tutorial/src/main/java/module-info.java +++ b/scijava-ops-tutorial/src/main/java/module-info.java @@ -1,3 +1,5 @@ +import org.scijava.ops.tutorial.OpConversion; + /*- * #%L * ImageJ2 software for multidimensional image processing and analysis. @@ -26,46 +28,14 @@ * POSSIBILITY OF SUCH DAMAGE. * #L% */ -module org.scijava.ops.tutorial { - exports org.scijava.ops.tutorial; +module org.scijava.ops.tutorial{exports org.scijava.ops.tutorial; - // -- Open plugins to scijava-ops, therapi - opens org.scijava.ops.tutorial to therapi.runtime.javadoc, org.scijava.ops.engine; +// -- Open plugins to scijava-ops, therapi +opens org.scijava.ops.tutorial to therapi.runtime.javadoc,org.scijava.ops.engine; - requires io.scif; - requires java.scripting; - requires net.imglib2; - requires net.imglib2.algorithm; - requires net.imglib2.algorithm.fft2; - requires net.imglib2.roi; - requires org.joml; - requires org.scijava.collections; - requires org.scijava.function; - requires org.scijava.meta; - requires org.scijava.ops.api; - requires org.scijava.ops.engine; - requires org.scijava.ops.image; - requires org.scijava.ops.spi; - requires org.scijava.parsington; - requires org.scijava.priority; - requires org.scijava.progress; - requires org.scijava.types; - requires org.scijava; +requires io.scif;requires java.scripting;requires net.imglib2;requires net.imglib2.algorithm;requires net.imglib2.algorithm.fft2;requires net.imglib2.roi;requires org.joml;requires org.scijava.collections;requires org.scijava.function;requires org.scijava.meta;requires org.scijava.ops.api;requires org.scijava.ops.engine;requires org.scijava.ops.image;requires org.scijava.ops.spi;requires org.scijava.parsington;requires org.scijava.priority;requires org.scijava.progress;requires org.scijava.types;requires org.scijava; - // FIXME: these module names derive from filenames and are thus unstable - requires commons.math3; - requires ojalgo; - requires jama; - requires mines.jtk; +// FIXME: these module names derive from filenames and are thus unstable +requires commons.math3;requires ojalgo;requires jama;requires mines.jtk; - provides org.scijava.ops.spi.OpCollection with - org.scijava.ops.tutorial.OpAdaptation, - org.scijava.ops.tutorial.OpDependencies, - org.scijava.ops.tutorial.OpParallelization, - org.scijava.ops.tutorial.OpPriorities, - org.scijava.ops.tutorial.OpReduction, - org.scijava.ops.tutorial.OpSimplification, - org.scijava.ops.tutorial.ReportingProgress, - org.scijava.ops.tutorial.UsingNils, - org.scijava.ops.tutorial.WritingOpCollections; -} +provides org.scijava.ops.spi.OpCollection with org.scijava.ops.tutorial.OpAdaptation,org.scijava.ops.tutorial.OpDependencies,org.scijava.ops.tutorial.OpParallelization,org.scijava.ops.tutorial.OpPriorities,org.scijava.ops.tutorial.OpReduction,OpConversion,org.scijava.ops.tutorial.ReportingProgress,org.scijava.ops.tutorial.UsingNils,org.scijava.ops.tutorial.WritingOpCollections;} diff --git a/scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpSimplification.java b/scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpConversion.java similarity index 55% rename from scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpSimplification.java rename to scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpConversion.java index f146d3cb1..1782b4635 100644 --- a/scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpSimplification.java +++ b/scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpConversion.java @@ -42,32 +42,43 @@ * calls with just one implementation. The simplest type of transformation is * showcased in {@link OpAdaptation}. *
- * A more complex type of transformation is called "simplification". This type - * involves transforming some subset of Op inputs into a different, but similar - * type. This process makes use of three different Op types: + * A more complex type of transformation transforms Op parameters, termed + * parameter "conversion". This type This process makes use of two different Op + * types: *
- * Simplification can be used to call a method implemented for parameters of one - * type on a completely different type. This can be as simple as using an - * Integer instead of a Double, or go beyond the Java type assignability with - * custom defined type conversion (e.g. images from one library to another). + * Conversion can be used to call an Op using parameters of completely different + * types. This can be as simple as using an Integer instead of a Double, or go + * beyond the Java type assignability with custom defined type conversion (e.g. + * images from one library to another). When this happens, the following steps + * are taken: + *
* Below, we can see how this works by calling the above Field Op, implemented
* for Double, on a Double[] instead
*/
-public class OpSimplification implements OpCollection {
+public class OpConversion implements OpCollection {
/**
* A simple Op, written as a {@link Field}, that performs a simple
* calculation.
*/
- @OpField(names = "tutorial.simplify")
+ @OpField(names = "tutorial.conversion")
public final BiFunction