Package ptolemy.actor.gui
Class ExecutionAspectPlotterEditorFactory
- java.lang.Object
-
- ptolemy.kernel.util.NamedObj
-
- ptolemy.kernel.util.Attribute
-
- ptolemy.actor.gui.EditorFactory
-
- ptolemy.actor.gui.ExecutionAspectPlotterEditorFactory
-
- All Implemented Interfaces:
java.lang.Cloneable,ExecutionAspectListener,Editable,Changeable,Debuggable,DebugListener,Derivable,ModelErrorHandler,MoMLExportable,Moveable,Nameable
public class ExecutionAspectPlotterEditorFactory extends EditorFactory implements ExecutionAspectListener
Factory that creates the plotter for the schedule of actors on a resource scheduler.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Patricia Derler
- Pt.AcceptedRating:
- Red (derler)
- Pt.ProposedRating:
- Red (derler)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
-
Nested classes/interfaces inherited from interface ptolemy.actor.ExecutionAspectListener
ExecutionAspectListener.ExecutionEventType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<NamedObj>_actorsContains the actors inside a ptides platform (=platforms).PlotplotThe plot displayed by this ScheduleFactory.-
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
-
-
Constructor Summary
Constructors Constructor Description ExecutionAspectPlotterEditorFactory(NamedObj container, java.lang.String name)Constructs a SchedulePlotter$SchedulePlotterEditorFactory object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateEditor(NamedObj object, java.awt.Frame parent)Create an editor for configuring the specified object with the specified parent window.voidevent(NamedObj actor, double physicalTime, ExecutionAspectListener.ExecutionEventType scheduleEvent)Plot a new execution event for an actor (i.e.voidinitialize(java.util.List<NamedObj> actors, ActorExecutionAspect scheduler)Initialize plot.-
Methods inherited from class ptolemy.actor.gui.EditorFactory
createEditor, createEditor
-
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
-
-
-
-
Constructor Detail
-
ExecutionAspectPlotterEditorFactory
public ExecutionAspectPlotterEditorFactory(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
Constructs a SchedulePlotter$SchedulePlotterEditorFactory object.- 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
-
createEditor
public void createEditor(NamedObj object, java.awt.Frame parent)
Create an editor for configuring the specified object with the specified parent window.- Specified by:
createEditorin interfaceEditable- Specified by:
createEditorin classEditorFactory- Parameters:
object- The object to configure.parent- The parent window, or null if there is none.
-
event
public void event(NamedObj actor, double physicalTime, ExecutionAspectListener.ExecutionEventType scheduleEvent)
Plot a new execution event for an actor (i.e. an actor started/finished execution, was preempted or resumed).- Specified by:
eventin interfaceExecutionAspectListener- Parameters:
actor- The actor.physicalTime- The physical time when this scheduling event occurred.scheduleEvent- The scheduling event.
-
initialize
public void initialize(java.util.List<NamedObj> actors, ActorExecutionAspect scheduler)
Initialize plot.- Specified by:
initializein interfaceExecutionAspectListener- Parameters:
actors- Actors scheduled by the resource scheduler associated with this plot.scheduler- Resource Scheduler associated with this plot.
-
-