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 voidcheck()No special checks implemented.voidexecute()Starts the Bean Shell Desktop.StringgetCategory()Returns the category an algorithm should assigned to.StringgetName()Returns the algorithms name.Set<Category>getSetCategory()Returns a set of categories to classify this algorithm .voidreset()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:AlgorithmReturns the category an algorithm should assigned to. Return NULL if the algorithm should be sorted directly in the plugin menu.- Specified by:
getCategoryin interfaceAlgorithm- Overrides:
getCategoryin classAbstractAlgorithm- Returns:
- The category an algorithm should assigned to.
-
getSetCategory
Description copied from interface:AlgorithmReturns 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:
getSetCategoryin interfaceAlgorithm- Overrides:
getSetCategoryin classAbstractAlgorithm- Returns:
- Set of Category Enums that classify this algorithm.
-
check
No special checks implemented.- Specified by:
checkin interfaceAlgorithm- Overrides:
checkin 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:
resetin interfaceAlgorithm- Overrides:
resetin classAbstractAlgorithm
-