@Deprecated public final class SDFIOPort extends TypedIOPort
It is not recommended to use this port as a port for composite actors because the presence of the rate parameters will prevent the inner SDF scheduler from propagating it rates to the outside. That is, if the parameters are present, the scheduler does not override them.
TypedIOPort.RunTimeTypeCheckException
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
tokenConsumptionRate
Deprecated.
The number of tokens consumed on this port each firing.
|
Parameter |
tokenInitProduction
Deprecated.
The number of tokens produced on this port during initialization.
|
Parameter |
tokenProductionRate
Deprecated.
The number of tokens produced on this port each firing.
|
_resolvedType, TYPE
_constantLimit, _constantToken, _constantTokensSent, _hasPortEventListeners, _portEventListeners, CONFIGURATION, defaultValue, RECEIVERS, REMOTERECEIVERS
_insideLinks, _relationsList
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
SDFIOPort()
Deprecated.
Construct an SDFIOPort with no container and no name that is
neither an input nor an output.
|
SDFIOPort(ComponentEntity container,
java.lang.String name)
Deprecated.
Construct an SDFIOPort with a containing actor and a name
that is neither an input nor an output.
|
SDFIOPort(ComponentEntity container,
java.lang.String name,
boolean isInput,
boolean isOutput)
Deprecated.
Construct an SDFIOPort with a container and a name that is
either an input, an output, or both, depending on the third
and fourth arguments.
|
SDFIOPort(Workspace workspace)
Deprecated.
Construct a port in the specified workspace with an empty
string as a name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone(Workspace workspace)
Deprecated.
Clone the port into the specified workspace.
|
int |
getTokenConsumptionRate()
Deprecated.
Get the number of tokens that are consumed
on every channel of this port.
|
int |
getTokenInitProduction()
Deprecated.
Get the number of tokens that are produced
on this port during initialization.
|
int |
getTokenProductionRate()
Deprecated.
Get the number of tokens that are produced
on the designated port of this Actor during each firing.
|
void |
setInput(boolean isInput)
Deprecated.
Set whether or not this port is an input.
|
void |
setOutput(boolean isOutput)
Deprecated.
Set whether or not this port is an output.
|
void |
setTokenConsumptionRate(int rate)
Deprecated.
Set the number of tokens that are consumed
on the appropriate port of this Actor during each firing
by setting the value of the tokenConsumptionRate parameter.
|
void |
setTokenInitProduction(int count)
Deprecated.
Set the number of tokens that are produced
on the appropriate port of this Actor during initialize
by setting the value of the tokenInitProduction parameter.
|
void |
setTokenProductionRate(int rate)
Deprecated.
Set the number of tokens that are produced
on the appropriate port of this Actor during each firing
by setting the value of the tokenProductionRate parameter.
|
_checkContainer, _checkLiberalLink, _checkLink, _checkType, _checkTypedIOPortContainer, _description, addTypeListener, attributeChanged, broadcast, broadcast, convert, getAutomaticTypeConversion, getType, getTypeTerm, isTypeAcceptable, removeTypeListener, send, send, sendInside, setAutomaticTypeConversion, setTypeAtLeast, setTypeAtLeast, setTypeAtMost, setTypeEquals, setTypeSameAs, typeConstraintList, typeConstraints
_checkLiberalLink, _exportMoMLContents, _getInsideWidth, _getOutsideWidth, _getReceiversLinkedToGroup, _newInsideReceiver, _newInsideReceiver, _newReceiver, _newReceiver, _notifyPortEventListeners, _removeReceivers, _setConstant, _wrapReceiver, addIOPortEventListener, broadcastClear, checkWidthConstraints, createReceivers, deepConnectedInPortList, deepConnectedInPorts, deepConnectedOutPortList, deepConnectedOutPorts, deepGetReceivers, get, get, getChannelForReceiver, getCommunicationAspects, getCurrentTime, getDefaultWidth, getInside, getInsideReceivers, getIOPortEventListeners, getModelTime, getModelTime, getReceivers, getReceivers, getReceivers, getRelationIndex, getRemoteReceivers, getRemoteReceivers, getWidth, getWidthFromConstraints, getWidthInside, hasNewToken, hasNewTokenInside, hasRoom, hasRoomInside, hasToken, hasToken, hasTokenInside, hasWidthConstraints, insertLink, insideSinkPortList, insideSourcePortList, invalidateCommunicationAspects, isInput, isInsideConnected, isKnown, isKnown, isKnownInside, isMultiport, isOutput, isOutsideConnected, liberalLink, link, numberOfSinks, numberOfSources, removeIOPortEventListener, reset, sendClear, sendClearInside, setContainer, setDefaultWidth, setMultiport, setWidthEquals, setWidthEquals, sinkPortList, sourcePortList, transferInputs, transferOutputs, unlink, unlink, unlinkAll, unlinkAllInside, unlinkInside, unlinkInside
_deepConnectedPortList, _deepConnectedPorts, _deepInsidePortList, _deepInsidePorts, _isInsideLinkable, deepConnectedPortList, deepConnectedPorts, deepInsidePortList, deepInsidePorts, insertInsideLink, insidePortList, insidePorts, insideRelationList, insideRelations, isDeeplyConnected, isInsideGroupLinked, isInsideLinked, isOpaque, numInsideLinks
_getContainedObject, _propagateExistence, connectedPortList, connectedPorts, getContainer, isGroupLinked, isLinked, linkedRelationList, linkedRelations, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, numLinks, setName
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _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 Parameter tokenConsumptionRate
public Parameter tokenInitProduction
public Parameter tokenProductionRate
public SDFIOPort()
public SDFIOPort(Workspace workspace) throws IllegalActionException
workspace
- The workspace that will list the port.IllegalActionException
- If port parameters cannot be initialized.public SDFIOPort(ComponentEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container actor.name
- The name of the port.IllegalActionException
- If the port is not of an acceptable
class for the container, or if the container does not implement the
Actor interface.NameDuplicationException
- If the name coincides with
a port already in the container.public SDFIOPort(ComponentEntity container, java.lang.String name, boolean isInput, boolean isOutput) throws IllegalActionException, NameDuplicationException
container
- The container actor.name
- The name of the port.isInput
- True if this is to be an input port.isOutput
- True if this is to be an output port.IllegalActionException
- If the port is not of an acceptable
class for the container, or if the container does not implement the
Actor interface.NameDuplicationException
- If the name coincides with
a port already in the container.public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class TypedIOPort
workspace
- The workspace for the new object.java.lang.CloneNotSupportedException
- If one of the attributes
cannot be cloned.NamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public int getTokenConsumptionRate() throws IllegalActionException
IllegalActionException
- If calling getToken() throws it.setTokenConsumptionRate(int)
public int getTokenInitProduction() throws IllegalActionException
IllegalActionException
- If calling getToken() throws it.setTokenInitProduction(int)
public int getTokenProductionRate() throws IllegalActionException
IllegalActionException
- If calling getToken() throws it.setTokenProductionRate(int)
public void setInput(boolean isInput) throws IllegalActionException
setInput
in class IOPort
isInput
- True to make the port an input.IllegalActionException
- If changing the port status is
not permitted.public void setOutput(boolean isOutput) throws IllegalActionException
setOutput
in class IOPort
isOutput
- True to make the port an output.IllegalActionException
- If changing the port status is
not permitted.public void setTokenConsumptionRate(int rate) throws IllegalActionException
rate
- The number of tokens that are consumedIllegalActionException
- If the rate is less than zero,
or the port is not an input port.getTokenConsumptionRate()
public void setTokenInitProduction(int count) throws IllegalActionException
count
- The number of tokens that are producedIllegalActionException
- If the count is less than zero,
or the port is not an output port.getTokenInitProduction()
public void setTokenProductionRate(int rate) throws IllegalActionException
rate
- The number of tokens that are produced.IllegalActionException
- If port is not contained
in this actor, the rate is less than zero, or the port is
not an output port.getTokenProductionRate()