ptolemy.domains.tdl.kernel
Class TDLRefinementPort

java.lang.Object
  extended by ptolemy.kernel.util.NamedObj
      extended by ptolemy.kernel.Port
          extended by ptolemy.kernel.ComponentPort
              extended by ptolemy.actor.IOPort
                  extended by ptolemy.actor.TypedIOPort
                      extended by ptolemy.domains.fsm.modal.RefinementPort
                          extended by ptolemy.domains.tdl.kernel.TDLRefinementPort
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HasTypeConstraints, Typeable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

public class TDLRefinementPort
extends RefinementPort

The TDL refinement port represents an acutator and has some TDL specific parameters: - frequceny: update frequency - initialValue: at time 0, this initial value is used - fast: if the actuator is connected to a fast task, this parameter is true - slots: string that supports TDL slot selection.

Since:
Ptolemy II 8.0
Version:
$Id: TDLRefinementPort.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Patricia Derler
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
 
Field Summary
 Parameter fast
          Describes a fast actuator.
 Parameter frequency
          frequency for the port update.
 Parameter initialValue
          Initial value of the port.
 Parameter slots
          Slot selection string.
 
Fields inherited from class ptolemy.domains.fsm.modal.RefinementPort
_automaticallyInput, _mirrorDisable
 
Fields inherited from class ptolemy.actor.TypedIOPort
TYPE
 
Fields inherited from class ptolemy.actor.IOPort
_hasPortEventListeners, _portEventListeners, CONFIGURATION, RECEIVERS, REMOTERECEIVERS
 
Fields inherited from class ptolemy.kernel.Port
_insideLinks, _relationsList
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Constructor Summary
TDLRefinementPort(ComponentEntity container, java.lang.String name)
          Construct a port with a containing actor and a name that is neither an input nor an output.
TDLRefinementPort(Workspace workspace)
          Construct a port in the given workspace.
 
Method Summary
private  void _init()
          Initialize the parameters of the port.
 void setInput(boolean isInput)
          Make port to an input port, for TDL this means that it is a sensor.
 void setOutput(boolean isOutput)
          Make port to an output port, for TDL this means that it is an actuator.
 
Methods inherited from class ptolemy.domains.fsm.modal.RefinementPort
isTypeAcceptable, link, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setMirrorDisable, setMultiport, setName
 
Methods inherited from class ptolemy.actor.TypedIOPort
_checkContainer, _checkLiberalLink, _checkLink, _checkType, _description, addTypeListener, attributeChanged, broadcast, broadcast, clone, convert, getType, getTypeTerm, removeTypeListener, send, send, sendInside, setTypeAtLeast, setTypeAtLeast, setTypeAtMost, setTypeEquals, setTypeSameAs, typeConstraintList, typeConstraints
 
Methods inherited from class ptolemy.actor.IOPort
_checkLiberalLink, _exportMoMLContents, _getInsideWidth, _getOutsideWidth, _getReceiversLinkedToGroup, _newInsideReceiver, _newReceiver, _notifyPortEventListeners, _removeReceivers, addIOPortEventListener, broadcastClear, checkWidthConstraints, createReceivers, deepConnectedInPortList, deepConnectedInPorts, deepConnectedOutPortList, deepConnectedOutPorts, deepGetReceivers, get, get, getChannelForReceiver, getCurrentTime, getDefaultWidth, getInside, getInsideReceivers, getModelTime, getReceivers, getReceivers, getReceivers, getRelationIndex, getRemoteReceivers, getRemoteReceivers, getWidth, getWidthFromConstraints, getWidthInside, hasRoom, hasRoomInside, hasToken, hasToken, hasTokenInside, hasWidthConstraints, insertLink, insideSinkPortList, insideSourcePortList, isInput, isInsideConnected, isKnown, isKnown, isKnownInside, isMultiport, isOutput, isOutsideConnected, liberalLink, numberOfSinks, numberOfSources, removeIOPortEventListener, sendClear, sendClearInside, setDefaultWidth, setWidthEquals, setWidthEquals, sinkPortList, sourcePortList, transferInputs, transferOutputs, unlink, unlink, unlinkAll, unlinkAllInside, unlinkInside, unlinkInside
 
Methods inherited from class ptolemy.kernel.ComponentPort
_deepConnectedPortList, _deepConnectedPorts, _deepInsidePortList, _deepInsidePorts, _isInsideLinkable, deepConnectedPortList, deepConnectedPorts, deepInsidePortList, deepInsidePorts, insertInsideLink, insidePortList, insidePorts, insideRelationList, insideRelations, isDeeplyConnected, isInsideGroupLinked, isInsideLinked, isOpaque, numInsideLinks
 
Methods inherited from class ptolemy.kernel.Port
_getContainedObject, _propagateExistence, connectedPortList, connectedPorts, getContainer, isGroupLinked, isLinked, linkedRelationList, linkedRelations, numLinks
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _recordDecoratedAttributes, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, 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, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

frequency

public Parameter frequency
frequency for the port update.


initialValue

public Parameter initialValue
Initial value of the port.


fast

public Parameter fast
Describes a fast actuator.


slots

public Parameter slots
Slot selection string.

Constructor Detail

TDLRefinementPort

public TDLRefinementPort(Workspace workspace)
                  throws IllegalActionException,
                         NameDuplicationException
Construct a port in the given workspace.

Parameters:
workspace - The workspace.
Throws:
IllegalActionException - If the port is not of an acceptable class for the container, or if the container does not implement the TypedActor interface.
NameDuplicationException

TDLRefinementPort

public TDLRefinementPort(ComponentEntity container,
                         java.lang.String name)
                  throws IllegalActionException,
                         NameDuplicationException
Construct a port with a containing actor and a name that is neither an input nor an output. The specified container must implement the TypedActor interface, or an exception will be thrown.

Parameters:
container - The container actor.
name - The name of the port.
Throws:
IllegalActionException - If the port is not of an acceptable class for the container, or if the container does not implement the TypedActor interface.
NameDuplicationException - If the name coincides with a port already in the container.
Method Detail

setOutput

public void setOutput(boolean isOutput)
               throws IllegalActionException
Make port to an output port, for TDL this means that it is an actuator.

Overrides:
setOutput in class RefinementPort
Parameters:
isOutput - True if port is an output port.
Throws:
IllegalActionException - Thrown by parent class.

setInput

public void setInput(boolean isInput)
              throws IllegalActionException
Make port to an input port, for TDL this means that it is a sensor.

Overrides:
setInput in class RefinementPort
Parameters:
isInput - True if port is an input port.
Throws:
IllegalActionException - Thrown by parent class.

_init

private void _init()
            throws IllegalActionException,
                   NameDuplicationException
Initialize the parameters of the port.

Throws:
IllegalActionException - Thrown if parameters cannot be set.
NameDuplicationException - Thrown if parameters cannot be set.