
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:
- and: The logical and operator.
This is the default function for this actor.
- or: The logical or operator.
- xor: The logical xor operator.
- nand: The logical nand operator.
Equivalent to the negation of and.
- nor: The logical nor operator.
Equivalent to the negation of or.
- xnor: The logical xnor operator.
Equivalent to the negation of xor.
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)