|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoolbus.viewer.Viewer
public class Viewer
Nested Class Summary | |
---|---|
private class |
Viewer.ButtonActionListener
|
private class |
Viewer.TableSelectionListener
|
Field Summary | |
---|---|
private int |
breakHighlightedRow
|
protected DebugToolBus |
debugToolBus
|
private static aterm.ATerm |
emptyTerm
|
private javax.swing.JFrame |
frame
|
protected javax.swing.JButton |
killButton
|
protected javax.swing.JTextField |
lastExecutedProcessInstanceField
|
protected javax.swing.JTextField |
lastExecutedStateElementField
|
private javax.swing.table.DefaultTableModel |
noteQueueTableModel
|
private javax.swing.JScrollPane |
processesScrollPane
|
protected javax.swing.JTable |
processesTable
|
private java.lang.String[] |
processesTableHeader
|
private javax.swing.table.DefaultTableModel |
processesTableModel
|
protected javax.swing.JButton |
runButton
|
protected javax.swing.JTable |
stateTable
|
private java.lang.String[] |
stateTableHeader
|
private javax.swing.table.DefaultTableModel |
stateTableModel
|
private javax.swing.JLabel |
status
|
protected javax.swing.JButton |
stepButton
|
private int |
stepHighlightedRow
|
protected javax.swing.JButton |
stopButton
|
private javax.swing.table.DefaultTableModel |
subscriptionsTableModel
|
private static TBTermFactory |
tbFactory
|
private javax.swing.table.DefaultTableModel |
variablesTableModel
|
Constructor Summary | |
---|---|
Viewer(java.lang.String[] args)
|
Method Summary | |
---|---|
private void |
clearNoteQueueTable()
|
private void |
clearProcessTableModifications()
|
private void |
clearStateTable()
|
private void |
clearSubscriptionsTable()
|
private void |
clearVariablesTable()
|
private void |
fillProcessTables(ProcessInstance processInstance)
|
private void |
fillVariables(StateElement stateElement)
|
DebugToolBus |
getDebugToolBus()
|
private static java.lang.String |
getNoteSignature(aterm.ATerm term)
|
private static java.lang.String |
getSubscriptionSignature(aterm.ATerm term)
|
private static java.lang.String |
getVariableSignature(aterm.ATerm term)
|
static void |
main(java.lang.String[] args)
|
void |
processBreakPointHit(ProcessInstance processInstance)
Informs the viewer that a registered breakpoint on a process or process instance was hit. |
void |
processInstanceStarted(ProcessInstance processInstance)
Fired when a new process instance is started. |
void |
processInstanceTerminated(ProcessInstance processInstance)
Fired when a process instance is terminated. |
void |
sourceBreakPointHit(StateElement stateElement)
Informs the viewer that a registered breakpoint on a sourcecode coordinate was hit. |
void |
stateElementBreakPointHit(StateElement stateElement)
Informs the viewer that a registered breakpoint on a state element was hit. |
void |
stepExecuted(ProcessInstance processInstance,
StateElement executedStateElement,
ProcessInstance[] partners)
Fired after the successfull completion of a step. |
private static aterm.ATerm |
substituteTerm(aterm.ATerm term,
int maxDept)
|
void |
toolbusStarting()
Fired right before the debug ToolBus starts executing the process logic. |
void |
toolbusTerminating()
Fired right before then debug ToolBus shuts down. |
void |
updateState(int state)
Informs the viewer about what the debug toolbus is currently doing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DebugToolBus debugToolBus
private final javax.swing.JFrame frame
private final javax.swing.JLabel status
protected final javax.swing.JButton runButton
protected final javax.swing.JButton stopButton
protected final javax.swing.JButton stepButton
protected final javax.swing.JButton killButton
protected final javax.swing.JTextField lastExecutedProcessInstanceField
protected final javax.swing.JTextField lastExecutedStateElementField
protected final javax.swing.JTable processesTable
private final java.lang.String[] processesTableHeader
protected final javax.swing.JTable stateTable
private final java.lang.String[] stateTableHeader
private final javax.swing.table.DefaultTableModel processesTableModel
private final javax.swing.table.DefaultTableModel subscriptionsTableModel
private final javax.swing.table.DefaultTableModel variablesTableModel
private final javax.swing.table.DefaultTableModel noteQueueTableModel
private final javax.swing.table.DefaultTableModel stateTableModel
private final javax.swing.JScrollPane processesScrollPane
private volatile int stepHighlightedRow
private volatile int breakHighlightedRow
private static final TBTermFactory tbFactory
private static final aterm.ATerm emptyTerm
Constructor Detail |
---|
public Viewer(java.lang.String[] args)
Method Detail |
---|
public DebugToolBus getDebugToolBus()
public void toolbusStarting()
IViewer
toolbusStarting
in interface IViewer
public void toolbusTerminating()
IViewer
toolbusTerminating
in interface IViewer
public void stepExecuted(ProcessInstance processInstance, StateElement executedStateElement, ProcessInstance[] partners)
IViewer
stepExecuted
in interface IViewer
processInstance
- The process instance in which a state element was executed.executedStateElement
- The state element that was executed.partners
- All the process instances that cooperated during the execution of the state element.public void updateState(int state)
IViewer
updateState
in interface IViewer
state
- The state that identifies what the debug toolbus is currently doing.IViewerConstants
public void processInstanceStarted(ProcessInstance processInstance)
IViewer
processInstanceStarted
in interface IViewer
processInstance
- The process instance that was started.public void processInstanceTerminated(ProcessInstance processInstance)
IViewer
processInstanceTerminated
in interface IViewer
processInstance
- The process instance that was terminated.public void processBreakPointHit(ProcessInstance processInstance)
IViewer
processBreakPointHit
in interface IViewer
processInstance
- The process instance that matches the breakpoint.public void stateElementBreakPointHit(StateElement stateElement)
IViewer
stateElementBreakPointHit
in interface IViewer
stateElement
- The state element on which the breakpoint was set.public void sourceBreakPointHit(StateElement stateElement)
IViewer
sourceBreakPointHit
in interface IViewer
stateElement
- The executed state element which's position information corresponded to a
breakpoint set on a sourcecode coordinate.private void clearSubscriptionsTable()
private void clearNoteQueueTable()
private void clearStateTable()
private void clearVariablesTable()
private void fillProcessTables(ProcessInstance processInstance)
private void fillVariables(StateElement stateElement)
private void clearProcessTableModifications()
private static aterm.ATerm substituteTerm(aterm.ATerm term, int maxDept)
private static java.lang.String getSubscriptionSignature(aterm.ATerm term)
private static java.lang.String getNoteSignature(aterm.ATerm term)
private static java.lang.String getVariableSignature(aterm.ATerm term)
public static void main(java.lang.String[] args) throws ToolBusException
ToolBusException
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |