es.unex.sextante.gui.history
Class History

java.lang.Object
  extended by es.unex.sextante.gui.history.History

public class History
extends java.lang.Object

A class used to store the history of algorithms and commands executed by sextante. All of them are stored as command-line commands ,and as such can be re-executed later

Author:
volaya

Constructor Summary
History()
           
 
Method Summary
static void addToHistory(java.lang.String sExp)
          Adds a single expression to the history
static void addToHistory(java.lang.String[] sExp)
          Adds a set of expressions to the history
static java.util.ArrayList getHistory()
          Returns the history as an array list with expressions
static long getSessionStartingTime()
           
static void startSession()
          Starts this session, storing its starting time This will be used to refer history commands to this session starting time on the history dialog
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

History

public History()
Method Detail

addToHistory

public static void addToHistory(java.lang.String[] sExp)
Adds a set of expressions to the history

Parameters:
sExp - an array of expressions

addToHistory

public static void addToHistory(java.lang.String sExp)
Adds a single expression to the history

Parameters:
sExp - an expression

getHistory

public static java.util.ArrayList getHistory()
Returns the history as an array list with expressions

Returns:
the history

startSession

public static void startSession()
Starts this session, storing its starting time This will be used to refer history commands to this session starting time on the history dialog


getSessionStartingTime

public static long getSessionStartingTime()