<p>Compare two double-valued inputs, and output the boolean result
of the comparison. The exact comparison performed is given by the
<i>comparison</i> attribute, which can take any of the following
values:
<ul>
<li> <b>></b>: <i>left</i> > <i>right</i></li>
<li> <b>>=</b>: <i>left</i> >= <i>right</i></li>
<li> <b><</b>: <i>left</i> < <i>right</i></li>
<li> <b><=</b>: <i>left</i> <= <i>right</i></li>
<li> <b>==</b>: <i>left</i> == <i>right</i></li>
</ul>
The default is ">".
The input ports are named <i>left</i> and <i>right</i> to indicate
which side of the comparison operator their value appears on.
</p>
<p>
The <i>tolerance</i> parameter, which defaults to zero, defines
an error tolerance. That is, the actor may produce true even if
the specified test is not exactly satisfied, but rather is almost
satisfied, within the specified tolerance.
</p>
<p>
Note that this actor will work with any data type that can be losslessly
converted to doubles, such as integers.
</p>
Edward A. Lee
$Id: Comparator.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 1.0
Green (eal)
Green (neuendor)
The left input port, which has type double.
The right input port, which has type double.
The output port, which has type boolean.
The tolerance for the comparison. This has type double,
and defaults to 0.0.
The comparison operator. This is a string-valued attribute
that defaults to ">".