Package es.ull.pcg.hpc.fancyjcl
Class FancyJCLManager
java.lang.Object
es.ull.pcg.hpc.fancyjcl.FancyJCLManager
Manages initialization and releasing of FancyJCL and controls the set of stages and its
parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clears all the stages and all its parameters.static void
initialize
(String basePath) Creates a context for FancyJCL.static void
release()
Clears all the stages and all its parameters and then releases the FancyJCL context.
-
Constructor Details
-
FancyJCLManager
public FancyJCLManager()
-
-
Method Details
-
initialize
Creates a context for FancyJCL. It must be called only once per execution of the application.- Parameters:
basePath
- Cache path needed for storing temporal data. It can usually be obtained by callinggetApplicationContext().getCacheDir().getAbsolutePath()
from your MainActivity.
-
clear
public static void clear()Clears all the stages and all its parameters. It is called withrelease()
and it would be needed if you want to test different algorithms involving a set of stages each one. -
release
public static void release()Clears all the stages and all its parameters and then releases the FancyJCL context. It must be called only once per execution of the application, whenever FancyJCL is not needed anymore.
-