ptolemy.domains.tm.kernel
Class SchedulePlotter

java.lang.Object
  extended byptolemy.kernel.util.NamedObj
      extended byptolemy.kernel.util.Attribute
          extended byptolemy.domains.tm.kernel.SchedulePlotter
All Implemented Interfaces:
Changeable, java.lang.Cloneable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Nameable, ScheduleListener, java.io.Serializable

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,v 1.24 2004/04/13 05:12:36 cxh Exp $
Author:
Christopher Hylands, Contributor: Johan Ecker
See Also:
Serialized Form
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
 
Nested classes inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
 
Field Summary
 Plot plot
           
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Fields inherited from interface ptolemy.domains.tm.kernel.ScheduleListener
RESET_DISPLAY, TASK_BLOCKED, TASK_RUNNING, TASK_SLEEPING
 
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
_getContainedObject, _propagateExistence, clone, getContainer, setContainer, setName
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

plot

public Plot plot
Constructor Detail

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.
Method Detail

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