Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Triquetrum/Xtext"

(Link to the Github issue)
(Added info about description() and MoML.)
Line 1: Line 1:
One idea is to use [[Xtext]] to describe models textually.
+
One idea is to use [[Xtext]] to describe models textually. See [https://github.com/eclipse/triquetrum/issues/190 Triquetrum Command Language] (github issue)
  
[https://www.ntnu.edu/employees/hal Hallvard Traetteberg] visited the Ptolemy group in 2012-2013 and did a first cut of creating Ptolemy II OSGi bundles.  Hallvard also developed some Xtext work, see https://github.com/hallvard/ptolemy.  Hallvard has not been using Ptolemy much recently, but his work is there.
+
Below are various references:
  
Ptcl was a TCL-based language for Ptolemy Classic. The [http://ptolemy.eecs.berkeley.edu/ptolemyclassic/almagest/docs/user/pdf/ptcl.pdf ptcl manual] might be of use to help define soime of the Xtext commands.  For example, both will need to connect ports from an outer composite to an inner composite.
+
* Ptcl was a [https://en.wikipedia.org/wiki/Tcl Tcl]-based language for [http://ptolemy.eecs.berkeley.edu/ptolemyclassic/ Ptolemy Classic]. The [http://ptolemy.eecs.berkeley.edu/ptolemyclassic/almagest/docs/user/pdf/ptcl.pdf ptcl manual] might be of use to help define some of the Xtext commands.  For example, both will need to connect ports from an outer composite to an inner composite.
  
See [https://github.com/eclipse/triquetrum/issues/190 Triquetrum Command Language] (github issue)
+
* The NamedObj class in Ptolemy II has a [http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/codeDoc/ptolemy/kernel/util/NamedObj.html#description-- description()] method that describes a model.  For example [https://repo.eecs.berkeley.edu/svn-anon/projects/eal/ptII/branches/initialization-rework/ptolemy/actor/test/CompositeActor.tcl $PTII/ptolemy/actor/test/CompositeActor.tcl] has a test that invokes description() on a model.  The description() functionality is little used and has been replaced with MoML.
 +
 
 +
* Ptolemy II uses MoML (Modeling Markup Language) to store models on disk. See [https://www2.eecs.berkeley.edu/Pubs/TechRpts/2008/EECS-2008-28.pdf Heterogeneous Concurrent Modeling and Design in Java (Volume 1: Introduction to Ptolemy II), Chapter 7, MoML].  See also [http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIfaq.htm#MoML  5.8 What file format are the models stored in?].  In particular, note that the MoML description is not a complete description because the actors may be defined in Java or MoML and the definitions may be overwritten.
 +
 
 +
* [https://www.ntnu.edu/employees/hal Hallvard Traetteberg] visited the Ptolemy group in 2012-2013 and did a first cut of creating Ptolemy II OSGi bundles.  Hallvard also developed some Xtext work, see https://github.com/hallvard/ptolemy.  Hallvard has not been using Ptolemy much recently, but his work is there.
 +
 
 +
* [http://www.eclipse.org/elk Eclipse Layout Kernel (Elk)] has Issue [https://github.com/eclipse/elk/issues/101 #101 Implemented a textual format for ElkGraph].  Ptolemy II uses an automatic layout mechanism called Kieler, which is related to Elk.

Revision as of 00:15, 30 December 2016

One idea is to use Xtext to describe models textually. See Triquetrum Command Language (github issue)

Below are various references:

  • Ptcl was a Tcl-based language for Ptolemy Classic. The ptcl manual might be of use to help define some of the Xtext commands. For example, both will need to connect ports from an outer composite to an inner composite.

Back to the top