|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DisconnectableTool interface is provided for tools that wish to provide the ability for the user to request that the tool stop processing in such a way as to allow it to restart again at the same state as it finished. A DisconnectableTool will likely be used in the following manner:
... user requests the tool to disconnect ...
ToolMomento tm = disconnectableTool.disconnect();
... save the state to the filesystem ...
... user requests the tool to connect using the given String, s ...
ToolMomento tm = disconnectableTool.createToolMomento();
tm.init(s);
disconnectableTool.connect(tm);
disconnectableTool.run();
| Method Summary | |
void |
connect(edu.ksu.cis.bandera.tool.ToolMomento toolMomento)
Connect this tool using the given ToolMomento as the start state. |
edu.ksu.cis.bandera.tool.ToolMomento |
createToolMomento()
Create a ToolMomento for this type of tool. |
edu.ksu.cis.bandera.tool.ToolMomento |
disconnect()
Disconnect this tool and return it's current state in the form of a ToolMomento |
| Methods inherited from interface edu.ksu.cis.bandera.tool.Tool |
getConfiguration, getInputParameterList, getOutputMap, getOutputParameterList, getToolConfigurationView, getToolIconView, quit, run, setConfiguration, setInputMap |
| Methods inherited from interface edu.ksu.cis.bandera.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, resumeObservers, suspendObservers |
| Method Detail |
public edu.ksu.cis.bandera.tool.ToolMomento disconnect()
throws java.lang.Exception
java.lang.Exception - An Exception should be thrown when an error
occurs during disconnection.
public void connect(edu.ksu.cis.bandera.tool.ToolMomento toolMomento)
throws java.lang.Exception
toolMomento - The start state for this tool.
java.lang.Exception - An Exception should be thrown when an error
occurs during connection. This might include problems
with the ToolMomento (in type or with the values in it).public edu.ksu.cis.bandera.tool.ToolMomento createToolMomento()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||