ptolemy.domains.tm.kernel
Class SchedulePlotter
java.lang.Object
ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.domains.tm.kernel.SchedulePlotter
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ScheduleListener, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable
public class SchedulePlotter
- extends Attribute
- implements ScheduleListener
This attribute is a visible attribute that when configured (by double
clicking on it or by invoking Configure in the context menu) it displays
a plot of the schedule while the model is being run.
The SchedulePlotter attribute can be found under more libraries ->
experimental domains -> timed multitasking
- Since:
- Ptolemy II 2.0
- Version:
- $Id: SchedulePlotter.java 47480 2007-12-06 18:25:06Z cxh $
- Author:
- Christopher Hylands, Contributor: Johan Ecker
- See Also:
- Serialized Form
- Accepted Rating:
- Proposed Rating:
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
|
Constructor Summary |
SchedulePlotter(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name. |
|
Method Summary |
void |
event(java.lang.String actorName,
double time,
int scheduleEvent)
React to the given scheduling event. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
| Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _recordDecoratedAttributes, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
plot
public Plot plot
- The plotter.
_taskMap
private java.util.HashMap _taskMap
_taskState
private java.util.ArrayList _taskState
SchedulePlotter
public SchedulePlotter(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
- Construct a factory with the specified container and name.
- Parameters:
container - The container.name - The name of the factory.
- Throws:
IllegalActionException - If the factory is not of an
acceptable attribute for the container.
NameDuplicationException - If the name coincides with
an attribute already in the container.
event
public void event(java.lang.String actorName,
double time,
int scheduleEvent)
- Description copied from interface:
ScheduleListener
- React to the given scheduling event.
- Specified by:
event in interface ScheduleListener
- Parameters:
actorName - The name of the actor involved in the event.time - The time of the event.scheduleEvent - One of ScheduleListener.RESET_DISPLAY,
ScheduleListener.TASK_SLEEPING, ScheduleListener.TASK_BLOCKED or ScheduleListener.TASK_RUNNING.