|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.kernel.util.AbstractSettableAttribute
ptolemy.data.expr.Variable
ptolemy.data.expr.Parameter
ptolemy.domains.ptera.lib.TableauParameter
ptolemy.domains.ptera.lib.DebuggerParameter
public class DebuggerParameter
A parameter that represents a debugger for event debugging. It receives
debugging messages from the events at the current level of the model hierarchy,
and also the levels below if the hierarchical
parameter is set to
true.
Red (tfeng) |
Yellow (tfeng) |
Nested Class Summary | |
---|---|
static class |
DebuggerParameter.Mode
The modes. |
Nested classes/interfaces inherited from class ptolemy.data.expr.Variable |
---|
Variable.VariableScope |
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Nested classes/interfaces inherited from interface ptolemy.kernel.util.Settable |
---|
Settable.Visibility |
Field Summary | |
---|---|
private int |
_lineNumber
The current line number in the "check log" mode. |
private java.lang.String[] |
_lines
The lines of the recorded messages in the "check log" mode. |
Parameter |
columnsDisplayed
The horizontal size of the display, in columns. |
Parameter |
hierarchical
Whether debugging messages from lower levels of the model hierarchy should be displayed. |
StringParameter |
log
The recorded messages. |
ChoiceParameter |
mode
The mode of this debugger, which is either "check log", "display", or "record log". |
Parameter |
rowsDisplayed
The vertical size of the display, in rows. |
Fields inherited from class ptolemy.data.expr.Variable |
---|
_currentExpression, _needsEvaluation, _parserScope, _parseTreeValid, _valueListeners |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface ptolemy.kernel.util.Settable |
---|
EXPERT, FULL, NONE, NOT_EDITABLE |
Constructor Summary | |
---|---|
DebuggerParameter(NamedObj container,
java.lang.String name)
Construct a parameter with the given name contained by the specified entity. |
Method Summary | |
---|---|
private Tableau |
_createTableau()
Create a tableau for displaying the debugging messages received from the events. |
private void |
_registerDebugListener(boolean register)
Register or unregister this object as a debug listener for the events. |
void |
event(DebugEvent event)
React to the given event. |
void |
initialize()
Begin execution of the actor. |
void |
wrapup()
This method is invoked exactly once per execution of an application. |
Methods inherited from class ptolemy.domains.ptera.lib.TableauParameter |
---|
addInitializable, clone, getExpression, preinitialize, removeInitializable, setContainer, setExpression |
Methods inherited from class ptolemy.data.expr.Parameter |
---|
addChoice, exportMoML, getChoices, removeAllChoices, removeChoice |
Methods inherited from class ptolemy.kernel.util.AbstractSettableAttribute |
---|
getDefaultExpression |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, updateContent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.kernel.util.DebugListener |
---|
message |
Methods inherited from interface ptolemy.kernel.util.Settable |
---|
getDisplayName |
Methods inherited from interface ptolemy.kernel.util.Nameable |
---|
description, getContainer, getFullName, getName, getName |
Field Detail |
---|
public Parameter columnsDisplayed
public Parameter hierarchical
public StringParameter log
public ChoiceParameter mode
public Parameter rowsDisplayed
private int _lineNumber
private java.lang.String[] _lines
Constructor Detail |
---|
public DebuggerParameter(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the parameter.
IllegalActionException
- If the parameter is not of an
acceptable class for the container.
NameDuplicationException
- If the name coincides with
a parameter already in the container.Method Detail |
---|
public void event(DebugEvent event)
event
in interface DebugListener
event
in class NamedObj
event
- The event.public void initialize() throws IllegalActionException
initialize
in interface Initializable
initialize
in class TableauParameter
IllegalActionException
- If execution is not permitted.public void wrapup() throws IllegalActionException
wrapup
in interface Initializable
wrapup
in class TableauParameter
IllegalActionException
- If wrapup is not permitted.private Tableau _createTableau() throws IllegalActionException
IllegalActionException
- If a text effigy cannot be created.private void _registerDebugListener(boolean register) throws IllegalActionException
register
- Whether the operation is registering.
IllegalActionException
- If the refinements of an event cannot
be obtained.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |