Class DataMapping
java.lang.Object
org.graffiti.plugin.algorithm.AbstractAlgorithm
org.graffiti.plugin.algorithm.AbstractEditorAlgorithm
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.AbstractExperimentDataProcessor
de.ipk_gatersleben.ag_nw.graffiti.plugins.algorithms.data_mapping.DataMapping
- All Implemented Interfaces:
ExperimentDataProcessor,UndoableEdit,Algorithm,EditorAlgorithm
public class DataMapping extends AbstractExperimentDataProcessor
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataMapping.ShowMappingResults -
Constructor Summary
Constructors Constructor Description DataMapping()DataMapping(boolean register) -
Method Summary
Modifier and Type Method Description booleanactiveForView(View v)voidexecute()Should not be overridden, only in case processData() uses a background thread.StringgetDescription()The algorithm description.ImageIcongetIcon()Returns the icon of the algorithm (used, e.g.StringgetName()Returns the name (ID) of the algorithm.Parameter[]getParameters()Returns a list ofParameterthat are set for this algorithm.Set<Category>getSetCategory()Returns a set of categories to classify this algorithm .StringgetShortName()booleanisSupressReset()booleanmayWorkOnMultipleGraphs()voidprocessData()voidreset()Resets the internal state of the algorithm.voidsetActionEvent(ActionEvent a)voidsetDoShowResult(DataMapping.ShowMappingResults showResult)voidsetExperimentData(ExperimentInterface md)Perform data mapping (or something else).voidsetParameters(Parameter[] params)Sets the parameters for this algorithm.voidsetSupressReset(boolean supressReset)DataMapping.ShowMappingResultsshowResult()Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.AbstractExperimentDataProcessor
addPostProcessor, getAnnotations, removePostProcessor, setComponentMethods inherited from class org.graffiti.plugin.algorithm.AbstractEditorAlgorithm
getParameterDialogMethods inherited from class org.graffiti.plugin.algorithm.AbstractAlgorithm
addEdit, attach, canRedo, canUndo, check, die, doesUndo, getAcceleratorKeyStroke, getActionEvent, getCategory, getMenuCategory, getPresentationName, getRedoPresentationName, getUndoPresentationName, isAlwaysExecutable, isLayoutAlgorithm, isSignificant, markExecutionDone, markRedoDone, markUndoDone, redo, replaceEdit, showMenuIcon, undoMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graffiti.plugin.algorithm.Algorithm
attach, check, getAcceleratorKeyStroke, getActionEvent, getCategory, getMenuCategory, isLayoutAlgorithm, showMenuIcon
-
Constructor Details
-
DataMapping
public DataMapping() -
DataMapping
public DataMapping(boolean register)
-
-
Method Details
-
setExperimentData
Description copied from interface:ExperimentDataProcessorPerform data mapping (or something else).- Specified by:
setExperimentDatain interfaceExperimentDataProcessor- Specified by:
setExperimentDatain classAbstractExperimentDataProcessor- Parameters:
md- Experiment data (XML)
-
execute
public void execute()Description copied from class:AbstractExperimentDataProcessorShould not be overridden, only in case processData() uses a background thread. In this case the postProcessors and the setExperimentData() call should be executed by your code as soon as the background processing is finished.- Specified by:
executein interfaceAlgorithm- Overrides:
executein classAbstractExperimentDataProcessor
-
activeForView
-
getDescription
Description copied from class:AbstractAlgorithmThe algorithm description.- Specified by:
getDescriptionin interfaceAlgorithm- Overrides:
getDescriptionin classAbstractAlgorithm- Returns:
- String, could be HTML-styled.
-
getParameters
Description copied from interface:AlgorithmReturns a list ofParameterthat are set for this algorithm.- Specified by:
getParametersin interfaceAlgorithm- Overrides:
getParametersin classAbstractAlgorithm- Returns:
- a collection of
Parameterthat are needed by theAlgorithm.
-
setParameters
Description copied from interface:AlgorithmSets the parameters for this algorithm. Must have the same types and order as the array returned bygetParameter.- Specified by:
setParametersin interfaceAlgorithm- Overrides:
setParametersin classAbstractAlgorithm- Parameters:
params- Parameter array
-
setActionEvent
- Specified by:
setActionEventin interfaceAlgorithm- Overrides:
setActionEventin classAbstractAlgorithm
-
processData
public void processData() -
getName
Description copied from interface:AlgorithmReturns the name (ID) of the algorithm.- Returns:
- DOCUMENT ME!
-
getShortName
- Specified by:
getShortNamein interfaceEditorAlgorithm- Overrides:
getShortNamein classAbstractEditorAlgorithm- Returns:
- A short name, used for the parameter dialog window.
-
mayWorkOnMultipleGraphs
public boolean mayWorkOnMultipleGraphs()- Specified by:
mayWorkOnMultipleGraphsin interfaceAlgorithm- Overrides:
mayWorkOnMultipleGraphsin classAbstractAlgorithm
-
setDoShowResult
-
showResult
-
reset
public void reset()Description copied from interface:AlgorithmResets the internal state of the algorithm.- Specified by:
resetin interfaceAlgorithm- Overrides:
resetin classAbstractAlgorithm
-
setSupressReset
public void setSupressReset(boolean supressReset) -
isSupressReset
public boolean isSupressReset() -
getIcon
Description copied from class:AbstractEditorAlgorithmReturns the icon of the algorithm (used, e.g. in the menu bar). Icon is only shown if showMenuIcon returns true.- Specified by:
getIconin interfaceEditorAlgorithm- Overrides:
getIconin classAbstractEditorAlgorithm- Returns:
- The icon of the algorithm or null if the plugin icon should be used.
-
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.
-