LogicFunction
ptolemy.actor.lib.logic.LogicFunction

Produce an output token on each firing with a value that is equal to the specified logic operator of the input(s). The functions are:

NOTE: All operators have a single input port, which is a multiport, and a single output port, which is not a multiport. All ports have type boolean.

This actor does not require that each input channel have a token upon firing. As long as one channel contains a token, output will be produced. If no input tokens are available at all, then no output is produced. At most one token is consumed on each input channel.

Author(s): Paul Whitaker
Version:$Id: LogicFunction.java,v 1.36 2006/03/28 23:56:37 cxh Exp $
Pt.Proposed Rating:Green (pwhitake)
Pt.Accepted Rating:Green (pwhitake)