Equals
ptolemy.actor.lib.logic.Equals

A logical equals operator. This operator has one input multiport and one output port that is not a multiport. It will consume at most one token from each input channel, and compare the tokens using the isEqualTo() method of the Token class. If all observed input tokens are equal, then the output will be a true-valued boolean token. If there is not at least one token on the input channels, then no output is produced. The type of the input port is undeclared and will be resolved by the type resolution mechanism. Note that all input channels must resolve to the same type. The type of the output port is boolean.

Author(s): John Li and Edward A. Lee
Version:$Id: Equals.java,v 1.32 2005/10/28 20:16:15 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (johnli)