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 ParameterSHOW_CONTROLFLOW_EDGESprotected ParameterSHOW_CONTROLFLOW_ELEMENT_IDSprotected ParameterSHOW_CONTROLFLOW_END_ELEMENTSprotected ParameterSHOW_DATA_IDSprotected ParameterSHOW_DATA_IDS_IN_PLACEprotected ParameterSHOW_DATAFLOW_EDGESprotected ParameterSHOW_DFS_STRUCTUREprotected ParameterSHOW_GRAPH_STRUCTUREprotected ParameterSHOW_PART_OF_EDGESprotected ParameterSHOW_SUBWORKFLOWSprotected ParameterSHOW_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 NESTWorkflowVisualizerImplcopy(T graph)protected StringgenerateString()protected StringgetLabel(NESTDataNodeObject node)List<Parameter>getParameters()ObjectgetVisualization()The main method to return a visualization, e.g.voidpreInit(AbstractParameter[] parameter)Called directly after creating the implementation.protected voidprintTaskNode(StringBuilder prefix, NESTTaskNodeObject task, StringBuilder output)protected voidprocessNode(StringBuilder prefix, StringBuilder output, NESTSequenceNodeObject node)voidvisualize()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:NESTGraphVisualizerThe main method to show a visualization of any kind.
-
getVisualization
public Object getVisualization()
Description copied from interface:NESTGraphVisualizerThe 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:
getParametersin 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:FactoryObjectImplementationCalled directly after creating the implementation.- Overrides:
preInitin classNESTWorkflowVisualizerImpl<T extends NESTAbstractWorkflowObject>- Parameters:
parameter- The parameters to initialize the implementation.
-
copy
public NESTWorkflowVisualizerImpl copy(T graph)
- Specified by:
copyin classNESTWorkflowVisualizerImpl<T extends NESTAbstractWorkflowObject>
-
-