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 class
DataMapping.ShowMappingResults
-
Constructor Summary
Constructors Constructor Description DataMapping()
DataMapping(boolean register)
-
Method Summary
Modifier and Type Method Description boolean
activeForView(View v)
void
execute()
Should not be overridden, only in case processData() uses a background thread.String
getDescription()
The algorithm description.ImageIcon
getIcon()
Returns the icon of the algorithm (used, e.g.String
getName()
Returns the name (ID) of the algorithm.Parameter[]
getParameters()
Returns a list ofParameter
that are set for this algorithm.Set<Category>
getSetCategory()
Returns a set of categories to classify this algorithm .String
getShortName()
boolean
isSupressReset()
boolean
mayWorkOnMultipleGraphs()
void
processData()
void
reset()
Resets the internal state of the algorithm.void
setActionEvent(ActionEvent a)
void
setDoShowResult(DataMapping.ShowMappingResults showResult)
void
setExperimentData(ExperimentInterface md)
Perform data mapping (or something else).void
setParameters(Parameter[] params)
Sets the parameters for this algorithm.void
setSupressReset(boolean supressReset)
DataMapping.ShowMappingResults
showResult()
Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.AbstractExperimentDataProcessor
addPostProcessor, getAnnotations, removePostProcessor, setComponent
Methods inherited from class org.graffiti.plugin.algorithm.AbstractEditorAlgorithm
getParameterDialog
Methods 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, undo
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ExperimentDataProcessor
Perform data mapping (or something else).- Specified by:
setExperimentData
in interfaceExperimentDataProcessor
- Specified by:
setExperimentData
in classAbstractExperimentDataProcessor
- Parameters:
md
- Experiment data (XML)
-
execute
public void execute()Description copied from class:AbstractExperimentDataProcessor
Should 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:
execute
in interfaceAlgorithm
- Overrides:
execute
in classAbstractExperimentDataProcessor
-
activeForView
-
getDescription
Description copied from class:AbstractAlgorithm
The algorithm description.- Specified by:
getDescription
in interfaceAlgorithm
- Overrides:
getDescription
in classAbstractAlgorithm
- Returns:
- String, could be HTML-styled.
-
getParameters
Description copied from interface:Algorithm
Returns a list ofParameter
that are set for this algorithm.- Specified by:
getParameters
in interfaceAlgorithm
- Overrides:
getParameters
in classAbstractAlgorithm
- Returns:
- a collection of
Parameter
that are needed by theAlgorithm
.
-
setParameters
Description copied from interface:Algorithm
Sets the parameters for this algorithm. Must have the same types and order as the array returned bygetParameter
.- Specified by:
setParameters
in interfaceAlgorithm
- Overrides:
setParameters
in classAbstractAlgorithm
- Parameters:
params
- Parameter array
-
setActionEvent
- Specified by:
setActionEvent
in interfaceAlgorithm
- Overrides:
setActionEvent
in classAbstractAlgorithm
-
processData
public void processData() -
getName
Description copied from interface:Algorithm
Returns the name (ID) of the algorithm.- Returns:
- DOCUMENT ME!
-
getShortName
- Specified by:
getShortName
in interfaceEditorAlgorithm
- Overrides:
getShortName
in classAbstractEditorAlgorithm
- Returns:
- A short name, used for the parameter dialog window.
-
mayWorkOnMultipleGraphs
public boolean mayWorkOnMultipleGraphs()- Specified by:
mayWorkOnMultipleGraphs
in interfaceAlgorithm
- Overrides:
mayWorkOnMultipleGraphs
in classAbstractAlgorithm
-
setDoShowResult
-
showResult
-
reset
public void reset()Description copied from interface:Algorithm
Resets the internal state of the algorithm.- Specified by:
reset
in interfaceAlgorithm
- Overrides:
reset
in classAbstractAlgorithm
-
setSupressReset
public void setSupressReset(boolean supressReset) -
isSupressReset
public boolean isSupressReset() -
getIcon
Description copied from class:AbstractEditorAlgorithm
Returns the icon of the algorithm (used, e.g. in the menu bar). Icon is only shown if showMenuIcon returns true.- Specified by:
getIcon
in interfaceEditorAlgorithm
- Overrides:
getIcon
in classAbstractEditorAlgorithm
- Returns:
- The icon of the algorithm or null if the plugin icon should be used.
-
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.
-