public class GraphmlDesignSpaceVisualizer extends java.lang.Object implements IDesignSpaceVisualizer
IDesignSpaceVisualizer
interface by storing the trace of the exploration into its
own data structure and exporting it to .graphml. It only supports
single threaded exploration.Constructor and Description |
---|
GraphmlDesignSpaceVisualizer()
Initializes a new instance of the
GraphmlDesignSpaceVisualizer with default options and the file name
"DSEDesignSpace.graphml". |
GraphmlDesignSpaceVisualizer(DesignSpaceVisualizerOptions options)
Initializes a new instance of the
GraphmlDesignSpaceVisualizer with custom options and the file name
"DSEDesignSpace.graphml". |
GraphmlDesignSpaceVisualizer(DesignSpaceVisualizerOptions options,
java.lang.String fileName)
Initializes a new instance of the
GraphmlDesignSpaceVisualizer with custom options and file name to save. |
GraphmlDesignSpaceVisualizer(java.lang.String fileName)
Initializes a new instance of the
GraphmlDesignSpaceVisualizer with custom file name and default options. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName() |
DesignSpaceVisualizerOptions |
getOptions() |
void |
init(ThreadContext context)
Initializes the instance with a starting thread's context.
|
void |
save()
Saves the captured data.
|
void |
setFileName(java.lang.String fileName) |
void |
transitionFired(ITransition transition)
Called by the
DesignSpaceManager , after a rule activation (transition) is fired. |
void |
undo(ITransition transition)
Called by the
DesignSpaceManager , after undoing the previously fired rule activation (transition). |
public GraphmlDesignSpaceVisualizer(DesignSpaceVisualizerOptions options, java.lang.String fileName)
GraphmlDesignSpaceVisualizer
with custom options and file name to save.options
- fileName
- GraphmlDesignSpaceVisualizer
public GraphmlDesignSpaceVisualizer(DesignSpaceVisualizerOptions options)
GraphmlDesignSpaceVisualizer
with custom options and the file name
"DSEDesignSpace.graphml".options
- GraphmlDesignSpaceVisualizer
public GraphmlDesignSpaceVisualizer(java.lang.String fileName)
GraphmlDesignSpaceVisualizer
with custom file name and default options.fileName
- GraphmlDesignSpaceVisualizer
public GraphmlDesignSpaceVisualizer()
GraphmlDesignSpaceVisualizer
with default options and the file name
"DSEDesignSpace.graphml".fileName
- GraphmlDesignSpaceVisualizer
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public DesignSpaceVisualizerOptions getOptions()
public void init(ThreadContext context)
IDesignSpaceVisualizer
init
in interface IDesignSpaceVisualizer
DesignSpaceVisualizerOptions
public void save()
IDesignSpaceVisualizer
save
in interface IDesignSpaceVisualizer
public void transitionFired(ITransition transition)
IExploreEventHandler
DesignSpaceManager
, after a rule activation (transition) is fired. Multiple calls with the
same transition can occur.transitionFired
in interface IExploreEventHandler
transition
- The fired transition.public void undo(ITransition transition)
IExploreEventHandler
DesignSpaceManager
, after undoing the previously fired rule activation (transition).
Multiple calls with the same transition can occur.undo
in interface IExploreEventHandler
transition
- The undone transition.