A Wire is a stateful actor in DE. It should have an equal number
of input and output channels. If it receives input on <i>any</i> of
its channels, it will produce the most recent received on each
input channel to the corresponding output channel for <i>all</i>
channels. We can think its behavior similar to a wire in VHDL, where
the value is always the most recently received. If no input has been
received on an input channel, then the corresponding output channel
will get the value given by <i>initialValue</i>, possibly converted
to the type of the output. The type of the output is at least that
of the input and that of <i>initialValue</i>. Hence, for example,
if the input
is a double and <i>initialValue</i> is an int, then the output will
be a double.
Adam Cataldo, Edward A. Lee (contributor)
$Id: Wire.java 70398 2014-10-22 23:44:32Z cxh $
Ptolemy II 5.2
Red (acataldo)
Red (acataldo)
The value that is output when no input has yet been received
on the corresponding channel. The output type at least the type
of this parameter and the type of the input. The default value
is 0 (an int).