Class Wire

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, SequenceActor, TimedActor, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    @Deprecated
    public class Wire
    extends DETransformer
    Deprecated.
    Use Sampler instead.
    A Wire is a stateful actor in DE. It should have an equal number of input and output channels. If it receives input on any of its channels, it will produce the most recent received on each input channel to the corresponding output channel for all 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 initialValue, possibly converted to the type of the output. The type of the output is at least that of the input and that of initialValue. Hence, for example, if the input is a double and initialValue is an int, then the output will be a double.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Adam Cataldo, Edward A. Lee (contributor)
    See Also:
    MostRecent
    Pt.AcceptedRating:
    Red (acataldo)
    Pt.ProposedRating:
    Red (acataldo)