MobileModel
ptolemy.actor.lib.hoc.MobileModel

This is a composite actor with an input port that accepts MoML descriptions of changes that are applied to the contents. Rather than specified before executing, the inside model can be dynamically changed either locally or remotely. Currently, the model that dynamically applied to this actor is specified by a moml string from the <i>modelString</i> input. Currently, it only accepts models with one input and one output, and requires the model name its input port as "input", output port as "output".

Author(s): Yang Zhao
Version:$Id: MobileModel.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 to the inside model.
modelString
The input port for model changing request of the inside model. The type is string.
output
The output port for the result after firing the inside model upon the incoming data. Notice that the type is determined by the type of the <i>defaultValue</i> parameter.


director
The inside Director for executing the inside model.
refresh
This Parameter specifies whether to replace the previous model when there is model changing request or not. The type of thie parameter is boolean. Select this parameter if it does replace.
connectPorts
the Parameter specifies whether to connect the input and output to the inside model. The type of this parameter is boolean.
defaultValue
The default output token when there is no inside model defined. The default value is 0, and the default type is int. Notice that the type of the output port is determined by the type of this parameter.