|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.unex.sextante.core.Sextante
public class Sextante
Constructor Summary | |
---|---|
Sextante()
|
Method Summary | |
---|---|
static void |
addCoordsoLog(java.lang.String sCoords)
Adds a coordinate set to the "Points" history |
static void |
addErrorToLog(java.lang.String sError)
Adds an error message to the SEXTANTE logger |
static void |
addErrorToLog(java.lang.Throwable e)
logs an error or exception to the SEXTANTE logger |
static void |
addGeoProcess(java.lang.Class<?> alg,
java.util.HashMap text)
Adds an external geoprocess. |
static void |
addGeoProcess(GeoAlgorithm alg)
Adds an external geoprocess. |
static void |
addGRASSToLog(java.lang.String sGRASS)
Adds a GRASS output message to the SEXTANTE logger |
static void |
addInfoToLog(java.lang.String sInfo)
Adds an info message to the SEXTANTE logger |
static void |
addTranslation(java.util.HashMap text)
Adds external translations |
static void |
addWarningToLog(java.lang.String sWarning)
Adds a warning message to the SEXTANTE logger |
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. command-line names (see GeoAlgorithm.getCommandLineName() ) are used
as keys. |
static java.util.HashMap |
getAlgorithms(IGeoAlgorithmFilter filter)
Returns a map of algorithms in the library filtered using a given filter. command-line names (see GeoAlgorithm.getCommandLineName() ) are used as keys. |
static SextanteLogHandler |
getLogger()
Returns the logger to log SEXTANTE issues |
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. |
static void |
initialize(java.lang.String sFolder)
initializes the library, loading algorithms and properties. |
static void |
initialize(java.net.URL[] jars)
Initializes the library loading algorithms and properties located inside the specified jar files |
static boolean |
isMacOSX()
Returns "true" if the current operating system is Mac OS X. |
static boolean |
isUnix()
Returns "true" if the current operating system is some Unix flavor (including Linux). |
static boolean |
isWindows()
Returns "true" if the current operating system is a variant of Windows. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sextante()
Method Detail |
---|
public static void initialize()
public static void initialize(java.net.URL[] jars)
jars
- URLs of jar files containing algorithms and properties.public static void initialize(java.lang.String sFolder)
sFolder
- the folder where sextante jars are located. Algorithms and properties files are loaded from those jar files
prior to library initialization.public static void addGeoProcess(java.lang.Class<?> alg, java.util.HashMap text)
alg
- External algorithmtext
- HashMap which contains the propertiespublic static void addGeoProcess(GeoAlgorithm alg)
alg
- External algorithmpublic static void addTranslation(java.util.HashMap text)
text
- HashMap which contains the propertiespublic static void addErrorToLog(java.lang.Throwable e)
e
- the throwable object to logpublic static void addErrorToLog(java.lang.String sError)
sError
- the error messagepublic static void addWarningToLog(java.lang.String sWarning)
sWarning
- the warning messagepublic static void addInfoToLog(java.lang.String sInfo)
sInfo
- the info messagepublic static void addGRASSToLog(java.lang.String sGRASS)
sGRASS
- the GRASS messagepublic static void addCoordsoLog(java.lang.String sCoords)
sGRASS
- the GRASS messagepublic static SextanteLogHandler getLogger()
public static java.util.HashMap getAlgorithms()
GeoAlgorithm.getCommandLineName()
) are used
as keys. The library must have been initialized before. Otherwise, this method will return an empty map
public static java.util.HashMap getAlgorithms(IGeoAlgorithmFilter filter)
GeoAlgorithm.getCommandLineName()
) are used as keys. The library must have been initialized before. Otherwise, this
method will return an empty map
filter
- The filter to use
public static GeoAlgorithm getAlgorithmFromCommandLineName(java.lang.String sName)
GeoAlgorithm.getCommandLineName()
)
sName
- the command-line name
public static java.lang.String getText(java.lang.String sKey)
sKey
- the key to search
public static boolean isWindows()
public static boolean isMacOSX()
public static boolean isUnix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |