Package ptolemy.domains.ptides.kernel
Class ThrottleAttributes
- java.lang.Object
-
- ptolemy.kernel.util.NamedObj
-
- ptolemy.kernel.util.Attribute
-
- ptolemy.kernel.util.DecoratorAttributes
-
- ptolemy.domains.ptides.kernel.ThrottleAttributes
-
- All Implemented Interfaces:
java.lang.Cloneable
,Changeable
,Debuggable
,DebugListener
,Derivable
,ModelErrorHandler
,MoMLExportable
,Moveable
,Nameable
public class ThrottleAttributes extends DecoratorAttributes
Container for decorator attributes that are provided to local sources and other actors that schedule their own firings by aPtidesDirector
. Local sources in Ptides can produce an infinite number of future events. Whether this can happen depends on the execution strategy implemented in the Ptides director. Note that in a DE composite, all events are produced in time-stamp order. In Ptides we do not have this restriction; events can be produced out of timestamp order as long as the event is safe to process. Local sources are triggered by pure events produced during a firing of a local source. Such a pure event is always safe to process. The attributes provided by this decorator are used to throttle the production of events by local sources in Ptides.- The parameter maximumLookaheadTime makes sure that actors are not fired at logical times bigger than the current platform time plus the parameter value.
- The parameter maximumFutureEvents specifies that the decorated actor can only create and put onto the event queue a certain number of events. These events have to be consumed by downstream actors in order to allow the actor to create more events.
- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Patricia Derler
- Pt.AcceptedRating:
- Red (eal)
- Pt.ProposedRating:
- Yellow (eal)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
-
-
Field Summary
Fields Modifier and Type Field Description Parameter
maximumFutureEvents
The maximumFutureEvents parameter specifies the maximum number of events produced by the decorated actor that can be present in the event queue at a time.Parameter
maximumLookaheadTime
The maximumLookaheadTime parameter is the time added to the current platform time during which the decorated actor can safely be fired.Parameter
useMaximumFutureEvents
This parameter specifies that the parameter maximumFutureEvents should be used to throttle the decorated actor.Parameter
useMaximumLookaheadTime
This parameter specifies that the parameter maximumFutureFiringTime should be used to throttle the decorated actor.-
Fields inherited from class ptolemy.kernel.util.DecoratorAttributes
_decorator, decoratorName
-
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 ThrottleAttributes(java.lang.Object target, java.lang.String name)
Constructor to use when parsing a MoML file.ThrottleAttributes(NamedObj target, PtidesDirector decorator)
Constructor to use when editing a model.
-
Method Summary
-
Methods inherited from class ptolemy.kernel.util.DecoratorAttributes
attributeChanged, clone, exportMoML, getDecorator
-
Methods inherited from class ptolemy.kernel.util.Attribute
_checkContainer, _getContainedObject, _propagateExistence, 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, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, 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
-
useMaximumLookaheadTime
public Parameter useMaximumLookaheadTime
This parameter specifies that the parameter maximumFutureFiringTime should be used to throttle the decorated actor. This parameter contains a boolean value that defaults to false.
-
maximumLookaheadTime
public Parameter maximumLookaheadTime
The maximumLookaheadTime parameter is the time added to the current platform time during which the decorated actor can safely be fired. This parameter contains a double value that defaults to 0.0.
-
useMaximumFutureEvents
public Parameter useMaximumFutureEvents
This parameter specifies that the parameter maximumFutureEvents should be used to throttle the decorated actor. This parameter contains a boolean value that defaults to true.
-
maximumFutureEvents
public Parameter maximumFutureEvents
The maximumFutureEvents parameter specifies the maximum number of events produced by the decorated actor that can be present in the event queue at a time. This parameter contains an int value that defaults to 0.
-
-
Constructor Detail
-
ThrottleAttributes
public ThrottleAttributes(NamedObj target, PtidesDirector decorator) throws IllegalActionException, NameDuplicationException
Constructor to use when editing a model.- Parameters:
target
- The object being decorated.decorator
- The decorator.- Throws:
IllegalActionException
- If the superclass throws it.NameDuplicationException
- If the superclass throws it.
-
ThrottleAttributes
public ThrottleAttributes(java.lang.Object target, java.lang.String name) throws IllegalActionException, NameDuplicationException
Constructor to use when parsing a MoML file.- Parameters:
target
- The object being decorated.name
- The name of this attribute.- Throws:
IllegalActionException
- If the superclass throws it.NameDuplicationException
- If the superclass throws it.
-
-