Produce an output token on each firing with a value that is
equal to a scaled version of the input. The actor is polymorphic
in that it can support any token type that supports multiplication
by the <i>factor</i> parameter. The output
type is constrained to be at least as general as both the input and the
<i>factor</i> parameter.
For data types where multiplication is not commutative (such
as matrices), whether the factor is multiplied on the left is controlled
by the <i>scaleOnLeft</i> parameter. Setting the parameter to true means
that the factor is multiplied on the left, and the input
on the right. Otherwise, the factor is multiplied on the right.
Edward A. Lee, Steve Neuendorffer
$Id: Scale.java 70398 2014-10-22 23:44:32Z cxh $
Ptolemy II 0.3
Yellow (eal)
Yellow (yuhong)
The factor.
This parameter can contain any scalar token that supports
multiplication. The default value of this parameter is the
IntToken 1.
Multiply on the left.
This parameter controls whether the scale factor is multiplied
on the left. The default value is a boolean token of value true.
Setting is to false will multiply the factor on the right.