オルタナティブ・ブログ > An Agile Way >

アジャイルに行こう!

Oslo "M" Language converted from JUDE UML editor

»

海外の人にも見てもらいたいので、今日は英語で書こうと思います。PDC、盛り上がっていますね。ぼくは特にモデリングに興味があるので、OsloとM言語に食い付いています。

In Microsoft PDC, a new modeling technology "Oslo" appeared, with a model schema definition language "M". Using "M", you can define Oslo repository schemas in a programmer-friendly (not DBA friendly SQL-like) syntax.

Here's a code fragment of "M", defining "ServiceContract".

module Contracts {
  import Messages;
  type ServiceContract {
    Name : Text;
    Operations : ServiceOperation*;
  }
  type ServiceOperation {
    Name : Text;
    Action : Text;
    Request : Messages.MessageContract?;
    Response : Messages.MessageContract?;
  }
}

I tried modeling this schema using JUDE, and started developing a simple "UML to M" converter using JUDE API. With this converter, you can generate "M" language from standard UML2.0 class diagram. And here's the UML diagram drawn by using JUDE. The converter is written in Java on JUDE API.

Sampleumltom

Comment(0)