es.unex.sextante.core
Class Sextante

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

public class Sextante
extends java.lang.Object


Constructor Summary
Sextante()
           
 
Method Summary
static GeoAlgorithm getAlgorithmFromCommandLineName(java.lang.String sName)
          returns an algorithm based on its command line name.
static java.util.HashMap getAlgorithms()
          Returns a map of all algorithms in the library.
static java.lang.String getText(java.lang.String sKey)
          Returns an internationalized string based on a key value (i.e the string in the current language associated with the key value) Use this method to support internationalization.
static void initialize()
          initializes the library, loading algorithms and properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sextante

public Sextante()
Method Detail

initialize

public static void initialize()
initializes the library, loading algorithms and properties


getAlgorithms

public static java.util.HashMap getAlgorithms()
Returns a map of all algorithms in the library. command-line names (see GeoAlgorithm.getCommandLineName() are used as keys. The library must have been initialized before. Otherwise, this method will return an empty map

Returns:
a map of all algorithms in the library. command-line names (see GeoAlgorithm.getCommandLineName()) are used as keys

getAlgorithmFromCommandLineName

public static GeoAlgorithm getAlgorithmFromCommandLineName(java.lang.String sName)
returns an algorithm based on its command line name. (see GeoAlgorithm.getCommandLineName())

Parameters:
sName - the command-line name
Returns:
an algorithm. null if there is no algorithm with that name

getText

public static java.lang.String getText(java.lang.String sKey)
Returns an internationalized string based on a key value (i.e the string in the current language associated with the key value) Use this method to support internationalization. Resource strings are loaded when the library is initialized, so the initialize() method has to be called to use the corresponding translations.

Parameters:
sKey - the key to search
Returns:
the corresponding string in the current language. If the key was not found, it returns that same key.