ptolemy.domains.wireless.kernel
Class WirelessDirector

java.lang.Object
  extended byptolemy.kernel.util.NamedObj
      extended byptolemy.kernel.util.Attribute
          extended byptolemy.actor.Director
              extended byptolemy.domains.de.kernel.DEDirector
                  extended byptolemy.domains.wireless.kernel.WirelessDirector
All Implemented Interfaces:
ptolemy.kernel.util.Changeable, java.lang.Cloneable, ptolemy.kernel.util.Debuggable, ptolemy.kernel.util.DebugListener, ptolemy.kernel.util.Derivable, ptolemy.actor.Executable, ptolemy.kernel.util.ModelErrorHandler, ptolemy.kernel.util.MoMLExportable, ptolemy.kernel.util.Nameable, java.io.Serializable

public class WirelessDirector
extends DEDirector

Director for the wireless model of computation. This director is nearly identical to the DE director with the only difference being that it creates instances of WirelessReceiver.

Since:
Ptolemy II 4.0
Version:
$Id: WirelessDirector.java,v 1.22 2004/04/13 03:37:39 cxh Exp $
Author:
Sanjeev Kohli, N. Vinay Krishnan, Cheng Tien Ee, and Xiaojun Liu
See Also:
DEDirector, Serialized Form
Accepted Rating:
Yellow (cxh)
Proposed Rating:
Green (cxh)

Nested Class Summary
 
Nested classes inherited from class ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.NamedObj.ContainedObjectsIterator
 
Field Summary
 
Fields inherited from class ptolemy.domains.de.kernel.DEDirector
_actorToDepth, _disabledActors, _eventQueue, _exceedStopTime, _microstep, _noMoreActorsToFire, _realStartTime, _sortValid, _stopWhenQueueIsEmpty, _synchronizeToRealTime, binCountFactor, isCQAdaptive, minBinCount, startTime, stopTime, stopWhenQueueIsEmpty, synchronizeToRealTime, timeResolution
 
Fields inherited from class ptolemy.actor.Director
_currentTime, _stopRequested
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Fields inherited from interface ptolemy.actor.Executable
COMPLETED, NOT_READY, STOP_ITERATING
 
Constructor Summary
WirelessDirector(ptolemy.kernel.CompositeEntity container, java.lang.String name)
          Construct a director in the given container with the given name.
 
Method Summary
 ptolemy.actor.Receiver newReceiver()
          Return a new receiver of a type WirelessReceiver.
 
Methods inherited from class ptolemy.domains.de.kernel.DEDirector
_dequeueEvents, _disableActor, _enqueueEvent, _enqueueEvent, _enqueueEvent, _getDepth, _requestFiring, _writeAccessRequired, addDebugListener, attributeChanged, fire, fireAt, fireAtCurrentTime, fireAtRelativeTime, getEventQueue, getNextIterationTime, getRealStartTimeMillis, getStartTime, getStopTime, initialize, invalidateSchedule, postfire, prefire, preinitialize, removeDebugListener, stop, stopFire, transferOutputs
 
Methods inherited from class ptolemy.actor.Director
_description, _isEmbedded, _isTopLevel, domainPolymorphicTransferInputs, domainPolymorphicTransferOutputs, getCurrentTime, getTimeResolution, initialize, invalidateResolvedTypes, iterate, needWriteAccess, requestInitialization, setContainer, setCurrentTime, setTimeResolution, terminate, transferInputs, wrapup
 
Methods inherited from class ptolemy.kernel.util.Attribute
_getContainedObject, _propagateExistence, clone, getContainer, setName
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WirelessDirector

public WirelessDirector(ptolemy.kernel.CompositeEntity container,
                        java.lang.String name)
                 throws ptolemy.kernel.util.IllegalActionException,
                        ptolemy.kernel.util.NameDuplicationException
Construct a director in the given container with the given name. The container argument must not be null, or a NullPointerException will be thrown. If the name argument is null, then the name is set to the empty string. Increment the version number of the workspace.

Parameters:
container - Container of the director.
name - Name of this director.
Throws:
ptolemy.kernel.util.IllegalActionException - If the director is not compatible with the specified container.
ptolemy.kernel.util.NameDuplicationException - If the container not a CompositeActor and the name collides with an entity in the container.
Method Detail

newReceiver

public ptolemy.actor.Receiver newReceiver()
Return a new receiver of a type WirelessReceiver.

Overrides:
newReceiver in class DEDirector
Returns:
A new WirelessReceiver.