de.cau.cs.kieler.sim.kiem.automated.ui.views
Class ExecutionFilePanel

java.lang.Object
  extended by de.cau.cs.kieler.sim.kiem.automated.ui.views.ExecutionFilePanel

public class ExecutionFilePanel
extends Object

A panel that displays a table visualizing the results of a the execution of one .execution file with multiple model files and possibly multiple iterations.

Rating proposed yellow
(2010-01-29)

Nested Class Summary
static class ExecutionFilePanel.PanelData
          Contains all the data that is shown on a execution file panel.
 
Constructor Summary
ExecutionFilePanel(IPath name, Composite panel)
          Creates a new ExecutionFilePanel.
ExecutionFilePanel(IPath name, Composite panel, Exception e0)
          Creates a new ExecutionFilePanel.
 
Method Summary
 void addResult(AbstractResult iterationResult)
          Add a new result to this panel.
 void addResult(List<AbstractResult> resultsParam)
          Add a list of results to the table, the columns will be taken from the last result in the list as that is assumed to be correct.
 void dispose()
          Dispose of this panel.
 ExecutionFilePanel.PanelData getData()
          Get the data contained in the table as a matrix.
 IPath getExecName()
          Getter for the execName.
 void refresh()
          Refreshes the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionFilePanel

public ExecutionFilePanel(IPath name,
                          Composite panel)
Creates a new ExecutionFilePanel.

Parameters:
name - the execution file
panel - the parent panel

ExecutionFilePanel

public ExecutionFilePanel(IPath name,
                          Composite panel,
                          Exception e0)
Creates a new ExecutionFilePanel.

Parameters:
name - the execution file
panel - the parent panel
e0 - the exception that caused the error
Method Detail

addResult

public void addResult(AbstractResult iterationResult)
Add a new result to this panel. If this is the first call to this method the panel is set up with the column names extracted from the properties in the passed result.

Parameters:
iterationResult - the result that should be added

addResult

public void addResult(List<AbstractResult> resultsParam)
Add a list of results to the table, the columns will be taken from the last result in the list as that is assumed to be correct.

Parameters:
resultsParam - the list of results

getExecName

public IPath getExecName()
Getter for the execName.

Returns:
the execName

dispose

public void dispose()
Dispose of this panel.


refresh

public void refresh()
Refreshes the view.


getData

public ExecutionFilePanel.PanelData getData()
Get the data contained in the table as a matrix.

Returns:
the data