Package org.svvrl.goal.gui.action
Class MSContainmentAction
java.lang.Object
javax.swing.AbstractAction
org.svvrl.goal.gui.action.WindowAction<O>
org.svvrl.goal.gui.action.EditableAction<FSA,java.lang.Void>
org.svvrl.goal.gui.action.MSContainmentAction
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,TabSwitchedListener
public class MSContainmentAction extends EditableAction<FSA,java.lang.Void>
This is an action that tests if an automaton is contained in another
automaton based on incremental Muller-Schupp construction.
- Author:
- Ming-Hsien Tsai
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MSContainmentAction(Window win)
Constructs this action with an owner window. -
Method Summary
Modifier and Type Method Description java.lang.Void
execute(ProgressDialog dialog)
Performs the main part of this action.java.lang.String
getToolTip()
Returns the tooltip text of this action.boolean
isApplicable(Tab tab)
Returnstrue
if this action is applicable to a specified tab.protected boolean
isProgressBarRequired()
Returnstrue
if the progress bar should be displayed.void
preProcess(ProgressDialog dialog)
Performs the pre-process of this action.Methods inherited from class org.svvrl.goal.gui.action.EditableAction
getInput, isReadOnlyApplicable
Methods inherited from class org.svvrl.goal.gui.action.WindowAction
actionPerformed, getAccelerator, getLargeIcon, getMnemonic, getOutput, getProgressBarTitle, getSmallIcon, getWindow, isHideProgressBarAfterExecution, isSelected, postProcess, setHideProgressBarAfterExecution, setProgressBarRequired, tabSwitched
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
MSContainmentAction
Constructs this action with an owner window.- Parameters:
win
- the owner window of this action
-
-
Method Details
-
isApplicable
Description copied from class:WindowAction
Returnstrue
if this action is applicable to a specified tab. By default, this action is applicable to any tab.- Overrides:
isApplicable
in classEditableAction<FSA,java.lang.Void>
- Parameters:
tab
- a tab- Returns:
true
if this action is applicable totab
-
getToolTip
public java.lang.String getToolTip()Description copied from class:WindowAction
Returns the tooltip text of this action.- Specified by:
getToolTip
in classWindowAction<java.lang.Void>
- Returns:
- the tooltip text of this action
-
isProgressBarRequired
protected boolean isProgressBarRequired()Description copied from class:WindowAction
Returnstrue
if the progress bar should be displayed. By default, the progress bar is not displayed.- Overrides:
isProgressBarRequired
in classWindowAction<java.lang.Void>
- Returns:
true
if the progress bar should be displayed
-
preProcess
Description copied from class:WindowAction
Performs the pre-process of this action. This method is mainly used to check the validity of the input.- Overrides:
preProcess
in classEditableAction<FSA,java.lang.Void>
- Parameters:
dialog
- a progress dialog- Throws:
java.lang.Exception
- if there is an error during the pre-process
-
execute
Description copied from class:WindowAction
Performs the main part of this action.- Specified by:
execute
in classWindowAction<java.lang.Void>
- Parameters:
dialog
- a progress dialog- Returns:
- the output of this action
- Throws:
ExecutionException
- if there is an error during the executionFinishedException
- if the execution of this action is finished
-