|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.Port
ptolemy.kernel.ComponentPort
ptolemy.actor.IOPort
ptolemy.actor.TypedIOPort
ptolemy.domains.sdf.kernel.SDFIOPort
public final class SDFIOPort
This class extends IOPort with convenience methods for handling the token production and consumption rates. These are merely convenience methods, as the pertinent attributes can be added to any IOPort and the SDF domain will respect them.
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.
Yellow (johnr) |
Yellow (neuendor) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
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. |
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 | |
---|---|
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. |
Method Summary | |
---|---|
private void |
_initialize()
Deprecated. Initialize local data members. |
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. |
Methods inherited from class ptolemy.actor.TypedIOPort |
---|
_checkContainer, _checkLiberalLink, _checkLink, _checkType, _description, addTypeListener, attributeChanged, broadcast, broadcast, convert, getType, getTypeTerm, isTypeAcceptable, removeTypeListener, send, send, sendInside, setTypeAtLeast, setTypeAtLeast, setTypeAtMost, setTypeEquals, setTypeSameAs, typeConstraintList, typeConstraints |
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, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, numLinks, setName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Parameter tokenConsumptionRate
public Parameter tokenInitProduction
public Parameter tokenProductionRate
Constructor Detail |
---|
public SDFIOPort()
public SDFIOPort(Workspace workspace)
workspace
- The workspace that will list the port.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.Method Detail |
---|
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 consumed
IllegalActionException
- 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 produced
IllegalActionException
- 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()
private void _initialize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |