TextUML Toolkit 1.6 declared!

5th August, 2010 - Posted by rafael.chaves - 7 Comments

The TextUML Toolkit version 1.6 has been released. It is the same RC1 build mentioned here a week ago. The listing on the Eclipse Marketplace has been updated, so in addition to the regular update site (http://abstratt.com/update/), if you are using Eclipse 3.6, you can get it even more conveniently using the brand new Eclipse Marketplace Client.

Take a look at the new notation features:

  • preconditions on operations
operation withdraw(amount : Real);
precondition { amount > 0 and amount < self.balance }
begin
    self.balance := self.balance - amount;
end;
  • derived properties
reference employees : Employee[*]

/* calculated field */
derived attribute employeeCount : Integer := ():Integer { return self->employees.size() };
  • initial values on properties
attribute available : Boolean := true;

You can also try these new features online on AlphaSimple. Sign up or start a guest session to create, validate and run your models on the spot, there is nothing to install!

7 Comments


Hi Rafael,
I didn’t find info about the allowed syntax in the operation code. Could you please give me a hint ?
Thanks,
Walter


Hi Walter,

I have been postponing documenting the syntax for behavior until someone asked for it… :)

Will let you know when that has been done. Meanwhile, the TextUML EBNF might help.


Thank you. Are you following some standard ?


Sorry, standard for what? The resulting models follow as much the UML specification as possible. Areas where we need things UML didn’t do (for instance, closures and meta-references) were addressed by using a profile. The notation is ‘proprietary’, as until very recently, the OMG didn’t have any standards for textual notations (but the OMG does not require notation compliance).


>>standard for what?<<
I’m asking if the operation (and precondition) language is based in some other language…


I see now.

The abstract syntax is UML (action semantics) with an extension profile to support a few things not in UML (mostly closures). The concrete syntax/notation is not standard (there isn’t one).


Walter, I started documenting the action language part of TextUML here:

https://sourceforge.net/apps/mediawiki/textuml/index.php?title=TextUML_Action_Language

It’s covering just some of the features now. Let me know if the documentation lacks clarity.

Leave a reply

Name *

Mail *

Website