public class SchedulePlotter extends Attribute implements ScheduleListener
Red (johnr) |
Red (eal) |
Modifier and Type | Class and Description |
---|---|
class |
SchedulePlotter.SchedulePlotterEditorFactory
Factory that creates the schedule plotter.
|
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Plot |
plot
The plotter.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
RESET_DISPLAY, TASK_BLOCKED, TASK_RUNNING, TASK_SLEEPING
Constructor and Description |
---|
SchedulePlotter(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name.
|
Modifier and Type | Method and Description |
---|---|
void |
event(java.lang.String actorName,
double time,
int scheduleEvent)
React to the given scheduling event.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_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
public Plot plot
public SchedulePlotter(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the factory.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.public void event(java.lang.String actorName, double time, int scheduleEvent)
ScheduleListener
event
in interface ScheduleListener
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
.