[kepler-dev] Help needed on Kepler API

Christopher Brooks cxh at eecs.berkeley.edu
Wed Jan 4 11:05:46 PST 2012


Hi Ravi,

My responses are below.


On 1/4/12 2:12 AM, Ravi Kumar wrote:
>
> Hi All,
>
> We are trying to create and run kepler workflow programmatically, but 
> not able to find out exact API for that.
>
> We have two option,
>
> 1.Create workflow programmatically and run it
>

Kepler uses Ptolemy II as its underlying execution engine.
A Ptolemy II model implemented in Java may be found at
kepler/ptolemy/src/ptolemy/domains/sdf/demo/Butterfly/Butterfly.java

> 2.Create workflow as an xml file and run the workflow programmatically 
> as command line option.
>
See
https://kepler-project.org/developers/reference/executing-kepler-from-the-command-line
>
> As per my understanding, in any case we would need kepler API for 
> following,
>
> 1.Creating workflow programmatically
>
See the Butterfly example above.

See also
https://kepler-project.org/developers/teams/build/documentation/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse

The Kepler Developer FAQ is a good jumping off point, see
https://kepler-project.org/developers/faq#is-there-any-developer

> 2.set parameter to actor/director programmatically
>
If you have a parameter named myParameter, call

      myParameter.setExpression("2.0");

See the hello-world example above for other information.

> 3.Create XML file corresponding to workflow OR Run(fire) workflow 
> programmatically
>
To export a model as xml, if you have a ptolemy.kernel.util.NamedObj 
named myModel that contains your model, call

      System.out.println(myModel.toplevel().exportMoML());
>
> Url for javadoc provided on their site, 
> http://kepler-project.org/dist/nightly/javadoc/  is not working.
>
> Any help as API/documentation/tutorial on this would be really 
> helpful. Please let me know if there is another way to do the same task.
>

I don't manage the kepler-project.org, so I can't address the missing 
javadoc problem.
There is a copy of the javadocs at

http://chess.eecs.berkeley.edu/ptexternal/kepler/javadoc/overview-frame.html

To create a local copy of the javadocs, install Kepler from sources, see
https://kepler-project.org/developers/teams/build/documentation/build-system-instructions

Then run
    cd kepler/build-area
    ant javadoc

The javadocs should appear in kepler/javadoc

_Christopher


> Expecting positive reply.
>
> Regards,
>
> Ravi
>
> DISCLAIMER ========== This e-mail may contain privileged and 
> confidential information which is the property of Persistent Systems 
> Ltd. It is intended only for the use of the individual or entity to 
> which it is addressed. If you are not the intended recipient, you are 
> not authorized to read, retain, copy, print, distribute or use this 
> message. If you have received this communication in error, please 
> notify the sender and delete all copies of this message. Persistent 
> Systems Ltd. does not accept any liability for virus infected mails.
>
>
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841                                (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20120104/5194cc69/attachment-0001.html>


More information about the Kepler-dev mailing list