Class BeanShellDesktopAlgorithm
java.lang.Object
org.graffiti.plugin.algorithm.AbstractAlgorithm
de.ipk_gatersleben.ag_nw.graffiti.plugins.misc.scripting.BeanShellDesktopAlgorithm
- All Implemented Interfaces:
UndoableEdit
,Algorithm
public class BeanShellDesktopAlgorithm extends AbstractAlgorithm
Provides a Bean Shell Desktop for the execution of Bean Shell Scripts.
- Author:
- Dirk Koschützki, Christian Klukas
-
Constructor Summary
Constructors Constructor Description BeanShellDesktopAlgorithm()
Creates a new BeanShellDesktopAlgorithm object. -
Method Summary
Modifier and Type Method Description void
check()
No special checks implemented.void
execute()
Starts the Bean Shell Desktop.String
getCategory()
Returns the category an algorithm should assigned to.String
getName()
Returns the algorithms name.Set<Category>
getSetCategory()
Returns a set of categories to classify this algorithm .void
reset()
No special reset implemented.Methods inherited from class org.graffiti.plugin.algorithm.AbstractAlgorithm
addEdit, attach, canRedo, canUndo, die, doesUndo, getAcceleratorKeyStroke, getActionEvent, getDescription, getMenuCategory, getParameters, getPresentationName, getRedoPresentationName, getUndoPresentationName, isAlwaysExecutable, isLayoutAlgorithm, isSignificant, markExecutionDone, markRedoDone, markUndoDone, mayWorkOnMultipleGraphs, redo, replaceEdit, setActionEvent, setParameters, showMenuIcon, undo
-
Constructor Details
-
BeanShellDesktopAlgorithm
public BeanShellDesktopAlgorithm()Creates a new BeanShellDesktopAlgorithm object.
-
-
Method Details
-
getName
Returns the algorithms name.- Returns:
- the algorithms name
-
getCategory
Description copied from interface:Algorithm
Returns the category an algorithm should assigned to. Return NULL if the algorithm should be sorted directly in the plugin menu.- Specified by:
getCategory
in interfaceAlgorithm
- Overrides:
getCategory
in classAbstractAlgorithm
- Returns:
- The category an algorithm should assigned to.
-
getSetCategory
Description copied from interface:Algorithm
Returns a set of categories to classify this algorithm . e.g. return new HashSet(Arrays.asList( Category.GRAPH, Category.NODE )); is an algorithm, working on graphs and more specific on nodes - Specified by:
getSetCategory
in interfaceAlgorithm
- Overrides:
getSetCategory
in classAbstractAlgorithm
- Returns:
- Set of Category Enums that classify this algorithm.
-
check
No special checks implemented.- Specified by:
check
in interfaceAlgorithm
- Overrides:
check
in classAbstractAlgorithm
- Throws:
PreconditionException
- if the preconditions of the current graph are not satisfied.
-
execute
public void execute()Starts the Bean Shell Desktop. -
reset
public void reset()No special reset implemented.- Specified by:
reset
in interfaceAlgorithm
- Overrides:
reset
in classAbstractAlgorithm
-