es.unex.sextante.gui.grass
Class GrassUtils

java.lang.Object
  extended by es.unex.sextante.gui.grass.GrassUtils

public class GrassUtils
extends java.lang.Object


Constructor Summary
GrassUtils()
           
 
Method Summary
static java.lang.String getBatchJobFile()
           
static java.lang.ProcessBuilder getGrassExecutable()
          Returns the commands to execute grass.
static java.lang.String getGroup(GeoAlgorithm grass)
          Return the group associated to a GRASS algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrassUtils

public GrassUtils()
Method Detail

getGrassExecutable

public static java.lang.ProcessBuilder getGrassExecutable()
Returns the commands to execute grass. This includes the grass executable and the grass data location, both as elements in a list, ready to be used for creating a ProcessBuilder object.

Returns:
the command to execute grass

getBatchJobFile

public static java.lang.String getBatchJobFile()

getGroup

public static java.lang.String getGroup(GeoAlgorithm grass)
Return the group associated to a GRASS algorithm. The string is returns is already in the current locale language

Parameters:
grass - a GRASS algorithm
Returns:
The name of the group the given algorithm should be put into in the toolbox tree.