edu.ksu.cis.bandera.tool
Interface ToolMomento


public interface ToolMomento

The ToolMomento provides an object that can be used to store and load the state of a tool. This will be used to get the current state of a tool and write it out to the file system. This state can be used to restart the tool in the state described.

Version:
$Revision: 1.2 $ - $Date: 2003/08/06 15:30:47 $
Author:
Todd Wallentine tcw AT cis ksu edu

Method Summary
 void init()
          Initialize the ToolMomento using the default configuration.
 void init(java.lang.String s)
          Initialize the ToolMomemto using the given String.
 java.lang.String toString()
          Create and return a String representation of the state.
 

Method Detail

init

public void init()
Initialize the ToolMomento using the default configuration.


init

public void init(java.lang.String s)
          throws java.lang.Exception
Initialize the ToolMomemto using the given String. This String will be in the format that is returned from the toString() method.

Parameters:
s - A String representation of a state of a Tool.
Throws:
java.lang.Exception - An Exception should be thrown when an error occurs with the String given (either the format or value).

toString

public java.lang.String toString()
Create and return a String representation of the state.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of the current state.