Class ZenoDelay
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Cloneable
,Actor
,Executable
,FiringsRecordable
,Initializable
,TypedActor
,Changeable
,Debuggable
,DebugListener
,Derivable
,Instantiable
,ModelErrorHandler
,MoMLExportable
,Moveable
,Nameable
public class ZenoDelay extends ListenFeedBackDelay
ZenoDelay is an extension of ListenFeedBackDelay with an overridden getDelay() method that approximates a Zeno condition.- Since:
- Ptolemy II 0.3
- Version:
- $Id$
- Author:
- John S. Davis II
- See Also:
NullToken
- Pt.AcceptedRating:
- Red (davisj)
- Pt.ProposedRating:
- Red (davisj)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.kernel.Entity
Entity.ContainedObjectsIterator
-
-
Field Summary
-
Fields inherited from class ptolemy.domains.dde.kernel.FeedBackDelay
delay, input, nullDelay, output, realDelay
-
Fields inherited from class ptolemy.actor.TypedAtomicActor
_typesValid
-
Fields inherited from class ptolemy.actor.AtomicActor
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested
-
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
-
Fields inherited from interface ptolemy.actor.Executable
COMPLETED, NOT_READY, STOP_ITERATING
-
-
Constructor Summary
Constructors Constructor Description ZenoDelay()
Construct a ZenoDelay actor with no container and a name that is an empty string.ZenoDelay(CompositeEntity container, java.lang.String name)
Construct a ZenoDelay actor with the specified container and name.ZenoDelay(Workspace workspace)
Construct a ZenoDelay actor with the specified workspace and no name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDelay()
While the current time is less then 50.0, return the delay value as specified in the super class.-
Methods inherited from class ptolemy.domains.dde.demo.LocalZeno.ListenFeedBackDelay
postfire, prefire, wrapup
-
Methods inherited from class ptolemy.domains.dde.kernel.FeedBackDelay
fire, initialize
-
Methods inherited from class ptolemy.domains.dde.kernel.DDEActor
getNextToken
-
Methods inherited from class ptolemy.actor.TypedAtomicActor
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints
-
Methods inherited from class ptolemy.actor.AtomicActor
_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate
-
Methods inherited from class ptolemy.kernel.ComponentEntity
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName
-
Methods inherited from class ptolemy.kernel.Entity
_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
-
Methods inherited from class ptolemy.kernel.InstantiableNamedObj
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
-
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ptolemy.actor.Actor
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
-
Methods inherited from interface ptolemy.kernel.util.Derivable
getDerivedLevel, getDerivedList, propagateValue
-
Methods inherited from interface ptolemy.actor.Executable
isFireFunctional, isStrict, iterate, stop, stopFire, terminate
-
Methods inherited from interface ptolemy.actor.Initializable
addInitializable, preinitialize, removeInitializable
-
Methods inherited from interface ptolemy.kernel.util.Nameable
description, getContainer, getDisplayName, getFullName, getName, getName, setName
-
-
-
-
Constructor Detail
-
ZenoDelay
public ZenoDelay() throws IllegalActionException, NameDuplicationException
Construct a ZenoDelay actor with no container and a name that is an empty string.
-
ZenoDelay
public ZenoDelay(Workspace workspace) throws IllegalActionException, NameDuplicationException
Construct a ZenoDelay actor with the specified workspace and no name.- Parameters:
workspace
- The workspace for this ZenoDelay actor.- Throws:
IllegalActionException
NameDuplicationException
-
ZenoDelay
public ZenoDelay(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
Construct a ZenoDelay actor with the specified container and name.- Parameters:
container
- The container of this actor.name
- The name of this actor.- Throws:
IllegalActionException
- If the constructor of the superclass throws an IllegalActionException.NameDuplicationException
- If the constructor of the superclass throws a NameDuplicationException .
-
-
Method Detail
-
getDelay
public double getDelay() throws IllegalActionException
While the current time is less then 50.0, return the delay value as specified in the super class. After the current time has exceeded 50, return a delay value of 0.001 for 1000 firings. After the 1000 firings are complete, resume returning the super class delay value.- Overrides:
getDelay
in classFeedBackDelay
- Returns:
- The delay value depending upon whether time has exceeded 50.0.
- Throws:
IllegalActionException
- If there is a problem reading the delay token.
-
-