
IntToBits |
ptolemy.domains.sdf.lib.IntToBits |
This actor converts an IntToken into a sequence of Boolean tokens.
The number of Boolean tokens is specified by the numberOfBits
parameter. It should be a positive integer not bigger than 32.
The most significant bit (the sign bit) is the first boolean
token send out. It is "false" if the input integer is non-negative,
otherwise it is "true". The least significant bit is the last boolean
token send out.
Let k denotes the value of the numberOfBits parameter.
An exception is thrown if the input integer is smaller than
-2k or greater 2k - 1.
Author(s): Michael Leung
Version:$Id: IntToBits.java,v 1.39 2006/03/29 00:00:51 cxh Exp $
Pt.Proposed Rating:Yellow (neuendor)
Pt.Accepted Rating:Yellow (neuendor)
numberOfBits
The number of Boolean tokens that the input integer is coverted to.