> >From: [EMAIL PROTECTED] (Marcus Pang) >Subject: higher order functions in Ptolemy II >Date: 26 Jul 2002 14:02:56 -0700 > >I'd like to know if anyone has done any work on higher-order functions >in Ptolemy II. Does anyone know if this is in Berkeley's to-do list? > >Thanks. >Marcus Pang
Marcus: This has been high on my "to do" list for some time, but I haven't found the time myself. Several in the group have talked about work in this direction, but I'm not aware of anything concrete that has happened yet. I would welcome some help with this. We could realize this pretty much exactly as in Ptolemy Classic, but there is one additional feature of Ptolemy II that suggests some richer possibilities. In Ptolemy II, models can be modified during an execution. Thus, one could build more dynamic HOF mechanisms. Our plan (if we ever get the bandwidth) is to implement in a ModelToken, which is a token that carries a model, a createModel() function in the expression language (that takes a filename or URL as an argument). Then, for example, an Apply actor would apply a set of inputs to a specified model. The model could be given by a parameter or input port (using the new PortParameter mechanism). Also, I would like to explore alternative visual representations... E.g., we could modify Look Inside for the Apply actor so that it shows the most recently seen model. Edward ------------ Edward A. Lee, Professor 518 Cory Hall, UC Berkeley, Berkeley, CA 94720 phone: 510-642-0455, fax: 510-642-2739 [EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]