MobileFunction
ptolemy.actor.lib.hoc.MobileFunction

This actor extends the TypedAtomicActor. It 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. Currently, it only accept functions that has one argument. The return type of the function needs to be less than the output type of this actor.

Author(s): Yang Zhao
Version:$Id: MobileFunction.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Red (eal)
Pt.Accepted Rating:Red (reviewmoderator)


input
The input port for incoming data. The type of this port is undeclared, meaning that it will resolve to any data type.
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.
output
The output port. Note: Due to the same reason above, the type of the output can't be resolved currently. User has to specify the type.