
LookupTable |
ptolemy.actor.lib.LookupTable |
Output to the output port the value in the array of tokens
specified by the table parameter at the index specified by the
input port. The index must be an integer. If the index is out
of range, no token produced.
LookupTable is different from ArrayElement in that in
ArrayElement, the array is read in as input, and the index is a parameter,
In LookupTable, the array is a parameter, and the index is read
in as an input.
Note that there are three similar actors here
- LookupTable
- array is a parameter, index is a port.
- ArrayElement
- array is a port, index is a parameter
- ArrayXXX (not yet developed)
- array and index are both ports
Author(s): Paul Whitaker, Christopher Hylands
Version:$Id: LookupTable.java,v 1.30 2005/10/28 20:14:50 cxh Exp $
Pt.Proposed Rating:Yellow (cxh)
Pt.Accepted Rating:Yellow (cxh)
table
The table array that we look up elements in. This parameter
is an array with default value {0, 1}.