public class MonitorManager extends SingletonAttribute implements Initializable
An instance of this attribute can be inserted in a workflow to dynamically
associate activity icons to the existing entities (
ComponentEntity
).
Demo workflows are under $KEPLER/workflows/test/monitor/
Note: Configuration is very limited in this preliminary version.
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
addInputPortCounters
Add monitor attributes for input ports?
|
Parameter |
addOutputPortCounters
Add monitor attributes for output ports?
|
StringParameter |
iconType
The icon type for all created monitor attributes
|
StringParameter |
timerDelay
Delay for the timer
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
MonitorManager(NamedObj container,
java.lang.String name)
Creates a monitor manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addInitializable(Initializable initializable)
Does nothing.
|
void |
attributeChanged(Attribute attribute)
Sets the icon type and timer delay according to the changed attribute.
|
void |
initialize()
Creates the MI attributes for the existing component entities in the
container and activates the MI icons.
|
void |
preinitialize()
Does nothing.
|
void |
removeInitializable(Initializable initializable)
Does nothing.
|
void |
setContainer(NamedObj container)
If container is null, it finishes monitoring
|
void |
wrapup()
Finishes the monitors.
|
_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 Parameter addInputPortCounters
public Parameter addOutputPortCounters
public MonitorManager(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
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 wrapup() throws IllegalActionException
wrapup
in interface Initializable
IllegalActionException
- If wrapup is not permitted.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 void initialize() throws IllegalActionException
initialize
in interface Initializable
IllegalActionException
- If execution is not permitted.public void addInitializable(Initializable initializable)
addInitializable
in interface Initializable
initializable
- The object whose methods should be invoked.Initializable.removeInitializable(Initializable)
public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
IllegalActionException
- If initializing is not permitted.public void removeInitializable(Initializable initializable)
removeInitializable
in interface Initializable
initializable
- The object whose methods should no longer be invoked.Initializable.addInitializable(Initializable)