Questions tagged [umple]

Umple is a textual language for writing models and generating code using abstractions such as associations, state machines and composite structure. Developers can embed models in languages such as Java, PhP and C++. Use this tag for questions referring to the Umple language or Umple tools such as the compiler and Eclipse plugin.

Umple is an open-source technology for creating and analysing models of software systems as well as generating code from the models. Models are are written textually and can embed code in multiple languages (Java, PhP and C++ have the greatest support).

It can be used in a variety of ways:

  • You can simply use it as a tool to edit UML class diagrams, state diagrams or composite structure diagrams. Umple will help you find errors in these diagrams. You describe the diagrams in a simple textual syntax; for class diagrams, you can edit the diagrams, with the text being automatically updated as you edit the diagram.

  • You can use Umple to quickly produce code for a small part of a larger system (e.g. a state machine or a data model).

  • You can use Umple as a preprocessor, adding modeling features to your existing code base.

  • You can use Umple to build entire large systems following model-driven development. In fact the Umple compiler is written entirely in Umple.

Although Umple models are based on UML concepts, it has many feaures that relate to its textual form: It enables modeling (and programming) using traits and mixins; it allows models to be versioned as is standard-practice in programming langauges, and Umple comes with its own built-in sophisticated template language for generating textual output. This can be used to replace the Jet language (and there is a tool for converting Jet to Umple) Umple comes with a parsing library that can be used to produce domain-specific languages that work with Umple.

Umple can be used in many kinds of applications from data-centric to real-time. For the latter it has a variety of concurrency capabilities, including concurrently-executing state machine do-activities, queued state machines, ports and active objects.

More information about Umple is here, and its online environment is here It has an Eclipse plugin and can be used on the command line too.

6 questions
1
vote
1 answer

Umple -- Custom constructors

I've just started using Umple and have come across a case where neither the "before" nor "after" directives seem to work for injecting code into a constructor. Consider the following Umple code: class Cup { * -> 5 Die dice; after…
1
vote
1 answer

Method '*' has a name conflict with automatic generated getter/setter methods for attribute '*' in class '*'. Please use a different method name

I have the following Umple model class SomeClass{ att1; Boolean setAtt1(String aAtt1){ //Do something } } I need to override the setter method of att1. When I try to do it as in the model above, I get a warning. What is the appropriate…
orabis
  • 2,749
  • 2
  • 13
  • 29
0
votes
1 answer

Is there an "in state" predicate in Umple's state machines?

In Umple state machines' guards, I'm missing an "in state" predicate that returns true if the state machine is in a given state. Does this function exists?
alex137
  • 178
  • 1
  • 8
0
votes
2 answers

Can we make UML object diagrams using UmpleOnline?

A UML object diagram contains specific real objects and links to show relationships. The objects are merely instances of classes. Why bother to make an object model? The multiplicity rules in the class diagram are adhered to in the object diagram.…
bmackay
  • 1
  • 2
0
votes
1 answer

how to render a better startchart graph on umple?

The umple is a very good to design UML statecharts, with rich set of semantic attributes in text mode. However, the embedded mechanism to draw correspondent statechart has scarce resources to show important informations (e.g. guards, exit, entry,…
0
votes
1 answer

Is there an Javascript code generator available for Umple?

I'm looking for a Umple converter that would generate Javascript classes/methods from Umple, similar to what the Java code generator for Umple. I am not interested in graphical/diagram representations, just an Umple->Javascript conversion.