Class NESTWorkflowStringVisualizerImpl<T extends NESTAbstractWorkflowObject>
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
-
- de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTWorkflowVisualizerImpl<T>
-
- de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTWorkflowStringVisualizerImpl<T>
-
- All Implemented Interfaces:
NESTGraphVisualizer
,NESTWorkflowVisualizer
- Direct Known Subclasses:
NESTWorkflowStringVisualizerScientificImpl
public class NESTWorkflowStringVisualizerImpl<T extends NESTAbstractWorkflowObject> extends NESTWorkflowVisualizerImpl<T>
This class is the main implementation of a NESTGraphVisualizer and visualizes a NESTGraph as a simple String that is printed in the Console.
-
-
Field Summary
Fields Modifier and Type Field Description protected Parameter
SHOW_CONTROLFLOW_EDGES
protected Parameter
SHOW_CONTROLFLOW_ELEMENT_IDS
protected Parameter
SHOW_CONTROLFLOW_END_ELEMENTS
protected Parameter
SHOW_DATA_IDS
protected Parameter
SHOW_DATA_IDS_IN_PLACE
protected Parameter
SHOW_DATAFLOW_EDGES
protected Parameter
SHOW_DFS_STRUCTURE
protected Parameter
SHOW_GRAPH_STRUCTURE
protected Parameter
SHOW_PART_OF_EDGES
protected Parameter
SHOW_SUBWORKFLOWS
protected Parameter
SHOW_TASK_IDS
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTWorkflowVisualizerImpl
graph, parameterToGraphItemTypeMapping
-
-
Constructor Summary
Constructors Constructor Description NESTWorkflowStringVisualizerImpl()
NESTWorkflowStringVisualizerImpl(T graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NESTWorkflowVisualizerImpl
copy(T graph)
protected String
generateString()
protected String
getLabel(NESTDataNodeObject node)
List<Parameter>
getParameters()
Object
getVisualization()
The main method to return a visualization, e.g.void
preInit(AbstractParameter[] parameter)
Called directly after creating the implementation.protected void
printTaskNode(StringBuilder prefix, NESTTaskNodeObject task, StringBuilder output)
protected void
processNode(StringBuilder prefix, StringBuilder output, NESTSequenceNodeObject node)
void
visualize()
The main method to show a visualization of any kind.-
Methods inherited from class de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTWorkflowVisualizerImpl
getLabel, postInit
-
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
-
-
-
Field Detail
-
SHOW_GRAPH_STRUCTURE
protected final Parameter SHOW_GRAPH_STRUCTURE
-
SHOW_CONTROLFLOW_EDGES
protected final Parameter SHOW_CONTROLFLOW_EDGES
-
SHOW_DATAFLOW_EDGES
protected final Parameter SHOW_DATAFLOW_EDGES
-
SHOW_PART_OF_EDGES
protected final Parameter SHOW_PART_OF_EDGES
-
SHOW_TASK_IDS
protected final Parameter SHOW_TASK_IDS
-
SHOW_CONTROLFLOW_END_ELEMENTS
protected final Parameter SHOW_CONTROLFLOW_END_ELEMENTS
-
SHOW_CONTROLFLOW_ELEMENT_IDS
protected final Parameter SHOW_CONTROLFLOW_ELEMENT_IDS
-
SHOW_DATA_IDS
protected final Parameter SHOW_DATA_IDS
-
SHOW_DATA_IDS_IN_PLACE
protected final Parameter SHOW_DATA_IDS_IN_PLACE
-
SHOW_SUBWORKFLOWS
protected final Parameter SHOW_SUBWORKFLOWS
-
SHOW_DFS_STRUCTURE
protected final Parameter SHOW_DFS_STRUCTURE
-
-
Constructor Detail
-
NESTWorkflowStringVisualizerImpl
public NESTWorkflowStringVisualizerImpl()
-
NESTWorkflowStringVisualizerImpl
public NESTWorkflowStringVisualizerImpl(T graph)
-
-
Method Detail
-
generateString
protected String generateString()
-
getLabel
protected String getLabel(NESTDataNodeObject node)
-
processNode
protected void processNode(StringBuilder prefix, StringBuilder output, NESTSequenceNodeObject node)
-
printTaskNode
protected void printTaskNode(StringBuilder prefix, NESTTaskNodeObject task, StringBuilder output)
-
visualize
public void visualize()
Description copied from interface:NESTGraphVisualizer
The main method to show a visualization of any kind.
-
getVisualization
public Object getVisualization()
Description copied from interface:NESTGraphVisualizer
The main method to return a visualization, e.g. a string or an xml.- Returns:
- the visualization in the export format
-
getParameters
public List<Parameter> getParameters()
- Overrides:
getParameters
in classNESTWorkflowVisualizerImpl<T extends NESTAbstractWorkflowObject>
- Returns:
- Returns a list of available parameters in the implementation. This method can be called
without initialization and is never
null
.
-
preInit
public void preInit(AbstractParameter[] parameter)
Description copied from class:FactoryObjectImplementation
Called directly after creating the implementation.- Overrides:
preInit
in classNESTWorkflowVisualizerImpl<T extends NESTAbstractWorkflowObject>
- Parameters:
parameter
- The parameters to initialize the implementation.
-
copy
public NESTWorkflowVisualizerImpl copy(T graph)
- Specified by:
copy
in classNESTWorkflowVisualizerImpl<T extends NESTAbstractWorkflowObject>
-
-