gvsig-raster / org.gvsig.raster.principalcomponents / trunk / org.gvsig.raster.principalcomponents / org.gvsig.raster.principalcomponents.algorithm / src / main / java / org / gvsig / raster / principalcomponents / algorithm / PrincipalComponentsAlgorithmLibrary.java @ 2101
History | View | Annotate | Download (1.66 KB)
1 |
package org.gvsig.raster.principalcomponents.algorithm; |
---|---|
2 |
|
3 |
import org.gvsig.i18n.Messages; |
4 |
import org.gvsig.raster.algorithm.RasterBaseAlgorithmLibrary; |
5 |
import org.gvsig.tools.library.AbstractLibrary; |
6 |
import org.gvsig.tools.library.LibraryException; |
7 |
|
8 |
/**
|
9 |
* Initialization of PrincipalComponentsAlgorithmLibrary library.
|
10 |
*/
|
11 |
public class PrincipalComponentsAlgorithmLibrary extends AbstractLibrary { |
12 |
public static final String PC_PROCESS_LABEL = "PrincipalComponentsProcess"; |
13 |
public static final String PC_STATS_PROCESS_LABEL = "StatsPrincipalComponentsProcess"; |
14 |
|
15 |
@Override
|
16 |
protected void doInitialize() throws LibraryException { |
17 |
// Nothing to do
|
18 |
} |
19 |
|
20 |
@Override
|
21 |
protected void doPostInitialize() throws LibraryException { |
22 |
//Registers the process and its parameters
|
23 |
RasterBaseAlgorithmLibrary.register(PC_STATS_PROCESS_LABEL, PCAStatisticsProcess.class); |
24 |
PCAStatisticsProcess.registerParameters(); |
25 |
RasterBaseAlgorithmLibrary.register(PC_PROCESS_LABEL, PrincipalComponentsProcess.class); |
26 |
PrincipalComponentsProcess.registerParameters(); |
27 |
|
28 |
Messages.addResourceFamily( |
29 |
"org.gvsig.raster.principalcomponents.algorithm",
|
30 |
PrincipalComponentsAlgorithmLibrary.class.getClassLoader(), |
31 |
PrincipalComponentsAlgorithmLibrary.class.getClass().getName()); |
32 |
//registerGeoProcess(new RasterReprojectAlgorithmLibrary());
|
33 |
|
34 |
Messages.addResourceFamily("org.gvsig.raster.principalcomponents.algorithm.i18n.text",
|
35 |
PrincipalComponentsAlgorithmLibrary.class.getClassLoader(), |
36 |
PrincipalComponentsAlgorithmLibrary.class.getClass().getName()); |
37 |
} |
38 |
} |