[kepler-users] Export Ptolemy actors to Kepler platform.

Dan Higgins higgins at nceas.ucsb.edu
Wed Mar 5 09:39:57 PST 2008


Hi,
    Whether or not you can instantiate the PythonScript actors depends 
on what version of Kepler you are working with. Up until quite recently 
(after the RC1 release), the Ptolemy PythonScript actor code was not 
included in the Kepler code base. It is now in the current head of CVS 
and I assume it will be in the 1.0 release. (I changed the ant build to 
include the PTII python code and am now working on building some python 
actor examples.)

    To include the Python actors in an older version of Kepler, you need 
to compile the PTII python code and add it to the Kepler classpath along 
with the jython.jar needed by the actor. Then you should be able to 
instantiate the actor from the Kepler menu.

Dan Higgins


Chad Berkley wrote:
> It should work.  What actor did you try to instantiate?
>
> chad
>
> Josep Maria Campanera Alsina wrote:
>   
>> Dear Community,
>> I'd like to export some Ptolemy actors to the Kepler platform (for 
>> instance, PythonScript actor). Well, use Ptolemy actors within Kepler.  
>> I found a solution in Ptolemy website (using Tools/Instantiate component 
>> in the Kepler platform, see below) but it doesn't work.
>>
>> Could anyone explain me an alternative way to do that? I guess I could 
>> get the actor jar file from the Ptolemy and then read it with Kepler, 
>> couldn't I? Do I have to install Ptolemy just for that? How can I get 
>> the jar file without installing Ptolemy?
>>
>> Thanks a lot,
>>
>> Josep Maria,
>>
>> -------------------------------------------------------------------------------------------------------------------------------
>> "Concerning using Ptolemy actors within Kepler, Norbert Podhorszki 
>> writes: If you find a Ptolemy actor useful, just remember its class name 
>> (e.g. ptolemy.actor.lib.Ramp). In Kepler, "Tools/Instantiate Component" 
>> menu allows you to type in the class name, which will put an actor 
>> instance on your canvas just as dragging one from the actor tree.
>>
>> The ptolemy jar is stored in the kepler.jar, so you have access to any 
>> Ptolemy actors and directors.
>>
>> If you want to use a director not in Kepler tree, you have to use the 
>> "Tools/Instantiate Attribute" menu. I use it to get a DDF director 
>> frequently (class ptolemy.domains.ddf.kernel.DDFDirector).
>>
>> I suppose, you can create a kar file for any ptolemy actor just as for 
>> kepler actors, if you want to add some of them into the Kepler actor tree."
>> -------------------------------------------------------------------------------------------------------------------------------
>>
>> --------------------------------------------
>> Josep Maria Campanera Alsina
>> Juan de la Cierva Researcher
>> Departament de Fisicoquímica
>> Facultat de Farmàcia
>> Avgda Joan XXIII, s/n
>> 08028 Barcelona · Catalonia · Spain
>> Tel: +34 93 4035988
>> Fax: +34 93 4035987
>> campanera at ub.edu <mailto:campanera at ub.edu>
>> --------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Kepler-users mailing list
>> Kepler-users at ecoinformatics.org
>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>>     
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>   



More information about the Kepler-users mailing list