walker
Class Persisitor

java.lang.Object
  extended by walker.Persisitor

public class Persisitor
extends java.lang.Object

Created by IntelliJ IDEA. User: andy Date: Apr 19, 2010


Constructor Summary
Persisitor()
           
 
Method Summary
static void error(java.lang.String line)
          Temporarily stores a badSyntax error.
static double getCloserTimestamp(double timestamp)
          When the user seeks to a position, the visualization must continue from the previous stored experiment State.
static void persistErrors()
          Persists all stored errors.
static ExperimentState retrieve(double timestamp)
          Retrieves an ExperimentState from disk.
static void store(ExperimentState state)
          Persists an ExperimentState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Persisitor

public Persisitor()
Method Detail

error

public static void error(java.lang.String line)
Temporarily stores a badSyntax error.

Parameters:
line - information about the position of the syntax error in the wiseml file.

getCloserTimestamp

public static double getCloserTimestamp(double timestamp)
When the user seeks to a position, the visualization must continue from the previous stored experiment State. This method finds the timestamp of the previous method.

Parameters:
timestamp - where the user want's to seek (in milliseconds).
Returns:
the actual seeking timestamp.

persistErrors

public static void persistErrors()
Persists all stored errors.


retrieve

public static ExperimentState retrieve(double timestamp)
Retrieves an ExperimentState from disk.

Parameters:
timestamp - the ExperimentState's timestamp is used as a key.
Returns:
the retrieved ExperimentState.

store

public static void store(ExperimentState state)
Persists an ExperimentState.

Parameters:
state - the ExperimentState to be stored.