list of dots University of Ottawa logo / Université d'Ottawa

User Manual    [Previous]   [Next]   

Active Objects

An active object is an object that, when constructed, runs its own thread. This is indicated in Umple by the 'active' keyword followed by a block of code. A collection of active objects, working together, constitute a concurrent system.

Additional Umple features are under development to allow for sending signals to and from concurrent objects.


class A {
  active {
    System.out.println("Object "+getName()+"is now active");
    for (int i = 1; i < 10; i++) {
      System.out.println(" "+name+" was here");

  public static void main(String[] argv) {
    new A("1");
    new A("2");


Load the above code into UmpleOnline



activeDefinition : [=active] [[codeLangs]] [name]? [[moreCode]]+