<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Metalevel &#187; Essential</title>
	<atom:link href="http://pjmolina.com/metalevel/tag/essential/feed/" rel="self" type="application/rss+xml" />
	<link>http://pjmolina.com/metalevel</link>
	<description>Abstraction based levitation</description>
	<lastBuildDate>Mon, 26 Jul 2010 18:00:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Hello World with Essential, the video</title>
		<link>http://pjmolina.com/metalevel/2010/07/hello-world-with-essential/</link>
		<comments>http://pjmolina.com/metalevel/2010/07/hello-world-with-essential/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 15:19:47 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Code Generation]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>
		<category><![CDATA[mde]]></category>
		<category><![CDATA[mdsd]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=612</guid>
		<description><![CDATA[The Hello World sample is a nice starting point to show the syntax and capabilities of every new language. This test is also useful for code generators and Domain Specific Languages (DSLs) also as a proof of concept. Following this honorable tradition, I have created a video showing the capabilities of Essential: the tool I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="margin-left: 10px;" title="Essential Logo" src="/img/LogoEssential300px.png" alt="Essential Logo" width="180" height="99" /></p>
<p>The <a title="Hello World" href="http://en.wikipedia.org/wiki/Hello_world_program" target="_blank">Hello World sample</a> is a nice starting point to show the syntax and capabilities of every new language. This test is also useful for code generators and Domain Specific Languages (DSLs) also as a proof of concept.</p>
<p>Following this honorable tradition, I have created a video showing the capabilities of <strong><a title="Essential" href="http://pjmolina.com/metalevel/essential/">Essential</a></strong>: the tool I am working on for doing agile Model Driven Development.</p>
<p>In this 10 minutes video you will get a general idea of the DSL the language provides to create:</p>
<ul>
<li>metamodels</li>
<li>models</li>
<li>templates</li>
<li>and control transformations</li>
</ul>
<p>In order to see the details, jump to Vimeo, activate the High Definition mode (HD) and set full screen (sorry embebed version is not good enough).</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="281" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13587681&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="500" height="281" src="http://vimeo.com/moogaloop.swf?clip_id=13587681&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/13587681">Essential IDE &#8211; Hello World sample</a> from <a href="http://vimeo.com/user3817869">Pedro J. Molina</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>More info about it and 12 usage scenarios in the last Code Generation 2010 presentation about <a title="Tailored Code Generators" href="http://pjmolina.com/metalevel/2010/06/tailored-code-generators-at-cg2010/">Tailored Code Generators</a>.</p>
<p>Share your impressions!</p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/07/hello-world-with-essential/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tailored Code Generators at CG2010</title>
		<link>http://pjmolina.com/metalevel/2010/06/tailored-code-generators-at-cg2010/</link>
		<comments>http://pjmolina.com/metalevel/2010/06/tailored-code-generators-at-cg2010/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 22:52:15 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[DSL]]></category>
		<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>
		<category><![CDATA[cg2010]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=603</guid>
		<description><![CDATA[I presented the following talk: DSL and tool support for Tailored Code Generators at Code Generation 2010, at Cambridge, UK on June 18th. CG2010 Tailored Code Generators View more presentations from Pedro J. Molina. It also was the public presentation of Essential: the tooling supporting my approach for applying MDD. I got a very good [...]]]></description>
			<content:encoded><![CDATA[<p>I presented the following talk: <strong><a title="DSL and tool support for Tailored Code Generators" href="http://www.codegeneration.net/cg2010/sessioninfo.php?session=15" target="_blank">DSL and tool support for Tailored Code Generators</a></strong><strong> </strong> at <strong><a title="Code Generation 2010" href="http://www.codegeneration.net/cg2010/index.php" target="_blank">Code Generation 2010</a></strong>, at Cambridge, UK on June 18th.</p>
<div id="__ss_4579382" style="width: 425px;"><strong><a title="CG2010 Tailored Code Generators" href="http://www.slideshare.net/pjmolina/cg2010-tailored-code-generators-4579382">CG2010 Tailored Code Generators</a></strong><object id="__sse4579382" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cg2010tailoredcodegenerators-100622173311-phpapp02&amp;stripped_title=cg2010-tailored-code-generators-4579382" /><param name="name" value="__sse4579382" /><param name="allowfullscreen" value="true" /><embed id="__sse4579382" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cg2010tailoredcodegenerators-100622173311-phpapp02&amp;stripped_title=cg2010-tailored-code-generators-4579382" name="__sse4579382" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/pjmolina">Pedro J. Molina</a>.</div>
</div>
<p>It also was the public presentation of <strong><a title="Essential" href="http://pjmolina.com/metalevel/essential/" target="_self">Essential</a></strong><strong>:</strong> the tooling supporting my approach for applying MDD. I got a very good feedback from the audience and receive many request to test the tool.</p>
<p>People interested in beta testing it can still enroll <a title="Request Essential Evaluation" href="http://bit.ly/9SbgvP" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/06/tailored-code-generators-at-cg2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Essential drop</title>
		<link>http://pjmolina.com/metalevel/2010/06/essential-drop/</link>
		<comments>http://pjmolina.com/metalevel/2010/06/essential-drop/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 12:27:38 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[DSL]]></category>
		<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>
		<category><![CDATA[cg2010]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=587</guid>
		<description><![CDATA[Essential is going to be presented this week in Code Generation 2010 during the session DSL and tool support for building tailored code generators. To celebrate this milestone and give the chance to have more people trying it, an early version is going to be released for the people interested in. If this is your case, [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://pjmolina.com/metalevel/essential"><img class="alignright" title="Essential" src="http://pjmolina.com/img/LogoEssential300px.png" alt="" width="180" height="99" /></a><a title="Essential" href="http://pjmolina.com/metalevel/essential/">Essential</a></strong> is going to be presented this week in <a title="Code Generation 2010" href="http://www.codegeneration.net/cg2010/index.php" target="_blank">Code Generation 2010</a> during the session <a title="DSL and tool support for building tailored code generators." href="http://www.codegeneration.net/cg2010/sessioninfo.php?session=15" target="_blank">DSL and tool support for building tailored code generators</a>.</p>
<p>To celebrate this milestone and give the chance to have more people trying it, an early version is going to be released for the people interested in.</p>
<p>If this is your case, please enroll yourself using the <a title="Essential evaluation form" href="http://spreadsheets0.google.com/embeddedform?formkey=dDZxQXVyM2NJTk1BcVRRZmJqUDRaREE6MQ" target="_blank">evaluation request form</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/06/essential-drop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Modelling with Essential</title>
		<link>http://pjmolina.com/metalevel/2010/02/modelling-with-essential/</link>
		<comments>http://pjmolina.com/metalevel/2010/02/modelling-with-essential/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 21:06:47 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[DSL]]></category>
		<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=466</guid>
		<description><![CDATA[After presenting the metamodel DSL, today is the turn for the modelling DSL. As commented previously, Martin Thiede has a nice prototype called Concrete of a Web editor for model and metamodels. Such work and video also helps to understand the modelling and metamodelling duality. Coming back to Essential, our tool is also providing a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" title="Benzene chemical model. CC-NA via Wikipedia" src="http://upload.wikimedia.org/wikipedia/commons/6/67/Benzene_structure.png" alt="" width="357" height="117" /></p>
<p>After presenting the <a title="Essential.Meta DSL" href="http://pjmolina.com/metalevel/2010/02/essential-meta-a-concise-dsl-for-metamodeling/">metamodel DSL</a>, today is the turn for the modelling DSL.</p>
<p>As commented previously, Martin Thiede has a nice prototype called <a title="Concrete" href="http://modeldrivensoftware.net/profiles/blogs/concrete-a-lightweight?xg_source=activity" target="_blank">Concrete</a> of a Web editor for model and metamodels. Such work and video also helps to understand the modelling and metamodelling duality.</p>
<p>Coming back to Essential, our tool is also providing a DSL to instantiate a metamodel. But a sample will probably be more illustrative:</p>
<p>Suppose the following simple metamodel:</p>
<pre class="brush:c-sharp;">namespace Core.Class
{
    class ClassModel
    {
        composition List&lt;Class&gt; Classes opposite Model;
    }
    class  Class
    {
        string Name;
        composition List&lt;Attribute&gt; Attributes;
    }
    class Attribute
    {
         string name;
         string Type;
    }
}</pre>
<p><img src="http://yuml.me/diagram/scale:90/class/[ClassModel]++1-Classes&gt;*[Class],%20[Class]++1-Attributes&gt;*[Attribute]" alt="" /></p>
<p>You could consider it as a very basic OO model. Intentionally I haven’t added too many details to keep it simple.</p>
<p>If you continue building it; adding operations, arguments, association support and more&#8230; at the end, you can have a metamodel comprising a full class diagram of UML, for example. The complexity of the metamodel you want to use is up to you. Having the control of the concepts inside the metamodel you can always add or remove features.</p>
<p>Modelling tools focused in UML, for example, provides this metamodel closed. You can’t change it, it’s a hard-wired standard and you are not allowed to change the core directly (only by extensions points like stereotypes and profiles).</p>
<h2>Modelling Language</h2>
<p>Now, let’s see how we can create <strong>a model</strong> using the previous metamodel:</p>
<pre class="brush:c-sharp;">using Core.Class;
namespace MyModel
{
    ClassModel  myClassModel
    {
        Classes = [Customer, Invoice];
    }
    Class Customer
    {
        Name = "Customer";
        Attributes = [Name, Surname];
    }
    Attribute Name
    {
        Name= "Name";
        Type= "string";
    }
    Attribute Surname
    {
        Name= "Name";
        Type= "string";
    }
    Class Invoice
    {
        Name = "Invoice";
        Attributes = [
            Attribute Amount
            {
                Name= "Amount";
                Type= "decimal";
            },
            Attribute InvoiceDate
            {
                Name= "InvoiceDate";
                Type= "date";
            }
        ];
     }
}</pre>
<p>In the sample, a basic declaration of two classes (Customer and Invoice) has been instantiated using the concept <strong>Class</strong> defined in the metamodel. Each metamodel concept is instantiated using it as you would be using a class in Java, C# or C++. Properties are assigned in the natural way one would expect in such languages.</p>
<p>As expected, the <strong>using</strong> operator imports the metamodel to be employed.</p>
<p>In the lines 26-37 you can see how properties can be also defined inline for list contexts.</p>
<p>Under the curtains, the tool is providing code completion, syntax colorization, error management and real-time parsing as you could expect from a modern IDE.</p>
<p>Essential uses DSL text for serialization but also XML can be derived. This XML document is conformant with an XSD derived from the corresponding metamodel.</p>
<h2>Intended usage</h2>
<p>Consider now, a basic DB metamodel:</p>
<pre class="brush:c-sharp;">namespace Meta.Database
{
    class Schema
    {
		string Name;
		composition List&lt;Table&gt; Tables;
    }
    class Table
    {
		string Name;
		composition List&lt;Column&gt; Columns;
    }
    class Column
    {
		string Name;
		string SqlType;
    }
}</pre>
<p><img src="http://yuml.me/diagram/scale:90/class/[Schema]+1-Tables&gt;*[Table], [Table]++1-Columns&gt;*[Column]." alt="" /></p>
<p>With this base in mind, you can define a business model containing (Customers, Invoices, etc.) based on a class metamodel and then, look for ways to transform your class model in, for example, a DB model representation. This is called, a M2M transformation (<em>Model to Model</em>). Essential will provide specialized languages to do that.</p>
<p>After that, your derived DB model can again be generated to final code, for example SQL DDL scripts in a given certain dialect. This is generally called a M2T transformation (<em>Model to Text</em>) and again Essential provides tools to describe the transformations.</p>
<p>Basically, to complete all this stuff, we need to introduce two more specialized languages: one for applying transformations, and another one for templates to be converted to final text.</p>
<p>I will focus on templates side on the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/02/modelling-with-essential/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Essential namespace collision</title>
		<link>http://pjmolina.com/metalevel/2010/02/essential-namespace-collision/</link>
		<comments>http://pjmolina.com/metalevel/2010/02/essential-namespace-collision/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 23:47:09 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=450</guid>
		<description><![CDATA[Surfing the Web, I just found this Essential Project. At the same time, I&#8217;m working in an MDD tool called Essential. The first one is related to Enterprise Architecture. The second one is a tool for applying MDD. Both projects are not related in any way. But it&#8217;s curious how we collide choosing the same name. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/popilop/331357312/sizes/m/"><img class="alignright" style="margin-left: 15px;" title="Do not duplicate. By Sam UL via flickr.com" src="http://farm1.static.flickr.com/128/331357312_893ef9e791_m.jpg" alt="" width="240" height="180" /></a>Surfing the Web, I just found this<a title="Essential Project (EA)" href="http://www.enterprise-architecture.org/about" target="_blank"> Essential Project</a>. At the same time, I&#8217;m working in an MDD tool called <a title="Essential MDD" href="http://pjmolina.com/metalevel/essential/">Essential</a>.</p>
<p>The first one is related to Enterprise Architecture. The second one is a tool for applying MDD. Both projects are not related in any way. But it&#8217;s curious how we collide choosing the same name.</p>
<p>I don&#8217;t want to confuse people and fortunately the name is not the key part of our work. So, probably, a rename for our side (as the newcomers) would be gentle an a good choice. I&#8217;m open to suggestions for a new name. <img src='http://pjmolina.com/metalevel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/02/essential-namespace-collision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential.Meta: A concise DSL for metamodeling</title>
		<link>http://pjmolina.com/metalevel/2010/02/essential-meta-a-concise-dsl-for-metamodeling/</link>
		<comments>http://pjmolina.com/metalevel/2010/02/essential-meta-a-concise-dsl-for-metamodeling/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 22:05:07 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[DSL]]></category>
		<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>
		<category><![CDATA[metamodeling]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=432</guid>
		<description><![CDATA[In my previous post, I introduced Essential, a custom-developed tool for doing Model Driven Development. As promised, in this post I will describe the primitives of the first language of the tool: Essential.Meta. This meta-language is helpful to describe the structural aspects of a metamodel. The input requirements for the language are: Usable for meta-structure [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/ifovea/222773226/sizes/l/in/set-72157594257593068/"><img class="aligncenter" title="L'umbracle, Valencia. Photo by iFovea under CC license." src="http://farm1.static.flickr.com/61/222773226_668c065d2b.jpg" alt="L'umbracle, Valencia, from the Collection: Life on Mars? By iFovea via flickr.com" width="500" height="333" /></a></p>
<p>In my <a title="Searching for the essential building bricks of MDD" href="http://pjmolina.com/metalevel/2010/01/searching-for-the-essential-building-bricks-of-mdd/">previous post</a>, I introduced <a title="Essential" href="http://pjmolina.com/metalevel/essential/">Essential</a>, a custom-developed tool for doing Model Driven Development.</p>
<p>As promised, in this post I will describe the primitives of the first language of the tool: <strong>Essential.Meta</strong>. This meta-language is helpful to describe the structural aspects of a metamodel.</p>
<p>The input requirements for the language are:</p>
<ol>
<li>Usable for meta-structure description</li>
<li>Human readable/maintainable</li>
<li>Concise as possible</li>
<li>Easy to understand</li>
<li>Object oriented</li>
<li>Technology agnostic</li>
<li>Textual</li>
<li>Extensible</li>
<li>Scalable</li>
<li>Reusable definitions</li>
</ol>
<p>Ok, that was the initial wish list. Now, let’s review how we can cope with it and show a short example of how it looks like:</p>
<pre class="brush:c-sharp;">namespace Meta.TownModel
{
    enum Sex  {  Male, Female }

    class Town
    {
        string Name;
        List&lt;Person&gt; Habitants;
        composition List&lt;House&gt; Houses;
    }

    class Person
    {
        string Name;
        string? MiddleName;
        string Surname;
        Sex Sex;
        int? Age;
        List&lt;Person&gt; Children;
        House Home;
    }

    class House
    {
        string Address;
        composition List&lt;Room&gt;0..* Rooms opposite 1..1 House;
    }

    class Room
    {
        string Name;
        decimal? Dimensions;   //In square meters
    }
}</pre>
<p>The sample describes a meta-model for describing a town, with its buildings (houses) and inhabitants (persons). Nothing complex, nothing weird if assuming I am using a C/C++/Java/C# syntax and this doesn’t suppose a problem for you. I selected a C-like syntax instead a Pascal or VB flavour due to its less verbosity and a probably biased to what we used get to.</p>
<p>The namespace defines a scope for naming. All of our definitions are enclosed in a namespace. Therefore names of concepts should not collide inside a namespace. Same names are allowed in different namespaces.</p>
<p>As you can see, the main concepts in this language are classes and enumerations.</p>
<p>Enumerations define closed sets of named values helpful to describe domains. Classes on the other hand, have the classical meaning and properties or attributes can be defined for each class.</p>
<p>As usual in object languages each property has a type that could be primitive, an enum, a class type or a composed type.</p>
<p>The primitive data types supported are: string, bool, int, long, decimal, char, date, time &amp; datetime. That should be more than enough, for the moment.</p>
<p><em>A note to readers: data types here are <strong>platform neutral</strong>, they are not java string for example, neither a C# string. It was horrible for me to see in a lot of diagramming UML tools whose names I will not cite, early mapping types to implementation languages like java:string and similar things… I sure you understand me. Such feature could be nice if you are doing reverse engineering or documenting code (a bit late BTW). But definitely horrible to see when doing conceptual modelling and haven’t chosen yet the final implementation platform. </em></p>
<p>Another relevant feature of the language is the cardinality operators. Each property has a cardinality attached to it. Following a <strong><a title="Convention over Configuration" href="http://en.wikipedia.org/wiki/Convention_over_configuration">Convention over Configuration</a></strong> approach, simple properties like <code>string Name;</code> has an implicit cardinality <code>1..1</code>. You can also write to make it explicit in the language: <code>string 1..1 Name;</code></p>
<p>List of things, on the contrary has an implicit cardinality of <code>0..*</code> (zero to many). However you can further constraint it to <code>1..*</code> (compulsory multi-valued) or arbitrarily to any pair of minimal and maximal values <code>List&lt;Holes&gt; 18..24 GolfCampHoles;</code></p>
<p>The next feature to review is the <code>composition </code>keyword. A composition indicates that the property can’t exist alone, without its container. If the container is destroyed, the composed children will disappear also. Containment should be unique for each object; it cannot be contained in two direct containers at the same time. However, transitive containment it’s allowed.</p>
<p>There are some times, when we will be interested not only in one side of the relation between two classes, but also in the others’ end. That’s the case of the Children property. How about reaching the parents? To express it, the language introduces the <code>opposite</code> keyword. In our small sample it can be fully expressed (cardinalities included) as:</p>
<p><code>List&lt;Person&gt;0..* Children opposite 0:2 Parents;</code></p>
<p>Make sense, isn&#8217;t it? A person can have 0 or many children and let’s say zero, one or two well known parents.</p>
<p>I am still considering if the keyword <code>List&lt;T&gt;</code> could be also removed from the language. One can argue that cardinalities can be more than enough to express the same. However, I am still considering including other composed ADTs (abstract data types) in the future like <code>Set&lt;T&gt;</code> or <code>Stack&lt;T&gt;</code> to cite some of them. So, doors are still open to reconsider it.</p>
<p>Another feature we wanted to add is extensibility: If you are using this metamodel but needs to extend it for your own needs, the language is prepared to allow it. Just add another definition like this in another file and you got it:</p>
<pre class="brush:c-sharp">namespace Meta.TownModel
{
    class Town
    {
        Person Mayor;
    }
    class Person
    {
        List&lt;Person&gt;0..* Friends opposite 0..* Friends;
    }
    class City : Town   //&lt;--Inheritance sample
    {
        //extra city properties…
    }
}</pre>
<p>Now, your town must have a mayor and persons can have friends!</p>
<p>The language allows <strong>partial definitions</strong> in the same or different files. If the namespace and class name matches, the properties of the Town class and Person class are extended by merging partial definitions.</p>
<p>From the cardinality point of view, <code>Friends</code> is a curious symmetric relation. It is a many-to-many relation but both ends  (the roles) are normally called <code>Friends</code> and not: <code>MyFriends</code> and <code>OthersGuysConsideringMeAFriend</code> but how knows! }:)</p>
<p>As briefly seen, this language is useful to impose rules over data. It constrains the objects/concepts we can describe and the allowed properties.</p>
<h1>Intended usage</h1>
<p>OK. Some of you are probably thinking: and what in hell it this useful for?</p>
<p>The mail goal is to use the language to describe the domain in which we are planning to apply MDD. With this description, we will describe the concepts, properties and relations of the problem domain we are interested in.</p>
<p>If you are really, really pragmatic, and the analysis and design of the domain for the joy of it doesn’t satisfy you, well, consider then that we can derive (manually or better 100% generated if you prefer) some other interesting and more earthly artefacts:</p>
<ol>
<li>UML class models (structure), XMI, etc.</li>
<li><a title="XML Schema" href="http://en.wikipedia.org/wiki/XML_Schema_(W3C)" target="_blank">XML Schema</a> (XSD),</li>
<li><a title="Sql Schema" href="http://en.wikipedia.org/wiki/SQL" target="_blank">SQL Schema</a> (relational tables to persist the data),</li>
<li>Classes in Java (<a title="POJO" href="http://es.wikipedia.org/wiki/Plain_Old_Java_Object" target="_blank">POJOs</a>), C# (<a title="POCO" href="http://en.wikipedia.org/wiki/Plain_Old_CLR_Object" target="_blank">POCOs</a>), or any other language implementing a pure <a title="Domain Model" href="http://en.wikipedia.org/wiki/Domain_model" target="_blank">Domain Model</a></li>
<li>XML de/serialization code to read/save XML documents been conformant with (2)</li>
<li>Data Access code (<a title="Data Access Object" href="http://es.wikipedia.org/wiki/Data_Access_Object" target="_blank">DAO</a>) to connect (3) with (4).</li>
<li>Maps to your favorite <a title="Object Relational Mapping" href="http://en.wikipedia.org/wiki/Object-relational_mapping" target="_blank">ORM</a> tool to connect again (3) &amp; (4)</li>
<li>Etcetera, see <a title="Domain Driven Design" href="http://en.wikipedia.org/wiki/Domain-driven_design" target="_blank">Domain Driven Design</a> and other approaches.</li>
</ol>
<p>That’s all for today! This was the first DSL implemented in Essential targeting metamodeling. For more details, a full reference of the Essential.Meta language is <a title="Essential.Meta full language reference" href="http://pjmolina.com/metalevel/essential/essential-metamodel-ds">described here</a>.</p>
<p>On the next post, we will talk about a second DSL in Essential: the model (object level) language used to instantiate the concepts we just have created.</p>
<p>Thanks for reading! And please share your thoughts about it!</p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/02/essential-meta-a-concise-dsl-for-metamodeling/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Searching for the essential building bricks of MDD</title>
		<link>http://pjmolina.com/metalevel/2010/01/searching-for-the-essential-building-bricks-of-mdd/</link>
		<comments>http://pjmolina.com/metalevel/2010/01/searching-for-the-essential-building-bricks-of-mdd/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 17:41:58 +0000</pubDate>
		<dc:creator>Pedro J. Molina</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Code Generation]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[Essential]]></category>
		<category><![CDATA[MDD]]></category>

		<guid isPermaLink="false">http://pjmolina.com/metalevel/?p=403</guid>
		<description><![CDATA[A title like this could sound utopian and probably it is in the extreme, but at the same time provides two advantages: a suggestive title brings more blogs readers , and these kind of Quests keep me active developing and testing my ideas about MDD. Sorry for 1, the joke. But Let me explain 2 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.flickr.com/photos/cybergabi/2967324927/"><img class="alignnone" title="Red Brick Wall. Photo by Cibergabi via Flickr.com" src="http://farm4.static.flickr.com/3239/2967324927_5d4016ef2c.jpg" alt="Red Brick Wall. Photo by Cibergabi via Flickr.com" width="500" height="332" /></a></p>
<p>A title like this could sound utopian and probably it is in the extreme, but at the same time provides two advantages:</p>
<ol>
<li>a suggestive title brings more blogs readers <img src='http://pjmolina.com/metalevel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , and</li>
<li>these kind of Quests keep me active developing and testing my ideas about MDD.</li>
</ol>
<p>Sorry for 1, the joke. But Let me explain 2 a little further if you are interested:</p>
<p><a href="http://www.flickr.com/photos/cybergabi/2967324927/"></a></p>
<p>Some months ago, I started to develop a new tool for doing Model Driven Development. I always start new developments with contained expectatives. I consider most of them throw away propotypes just to test a new way of doing the same thing, but luckily, with less effort and better productivity. But when you found the way, you follow it again whenever you need it, isn’t it?</p>
<p>So, this time is one of those moments: I am quite happy with the results, and I will continue building on the top of it to make it grow.</p>
<p>Today (almost?) everyone agrees on code generation can make your life notably easier as long as you have:</p>
<ol>
<li>a stable domain,</li>
<li>a clear knowledge of your domain (domain expert) and,</li>
<li>tools: modelling editors, model checkers, and code generator adapted to your domain and your chosen target architecture and language.</li>
</ol>
<p>The trickiest one to get is, not surprisingly, the third one. And this issue: the quality and the applicability of the MDD tools is the main stopper when considering applying MDD for a software development project.</p>
<p>So, my motivation during years is not only to create code generators one more time, but do it in a way that it will be cheaper to obtain results in next projects. Therefore, reducing the requirements for the entry level will help the MDD adoption to gain speed.</p>
<p><em>Ok, wait a minute, are you reinventing the wheel again? Building another meta-code-generator?</em></p>
<p>Yes I know, there are very good and mature tools for doing MDD: such as EMF/GMF, XText, ATL, TextUml, Metacase, MS DSL Tools, etc.</p>
<p>However, guided by my intuition and the experiences in the domains I have worked in, I have a strong opinion on of how some things should be done and for the moment I didn’t found the perfect tool to satisfy my needs.</p>
<p>But, instead of complain, I decided to take to the action and add my two cents implementing my view about MDD tool support: taking the good ideas of the standards available and reinventing the parts that don’t fit.</p>
<h2>The tool</h2>
<p>After this introduction, the name of the tool is not going to surprise you. It is named <strong><a title="Essential " href="http://pjmolina.com/metalevel/essential/">Essential</a></strong>.</p>
<p>The goals of the project are following ones:</p>
<ul>
<li>to declaratively describe metamodels, models, templates, and transformations using textual DSLs</li>
<li>to provide a comfortable editor for each of these four pillars,</li>
<li>to provide model checkers to assure the integrity of the four, and</li>
<li>to build code generators and transformation interpreters to achieve the output we are looking for.</li>
</ul>
<p>In the next posts I will depict the DSLs used in Essential and some architectural choices. This will help us to discuss the essence of the problems found in MDD.</p>
<p>I want to thanks Javier Hernandez for his constant help, good discussions and counterpoints about choosing design alternatives for Essential. And also to <a title="Niko's Mini Factory Blog" href="http://nikofactory.blogspot.com/" target="_blank">Nicolas Cornaglia</a> and Ángel Marín for their active beta testing as early adopters and providing good test fields.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjmolina.com/metalevel/2010/01/searching-for-the-essential-building-bricks-of-mdd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
