This actor is a <a href="../../../../../ptolemy/actor/CommunicationAspect.xml">ptolemy.actor.CommunicationAspect</a> that, when its
<a href="../../../../../ptolemy/domains/de/lib/aspect/Bus.html#sendToken">sendToken(Receiver, Receiver, Token)</a> method is called, delays
the delivery of the specified token to the specified receiver
according to a service rule. Specifically, if the actor is
not currently servicing a previous token, then it delivers
the token with a delay given by the <i>serviceTimeMultiplicationFactor</i>
parameter multiplied by the <i>messageLength</i> parameter specified in the port.
If the actor is currently servicing a previous token, then it waits
until it has finished servicing that token (and any other pending
tokens), and then delays for an additional amount given by
<i>serviceTimeMultiplicationFactor</i> * <i>messageLength</i>.
In the default case of the <i>messageLength</i> = 1, the behavior is similar to
the <a href="">Server</a> actor.
Tokens are processed in FIFO order.
<p>
To use this communication aspect, drag an instance of this Bus
into the model, and (optionally)
assign it a name. Then, on any input port whose communication is to be
mediated by this instance of Bus, open the configuration dialogue,
select the tab with the name of the bus in the title and select the
<i>enable</i> attribute. The message length is by default set to 1
but can be configured in this tab.
<p>
Several Bus communication aspects can be used in sequence. The order in which
Tokens are sent through Buses depends on the order in which these are
enabled via the DecoratorAttributes.
<p>
This actor is tested in continuous and DE.
Patricia Derler, Edward A. Lee
$Id: Bus.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 10.0
Yellow (derler)
Red (derler)
The service time for the default messageLength of 1. This is a double with default 0.1.
It is required to be positive.