input.set(Input ID, InputData)
Use to set a pointer to the input argument with the
Input IDidentifier. This method overwrites the previous input pointer stored in the algorithm.
input.add(Input ID, InputData)
Use in the distributed computation mode to add the pointers with the
Input IDidentifier. Unlike the
input.add()does not overwrite the previously set input pointers, but stores all the input pointers until the
compute()method is called.
Use to get a reference to the pointer to the input data with the
- Create an object of an appropriate class for the results. For the classes supported, refer to the description of a specific algorithm.
- Provide a pointer to that object to the algorithm by calling thesetPartialResult()orsetResult()method as appropriate.
- Call thecompute()method. After the call, the object created contains partial or final results.
- In C++, these parameters are defined as template parameters, and in most cases they are preset with default values. You can change the template parameters while declaring the algorithm.
- In Java, the generic parameters have no default values, and you need to define them in the constructor during algorithm initialization.