Skip to main content
Jump to: navigation, search

Difference between revisions of "M2M/Benchmarks/UML2PlatformOWL"

m (Running the benchmark)
m (Running the benchmark)
Line 45: Line 45:
   Memory:  8 GB RAM, 1 TB harddisk
   Memory:  8 GB RAM, 1 TB harddisk
   OS:      Fedora Linux 7, x86_64
   OS:      Fedora Linux 7, x86_64
   Runtime: 95 minutes []
   Runtime: 95 minutes [], version r7103

Revision as of 11:35, 29 October 2007

UML2 API to Platform Ontology transformation

A full introduction to this transformation can be found here : [1].

This page describes how to install and run the benchmark.

System requirements

  • Eclipse 3.3 + EMF 2.3 + UML 2.1
  • IODT EODM 1.1.2 [2]
  • Subclipse 1.2 [3]
  • Web server running on local computer (E.g. Apache)
  • 4 GB RAM, of which 2GB is available to Eclipse

Downloading from Subversion

  • Select "Window -> Open Perspective -> Other" from the Eclipse menu bar.
  • Select "SVN Repository Exploring" from the list and click "OK".
  • Under the "SVN Repository" tab, right-click and select "New -> Repository Location".
  • In the "Add SVN Repository" dialog, enter as "Url" and click "Finish".
  • Open the newly created repository and select the "platformkit-java" subfolder.
  • Right-click on the selected folder, then select "Checkout..."
  • Click "Finish" in the "Checkout from SVN" dialog.

You should now have a new project named "platformkit-java" added to your project list. The Java source files in the project will likely fail to build because of missing dependencies. This is not important for running this benchmark, however.

Running the benchmark

The benchmark runs from an Ant build.xml [4] script and invokes the UML2PackageAPIOntology.atl [5] transformation several times.

The build.xml script is currently optimised for an 8-core machine, because it starts up as much as 8 transformation runs in parallel. You may edit the build.xml script in "/platformkit-java/transformations/" to adjust the "threadCount" property to the amount of CPUs/cores/hardware execution threads that your test machine has.

The benchmark can now be started as follows:

  • Open the "empty.owl" file in the EODM editor and browse it. This ensures that EODM is activated.
  • Right-click the "build.xml" file in "/platformkit-java/transformations/" and select "Run As -> Ant Build...".
  • In the "JRE" tab, select "Run in the same JRE as the workspace".
  • In the "Common" tab, select "File:" for "Standard Input and Output".
  • Specify "${workspace_loc:/platformkit-java/transformations/build.log}" as output file.
  • Click "Run".

Now, sit back until the benchmark finishes. To give you an idea how long it takes, these are the figures for our test machine:

 CPUs:    2 x Intel Core2 Quad @ 2.33GHz
 Memory:  8 GB RAM, 1 TB harddisk
 OS:      Fedora Linux 7, x86_64
 Runtime: 95 minutes [6], version r7103

Copyright © Eclipse Foundation, Inc. All Rights Reserved.