|
44 | 44 | * <p> |
45 | 45 | * A more complex type of transformation is called "simplification". This type |
46 | 46 | * 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: |
48 | 48 | * <ul> |
49 | 49 | * <li>"engine.simplify" Ops transform user inputs into a broader data type</li> |
50 | 50 | * <li>"engine.focus" Ops transform that broader type into the type used by the |
51 | 51 | * Op</li> |
| 52 | + * <li>"engine.copy" Ops are necessary to propagate changes to the simplified |
| 53 | + * type back to the original parameter</li> |
52 | 54 | * </ul> |
53 | | - * functional type X and returning an Op of functional type Y. |
54 | 55 | * <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). |
57 | 60 | * <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 |
60 | 63 | */ |
61 | 64 | public class OpSimplification implements OpCollection { |
62 | 65 |
|
|
0 commit comments