blob: d3d50ecd677384842ed151da1dc2f281357cff97 [file] [log] [blame]
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="lang:clipboard.copied" content="Copied to clipboard">
<meta name="lang:search.language" content="en">
<meta name="lang:search.pipeline.stopwords" content="True">
<meta name="lang:search.pipeline.trimmer" content="True">
<meta name="lang:search.result.none" content="No matching documents">
<meta name="lang:search.result.one" content="1 matching document">
<meta name="lang:search.result.other" content="# matching documents">
<meta name="lang:search.tokenizer" content="[\s\-]+">
<link rel="shortcut icon" href="../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.4.2">
<title>Examples - Epsilon</title>
<link rel="stylesheet" href="../assets/stylesheets/application.30686662.css">
<link rel="stylesheet" href="../assets/stylesheets/application-palette.a8b3c06d.css">
<meta name="theme-color" content="">
<script src="../assets/javascripts/modernizr.74668098.js"></script>
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700|Roboto+Mono&display=fallback">
<style>body,input{font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
<link rel="stylesheet" href="../assets/fonts/material-icons.css">
<link rel="stylesheet" href="../assets/stylesheets/extra.css">
<link rel="stylesheet" href="../assets/stylesheets/mermaid.css">
<link rel="stylesheet" href="../assets/javascript/google-code-prettify/prettify.css">
<link rel="stylesheet" href="https://unpkg.com/mermaid@8.5.1/dist/mermaid.css">
<!-- FAVICON -->
<link rel="apple-touch-icon" sizes="76x76" href="/assets/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicon-16x16.png">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<link rel="shortcut icon" href="/assets/images/favicon.ico">
</head>
<body dir="ltr" data-md-color-primary="black" data-md-color-accent="orange">
<svg class="md-svg">
<defs>
</defs>
</svg>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
<a href="#examples" tabindex="1" class="md-skip">
Skip to content
</a>
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink">
<a href=".." title="Epsilon" class="md-header-nav__button md-logo">
<img src="../assets/images/epsilon-white-background.png" width="24" height="24">
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic">
Epsilon
</span>
<span class="md-header-nav__topic">
Examples
</span>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
<label class="md-icon md-search__icon" for="__search"></label>
<button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
&#xE5CD;
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="result">
<div class="md-search-result__meta">
Type to start searching
</div>
<ol class="md-search-result__list"></ol>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
<a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/" title="Go to repository" class="md-source" data-md-source="">
<div class="md-source__repository">
Git repository @ Eclipse
</div>
</a>
</div>
</div>
</div>
</nav>
</header>
<div class="md-container">
<main class="md-main" role="main">
<div class="md-main__inner md-grid" data-md-component="container">
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" data-md-level="0">
<label class="md-nav__title md-nav__title--site" for="__drawer">
<a href=".." title="Epsilon" class="md-nav__button md-logo">
<img src="../assets/images/epsilon-white-background.png" width="48" height="48">
</a>
Epsilon
</label>
<div class="md-nav__source">
<a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/" title="Go to repository" class="md-source" data-md-source="">
<div class="md-source__repository">
Git repository @ Eclipse
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href=".." title="Home" class="md-nav__link">
Home
</a>
</li>
<li class="md-nav__item">
<a href="../download/" title="Download" class="md-nav__link">
Download
</a>
</li>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Documentation
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
<label class="md-nav__title" for="nav-3">
Documentation
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../doc/" title="Overview" class="md-nav__link">
Overview
</a>
</li>
<li class="md-nav__item">
<a href="../doc/emc/" title="Model connectivity" class="md-nav__link">
Model connectivity
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-3-3" type="checkbox" id="nav-3-3">
<label class="md-nav__link" for="nav-3-3">
Languages
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="2">
<label class="md-nav__title" for="nav-3-3">
Languages
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../doc/eol/" title="Object language (EOL)" class="md-nav__link">
Object language (EOL)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/egl/" title="Code generation (EGL)" class="md-nav__link">
Code generation (EGL)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/evl/" title="Model validation (EVL)" class="md-nav__link">
Model validation (EVL)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/etl/" title="Model transformation (ETL)" class="md-nav__link">
Model transformation (ETL)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/ecl/" title="Model comparison (ECL)" class="md-nav__link">
Model comparison (ECL)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/eml/" title="Model merging (EML)" class="md-nav__link">
Model merging (EML)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/epl/" title="Pattern matching (EPL)" class="md-nav__link">
Pattern matching (EPL)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/flock/" title="Model Migration (Flock)" class="md-nav__link">
Model Migration (Flock)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/emg/" title="Model generation (EMG)" class="md-nav__link">
Model generation (EMG)
</a>
</li>
<li class="md-nav__item">
<a href="../doc/eunit/" title="Unit testing (EUnit)" class="md-nav__link">
Unit testing (EUnit)
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-3-4" type="checkbox" id="nav-3-4">
<label class="md-nav__link" for="nav-3-4">
Tools
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="2">
<label class="md-nav__title" for="nav-3-4">
Tools
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../doc/picto/" title="Picto" class="md-nav__link">
Picto
</a>
</li>
<li class="md-nav__item">
<a href="../doc/flexmi/" title="Flexmi" class="md-nav__link">
Flexmi
</a>
</li>
<li class="md-nav__item">
<a href="../doc/eugenia/" title="Eugenia" class="md-nav__link">
Eugenia
</a>
</li>
<li class="md-nav__item">
<a href="../doc/exeed/" title="Exeed" class="md-nav__link">
Exeed
</a>
</li>
<li class="md-nav__item">
<a href="../doc/modelink/" title="Modelink" class="md-nav__link">
Modelink
</a>
</li>
<li class="md-nav__item">
<a href="../doc/hutn/" title="HUTN" class="md-nav__link">
HUTN
</a>
</li>
<li class="md-nav__item">
<a href="../doc/workflow/" title="Workflow (Ant tasks)" class="md-nav__link">
Workflow (Ant tasks)
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../doc/articles/" title="Articles" class="md-nav__link">
Articles
</a>
</li>
<li class="md-nav__item md-nav__item--active">
<input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
Examples
</label>
<a href="./" title="Examples" class="md-nav__link md-nav__link--active">
Examples
</a>
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#epsilon-object-language" class="md-nav__link">
Epsilon Object Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-transformation-language" class="md-nav__link">
Epsilon Transformation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-generation-language" class="md-nav__link">
Epsilon Generation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-validation-language" class="md-nav__link">
Epsilon Validation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-merging-language" class="md-nav__link">
Epsilon Merging Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-flock" class="md-nav__link">
Epsilon Flock
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-model-generation-language" class="md-nav__link">
Epsilon Model Generation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-pattern-language" class="md-nav__link">
Epsilon Pattern Language
</a>
</li>
<li class="md-nav__item">
<a href="#combining-the-epsilon-languages" class="md-nav__link">
Combining the Epsilon Languages
</a>
</li>
<li class="md-nav__item">
<a href="#eugenia" class="md-nav__link">
EuGENia
</a>
</li>
<li class="md-nav__item">
<a href="#eunit" class="md-nav__link">
EUnit
</a>
</li>
<li class="md-nav__item">
<a href="#even-more-examples" class="md-nav__link">
Even more examples
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="https://www.youtube.com/epsilondevs" title="Screencasts" class="md-nav__link">
Screencasts
</a>
</li>
<li class="md-nav__item">
<a href="https://www.youtube.com/playlist?list=PLRwHao6Ue0YUecg7vEUQTrtySIWwrd_mI" title="Lectures" class="md-nav__link">
Lectures
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-3-9" type="checkbox" id="nav-3-9">
<label class="md-nav__link" for="nav-3-9">
Javadoc
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="2">
<label class="md-nav__title" for="nav-3-9">
Javadoc
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="https://download.eclipse.org/epsilon/2.0/javadoc/" title="Stable" class="md-nav__link">
Stable
</a>
</li>
<li class="md-nav__item">
<a href="https://download.eclipse.org/epsilon/interim/javadoc/" title="Interim" class="md-nav__link">
Interim
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
<label class="md-nav__link" for="nav-4">
Issues
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
<label class="md-nav__title" for="nav-4">
Issues
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=epsilon" title="Report a new issue" class="md-nav__link">
Report a new issue
</a>
</li>
<li class="md-nav__item">
<a href="https://bugs.eclipse.org/bugs/buglist.cgi?product=epsilon&cmdtype=doit&order=Reuse+same+sort+as+last+time&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_severity=minor&bug_severity=trivial" title="View open bugs" class="md-nav__link">
View open bugs
</a>
</li>
<li class="md-nav__item">
<a href="https://bugs.eclipse.org/bugs/buglist.cgi?product=epsilon&cmdtype=doit&order=Reuse+same+sort+as+last+time&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_severity=enhancement" title="View enhancement requests" class="md-nav__link">
View enhancement requests
</a>
</li>
<li class="md-nav__item">
<a href="https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=RESOLVED&list_id=17694438&product=epsilon&query_format=advanced" title="View issues resolved since the last stable release" class="md-nav__link">
View issues resolved since the last stable release
</a>
</li>
<li class="md-nav__item">
<a href="https://bugs.eclipse.org/bugs/buglist.cgi?product=epsilon&cmdtype=doit&order=Reuse+same+sort+as+last+time" title="View all issues" class="md-nav__link">
View all issues
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
<label class="md-nav__link" for="nav-5">
Community
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
<label class="md-nav__title" for="nav-5">
Community
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-5-1" type="checkbox" id="nav-5-1">
<label class="md-nav__link" for="nav-5-1">
Who is using Epsilon?
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="2">
<label class="md-nav__title" for="nav-5-1">
Who is using Epsilon?
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../users/" title="Industry" class="md-nav__link">
Industry
</a>
</li>
<li class="md-nav__item">
<a href="../users/education/" title="Education" class="md-nav__link">
Education
</a>
</li>
<li class="md-nav__item">
<a href="../users/open-source/" title="Open-source projects" class="md-nav__link">
Open-source projects
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="https://projects.eclipse.org/projects/modeling.epsilon/who" title="Who is developing Epsilon?" class="md-nav__link">
Who is developing Epsilon?
</a>
</li>
<li class="md-nav__item">
<a href="https://www.eclipse.org/forums/index.php/f/22/" title="Forum" class="md-nav__link">
Forum
</a>
</li>
<li class="md-nav__item">
<a href="../labs/" title="Epsilon Labs" class="md-nav__link">
Epsilon Labs
</a>
</li>
<li class="md-nav__item">
<a href="../faq/" title="Frequently asked questions" class="md-nav__link">
Frequently asked questions
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../branding/" title="Branding" class="md-nav__link">
Branding
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#epsilon-object-language" class="md-nav__link">
Epsilon Object Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-transformation-language" class="md-nav__link">
Epsilon Transformation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-generation-language" class="md-nav__link">
Epsilon Generation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-validation-language" class="md-nav__link">
Epsilon Validation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-merging-language" class="md-nav__link">
Epsilon Merging Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-flock" class="md-nav__link">
Epsilon Flock
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-model-generation-language" class="md-nav__link">
Epsilon Model Generation Language
</a>
</li>
<li class="md-nav__item">
<a href="#epsilon-pattern-language" class="md-nav__link">
Epsilon Pattern Language
</a>
</li>
<li class="md-nav__item">
<a href="#combining-the-epsilon-languages" class="md-nav__link">
Combining the Epsilon Languages
</a>
</li>
<li class="md-nav__item">
<a href="#eugenia" class="md-nav__link">
EuGENia
</a>
</li>
<li class="md-nav__item">
<a href="#eunit" class="md-nav__link">
EUnit
</a>
</li>
<li class="md-nav__item">
<a href="#even-more-examples" class="md-nav__link">
Even more examples
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content">
<article class="md-content__inner md-typeset">
<h1 id="examples">Examples<a class="headerlink" href="#examples" title="Permanent link">&para;</a></h1>
<p>Each example in this page comes in the form of an Eclipse project, which is stored under the <a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/tree/examples/">examples</a> dirctory of Epsilon's Git repository. To run an example, you need to:</p>
<ol>
<li>Clone the repository</li>
<li>Import the project in question into your Eclipse workspace</li>
<li>Register any Ecore metamodels in it</li>
<li>Right click the <code>.launch</code> file in it</li>
<li>Select <code>Run as...</code> and click the first item in the menu that pops up</li>
</ol>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>To avoid copying the same metamodels across different example projects, some projects reuse Ecore metamodels stored in the <a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/tree/examples/org.eclipse.epsilon.examples.metamodels">org.eclipse.epsilon.examples.metamodels</a> project.</p>
</div>
<p>If you are unable to run any of the examples below, please <a href="../forum">give us a shout</a>.</p>
<h2 id="epsilon-object-language">Epsilon Object Language<a class="headerlink" href="#epsilon-object-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.buildooinstance">Create an OO model with EOL</a>: In this example we use EOL to programmatically construct a model that conforms to an object-oriented metamodel.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.modelmodification">Modify a Tree model with EOL</a>: In this example we use EOL to programmatically modify a model that conforms to a Tree metamodel and store the modified version as a new model.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.calljava">Call Java code from Epsilon</a>: In this example, we create a JFrame from EOL. The aim of this example is to show how to call Java code from within Epsilon languages.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.tools">Creating custom Java tools for Epsilon</a>: In this example, we create a custom tool for Epsilon.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.plainxml">Building and querying plain XML documents with EOL</a>: In this example, we use the plain XML driver of Epsilon to build and query an XML document that is not backed by a XSD/DTD.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.plainxml.copyfromtemplate">Cloning and copying XML elements across documents with EOL</a>: In this example, we use the plain XML driver of Epsilon to clone and copy XML elements across different documents with EOL.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.clone">Cloning EMF model elements with EOL</a>: In this example, we demonstrate how the EmfTool built-in tool can be used to perform deep-copy (cloning) of EMF model elements using EOL.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.profiling">Profiling and caching in EOL</a>: This example demonstrates the caching capabilities and the profiling tools provided by Epsilon.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.xsdxml">Manage XSD-backed XML files with EOL</a>: In this example we demonstrate using EOL to query an XSD-backed XML file.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.emc.simulink.examples">Manage Matlab Simulink/Stateflow blocks from Epsilon</a>: In this example we show how to manage Matlab Simulink/Stateflow blocks with EOL.</li>
</ul>
<h2 id="epsilon-transformation-language">Epsilon Transformation Language<a class="headerlink" href="#epsilon-transformation-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.tree2graph">Transform a Tree model to a Graph model with ETL</a>: In this example, we use ETL to transform a model that conforms to a Tree metamodel to a model that conforms to a Graph metamodel.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.rss2atom">Transform an RSS feed to an Atom feed using ETL</a>: In this example, we use ETL and the plain XML driver to transform an RSS feed to an Atom feed.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.etl.flowchart2html">Experiment with the different types of transformation rule in ETL using a Flowchart-to-HTML transformation.</a>: In this example, we show the different types of transformation rule that are provided by ETL, including plain, abstract, lazy, primary and greedy rules. We also explore rule inheritance and rules that generate more than model element. We transform from a Flowchart model to an HTML model.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.oo2db">Transform an OO model to a DB model with ETL</a>: In this example, we use ETL to transform a model that conforms to an Object-Oriented metamodel to a model that conforms to the Database metamodel.</li>
</ul>
<h2 id="epsilon-generation-language">Epsilon Generation Language<a class="headerlink" href="#epsilon-generation-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.egl.flowchart">Experiment with the different features of EGL using a Flowchart-to-HTML transformation.</a>: In this example, we explore the main features of EGL by generating HTML text from an EMF model of a flowchart. We demonstrate the EGX coordination language, code formatters, preserving hand-written text with protected regions and generating a fine-grained trace model.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.egl.library">Generating HTML pages from an XML document</a>: In this example, we use the plain XML driver of Epsilon in the context of an EGL model-to-text transformation.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.egldoc">Generate HTML documentation from an Ecore metamodel with EGL</a>: In this example, we demonstrate how EGL can be used to generate HTML documentation from an Ecore metamodel.</li>
</ul>
<h2 id="epsilon-validation-language">Epsilon Validation Language<a class="headerlink" href="#epsilon-validation-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.validateoo">Validate an OO model with EVL</a>: In this example, we use EVL, to express constraints for models that conform to an Object-Oriented metamodel.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.evl.intermodel">Validate an OO model against a DB model with EVL</a>: In this example, we use EVL to expressing inter-model constraints.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.shortestpath">Dijkstra's shortest path algorithm with EOL/EVL</a>: In this example, we use EOL and EVL to implement Dijkstra's shortest path algorithm.</li>
</ul>
<h2 id="epsilon-merging-language">Epsilon Merging Language<a class="headerlink" href="#epsilon-merging-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.mergeentitywithvocabulary">Heterogeneous Model Merging with ECL/EML</a>: In this example, we demonstrate merging heterogeneous models using ECL and EML.</li>
</ul>
<h2 id="epsilon-flock">Epsilon Flock<a class="headerlink" href="#epsilon-flock" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.flock.petrinets">Migrate Petri net models with Epsilon Flock</a>: In this example we demonstrate how to migrate a model in response to metamodel changes with Epsilon Flock.</li>
</ul>
<h2 id="epsilon-model-generation-language">Epsilon Model Generation Language<a class="headerlink" href="#epsilon-model-generation-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.emg.petrinet">Generate PetriNet models using EMG</a>: In this example we demonstrate how to generate PetriNet elements and how to define relations between them.</li>
</ul>
<h2 id="epsilon-pattern-language">Epsilon Pattern Language<a class="headerlink" href="#epsilon-pattern-language" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.epl">Find pattern matches in railway models using EPL</a>: In this example we demonstrate how to find matches of the patterns in the Train Benchmark models with EPL.</li>
</ul>
<h2 id="combining-the-epsilon-languages">Combining the Epsilon Languages<a class="headerlink" href="#combining-the-epsilon-languages" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.standalone">Use Epsilon in standalone Java applications</a>: In this example, we demonstrate how Epsilon languages can be used in standalone, non-Eclipse-based Java applications.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.mddtif">MDD-TIF complete case study</a>: In this example, we demonstrate how different languages in Epsilon (EVL, EGL, EML, ETL and ECL) can be combined to implement more complex operations.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.oomerging">Compare, validate and merge OO models</a>: In this example, we use ECL to compare two OO models, then use EVL to check the identified matches for consistency and finally EML to merge them.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.workflow.flowchart">Construct a workflow to orchestrate several Epsilon programs with Ant</a>: In this example we demonstrate how to use the built-in Epsilon Ant tasks to define a workflow by combining several Epsilon programs. Here, we validate, transform and generate HTML from a flowchart model.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.workflow.extension.example">Provide custom/extended tasks for the workflow</a>: In this example we demonstrate how you can define your own ANT tasks that extend the Epsilon workflow tasks.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.workflow.transactions">Use model transactions in a workflow</a>: In this example we demonstrate using the ant-contrib try/catch tasks and the Epsilon model transactions tasks to conditionally rollback changes in models modified in a workflow.</li>
</ul>
<h2 id="eugenia">EuGENia<a class="headerlink" href="#eugenia" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eugenia.examples.friends">Implement a GMF editor with image nodes using EuGENia</a>: In this example we use EuGENia to implement a GMF editor with images instead of shapes for nodes.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eugenia.examples.endlabels">Implement a GMF editor with end labels in connections using EuGENia</a>: In this example we use EuGENia to implement a GMF editor with end labels in connections.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eugenia.examples.flowchart">Implement a flowchart GMF editor using EuGENia</a>: In this example we use EuGENia to implement a flowchart GMF editor, and EOL to polish its appearance.</li>
</ul>
<h2 id="eunit">EUnit<a class="headerlink" href="#eunit" title="Permanent link">&para;</a></h2>
<ul>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eunit.examples.eol">Test EOL scripts with EUnit</a>: In this example we show the basic structure of an EUnit test, some useful assertions for the basic types and how to test for errors and define our own assertions.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eunit.examples.bindings">Reuse EUnit tests with model and data bindings</a>: In this example we show how the same EUnit test can be reused for several models, and how EUnit supports several levels of parametric tests.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eunit.examples.evl">Test a model validation script with EUnit</a>: In this example we show how a model validation script written in EVL can be tested with EUnit, using the exportAsModel attribute of the EVL workflow task.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eunit.examples.egl.files">Test a model-to-text transformation with EUnit</a>: In this example we show how a model-to-text transformation written in EGL can be tested with EUnit and HUTN.</li>
<li><a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.eunit.examples.junit">Integrate EUnit into a standard JUnit plug-in test</a>: In this example we show how to write an EUnit/JUnit plug-in test of an ETL transformation.</li>
</ul>
<h2 id="even-more-examples">Even more examples<a class="headerlink" href="#even-more-examples" title="Permanent link">&para;</a></h2>
<p>More examples are available in the <a href="https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/">examples</a> folder of the Git repository.</p>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid">
<a href="../doc/articles/" title="Articles" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
<div class="md-flex__cell md-flex__cell--shrink">
<i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
</div>
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis">
<span class="md-footer-nav__direction">
Previous
</span>
Articles
</span>
</div>
</a>
<a href="../users/" title="Industry" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis">
<span class="md-footer-nav__direction">
Next
</span>
Industry
</span>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
</div>
</a>
</nav>
</div>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
Copyright © Eclipse Foundation, Inc. All Rights Reserved.
</div>
powered by
<a href="https://www.mkdocs.org">MkDocs</a>
and
<a href="https://squidfunk.github.io/mkdocs-material/">Material for MkDocs</a>
</div>
<div class="md-footer-copyright epsilon-eclipse-links">
<ul>
<li><a href="https://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li>
<li><a href="https://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
<li><a href="https://www.eclipse.org/legal/copyright.php">Copyright Agent</a></li>
</ul>
</div>
</div>
</div>
</footer>
</div>
<script src="../assets/javascripts/application.c648116f.js"></script>
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
<script src="https://unpkg.com/mermaid@8.5.1/dist/mermaid.min.js"></script>
<script src="../assets/javascript/mermaid.js"></script>
<script src="../assets/javascript/jquery.js"></script>
<script src="../assets/javascript/google-code-prettify/prettify.js"></script>
<script src="../assets/javascript/google-code-prettify/lang-emfatic.js"></script>
<script src="../assets/javascript/google-code-prettify/lang-epsilon.js"></script>
<script src="../assets/javascript/google-code-prettify/prettyprint.js"></script>
</body>
</html>