
ApplyFunction |
ptolemy.actor.lib.hoc.ApplyFunction |
This actor applies a function to its inputs and outputs the
results. But rather than has the function specified statically,
this actor allows dynamic change to the function, which means the
computation of this actor can be changed during executing. Its
second input accept a function token for the new function's
definition. The function token can be given by actors in the local
model or remote actors.
Author(s): Steve Neuendorffer, Yang Zhao
Version:$Id: ApplyFunction.doc.html,v 1.1 2006/02/22 18:40:26 mangal Exp $
Pt.Proposed Rating:Red (eal)
Pt.Accepted Rating:Red (reviewmoderator)
output
The output port.
function
The input port for function definition. The type of this port is
undeclared, but to have this actor work, the designer has to provide
a matched function token for it.
Note: The reason that we don't declare the type for it is because
currently there is not cast supported in the FunctionType class.
we'll fix this later.