NonStrictLogicFunction
ptolemy.domains.sr.lib.NonStrictLogicFunction

On each firing, produce an output token with a value that is equal to the specified logic operator of the input(s) if that output can be determined. The functions are: <ul> <li> <b>and</b>: The logical and operator. This is the default function for this actor. <li> <b>or</b>: The logical or operator. <li> <b>xor</b>: The logical xor operator. <li> <b>nand</b>: The logical nand operator. Equivalent to the negation of <i>and</i>. <li> <b>nor</b>: The logical nor operator. Equivalent to the negation of <i>or</i>. <li> <b>xnor</b>: The logical xnor operator. Equivalent to the negation of <i>xor</i>. </ul> <p> 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. <p> This actor is nonstrict. That is, it does not require that each input channel have a token upon firing. If the output can be determined from the known inputs, the output will be produced. If the output can not be determined in the given firing, no output will be produced. If all of the inputs are known and absent, the output will be made known and absent. At most one token is consumed on each input channel.

Author(s): Paul Whitaker
Version:$Id: NonStrictLogicFunction.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Red (pwhitake)
Pt.Accepted Rating:Red (pwhitake)