public class MonitorAttribute extends SingletonAttribute
This attribute contains a MonitorIcon.
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
StringParameter |
iconType |
StringParameter |
timerDelay |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
MonitorAttribute(NamedObj container,
java.lang.String name)
Creates a monitor attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
attributeChanged(Attribute attribute)
Do updates according to the changed attribute.
|
FigureUpdater |
getFigureUpdater() |
MonitorIcon |
getIcon() |
IOPort |
getPort() |
void |
setContainer(NamedObj container)
If this component is removed from its container, finish monitoring
|
void |
setFigureUpdater(FigureUpdater updater) |
void |
setMonitoredStatus(MonitoredStatus status) |
void |
setPort(IOPort port) |
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, 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, 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 StringParameter iconType
public StringParameter timerDelay
public MonitorAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public void setMonitoredStatus(MonitoredStatus status)
public void setFigureUpdater(FigureUpdater updater)
updater
- the FigureUpdater to setpublic FigureUpdater getFigureUpdater()
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class NamedObj
attribute
- The attribute that changed.IllegalActionException
- If the change is not acceptable
to this container (not thrown in this base class).public void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
setContainer
in class SingletonAttribute
container
- The container to attach this attribute to.IllegalActionException
- If this attribute is not of the
expected class for the container, or it has no name,
or the attribute and container are not in the same workspace, or
the proposed container would result in recursive containment.NameDuplicationException
- If the container already has
an attribute with the name of this attribute that is of class
SingletonConfigurableAttribute.Attribute.getContainer()
public MonitorIcon getIcon()