A <a href="../../../../../ptolemy/domains/de/lib/aspect/BasicSwitch.xml">ptolemy.domains.de.lib.aspect.BasicSwitch</a> actor that, when its
<a href="../../../../../ptolemy/domains/de/lib/aspect/BasicSwitch.html#sendToken">sendToken(Receiver, Receiver, Token)</a> method is called, delays
the delivery of the specified token to the specified receiver
according to the delays and contention on input buffers, output buffers,
and switch fabric delays.
<p>This communication aspect implements a simple switch which has a parametrizable
number of ports. Note that these ports are not visually represented
as Ptolemy actor ports. The first token received by this actor is delayed for
<i>inputBufferDelay</i> + <i>switchFabricDelay</i> + <i>outputBufferDelay</i>
time units. Tokens received on the same switch input are buffered in a FIFO queue.
Similarly, tokens for the same output are buffered in FIFO queues. The switch
fabric in this switch acts as a FIFO queue as well. Tokens on different input
and output ports are processed in parallel, tokens in the switch fabric are
processed one after the other.</p>
<p>To use this actor, drag it into a model. Input ports get decorated with
<a href="../../../../../ptolemy/domains/de/lib/aspect/BasicSwitch/BasicSwitchAttributes.xml">ptolemy.domains.de.lib.aspect.BasicSwitch.BasicSwitchAttributes</a> which describe the path a token takes through
the switch: the switch input port number and the switch output port
number.</p>
Patricia Derler
$Id: BasicSwitch.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 10.0
Yellow (derler)
Red (derler)
Number of ports on the switch. This parameter must contain an
IntToken. The value defaults to 4.
Time it takes for a token to be put into the input queue.
This parameter must contain a DoubleToken. The value defaults
to 0.1.
Time it takes for a token to be put into the output queue.
This parameter must contain a DoubleToken. The value defaults
to 0.1.
Time it takes for a token to be processed by the switch fabric.
This parameter must contain a DoubleToken. The value defaults
to 0.1.