es.unex.sextante.core
Class AlgorithmsAndResources

java.lang.Object
  extended by es.unex.sextante.core.AlgorithmsAndResources

public class AlgorithmsAndResources
extends java.lang.Object

Methods in this class act as entry points for algorithms and resource files. Algorithms are loaded when the library is initialized. Adding new algorithms after calling Sextante.initialize() will not add them to the list of currently available ones, so all additional algorithms should be added before initializing the library


Constructor Summary
AlgorithmsAndResources()
           
 
Method Summary
static void addAlgorithm(java.lang.String sAlgClassName)
          Adds a new algorithm to the list or currently available ones
static void addAlgorithmsAndPropertiesFromClasspath()
          Adds all sextante algorithms and properties files located in the jar files in the classpath.
static void addAlgorithmsAndPropertiesFromFolder(java.lang.String sFolder)
          Adds all sextante algorithms and properties files located in the jar files of a given folder.
static void addPropertiesFile(java.lang.String sName)
          Adds a new properties file to the list
static java.lang.String[] getAlgorithmClassNames()
          Returns an array of class names of all the algorithms currently included in the library
static java.lang.String[] getPropertiesFilenames()
          Returns an array of names of properties files containing resource strings for i18N
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmsAndResources

public AlgorithmsAndResources()
Method Detail

getAlgorithmClassNames

public static java.lang.String[] getAlgorithmClassNames()
Returns an array of class names of all the algorithms currently included in the library

Returns:
an array of algorithm class names

getPropertiesFilenames

public static java.lang.String[] getPropertiesFilenames()
Returns an array of names of properties files containing resource strings for i18N

Returns:
an array of properties filenames

addAlgorithm

public static void addAlgorithm(java.lang.String sAlgClassName)
Adds a new algorithm to the list or currently available ones

Parameters:
sAlgClassName - the name of the class representing the algorithm

addPropertiesFile

public static void addPropertiesFile(java.lang.String sName)
Adds a new properties file to the list

Parameters:
sName - the base name of the properties file

addAlgorithmsAndPropertiesFromClasspath

public static void addAlgorithmsAndPropertiesFromClasspath()
Adds all sextante algorithms and properties files located in the jar files in the classpath.


addAlgorithmsAndPropertiesFromFolder

public static void addAlgorithmsAndPropertiesFromFolder(java.lang.String sFolder)
Adds all sextante algorithms and properties files located in the jar files of a given folder.

Parameters:
sFolder - the folder where jar files are located