Package 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.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$
- Author:
- Christopher Hylands, Contributor: Johan Ecker
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SchedulePlotter.SchedulePlotterEditorFactory
Factory that creates the schedule plotter.-
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
-
-
Field Summary
Fields Modifier and Type Field Description Plot
plot
The plotter.-
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _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
Constructors Constructor Description SchedulePlotter(NamedObj container, java.lang.String name)
Construct a factory with the specified container and name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, 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, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
-
-
-
-
Field Detail
-
plot
public Plot plot
The plotter.
-
-
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 interfaceScheduleListener
- Parameters:
actorName
- The name of the actor involved in the event.time
- The time of the event.scheduleEvent
- One ofScheduleListener.RESET_DISPLAY
,ScheduleListener.TASK_SLEEPING
,ScheduleListener.TASK_BLOCKED
orScheduleListener.TASK_RUNNING
.
-
-