Skip to content

Commit df022fa

Browse files
committed
OpSimplification: fix documentation
Rewrites leftover copy-and-paste words from adaptation.
1 parent 0c8ad6e commit df022fa

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpSimplification.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,22 @@
4444
* <p>
4545
* A more complex type of transformation is called "simplification". This type
4646
* involves transforming some subset of Op inputs into a different, but similar
47-
* type. This process makes use of two different Op types:
47+
* type. This process makes use of three different Op types:
4848
* <ul>
4949
* <li>"engine.simplify" Ops transform user inputs into a broader data type</li>
5050
* <li>"engine.focus" Ops transform that broader type into the type used by the
5151
* Op</li>
52+
* <li>"engine.copy" Ops are necessary to propagate changes to the simplified
53+
* type back to the original parameter</li>
5254
* </ul>
53-
* functional type X and returning an Op of functional type Y.
5455
* <p>
55-
* Adaptation can be used to call a Function like a Computer, or to call an Op
56-
* that operates on Doubles like an Op that operates on a List of Doubles.
56+
* Simplification can be used to call a method implemented for parameters of one
57+
* type on a completely different type. This can be as simple as using an
58+
* Integer instead of a Double, or go beyond the Java type assignability with
59+
* custom defined type conversion (e.g. images from one library to another).
5760
* <p>
58-
* Below, we can see how this works by calling the above Field Op, supposed to
59-
* work on Doubles, on an array of Doubles[]
61+
* Below, we can see how this works by calling the above Field Op, implemented
62+
* for Double, on a Double[] instead
6063
*/
6164
public class OpSimplification implements OpCollection {
6265

0 commit comments

Comments
 (0)