list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E060 Pooled and Regular State Machines in Class

Umple semantic error reported when a class contains one or more pooled state machine and regular state machine

An Umple class cannot contain both a pooled state machine and a regular state machine.
The state machines must be of the same type (e.g. both pooled), or else distributed in more than one class.

Example

//The error will be generated as 
//class A contains both a regular 
//and a pooled state machine
class A {
  pooled sm1 {
    s0 {
      e -> s1;
    }
    s1 {
    }
  }
  
  sm2 {
    s0 {
      e -> s1;
    }
    s1 {
    }
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The error can be fixed by having each
//state machine in a different class
class A {
  pooled sm1 {
    s0 {
      e -> s1;
    }
    s1 {
    }
  }
}

class B {
  sm2 {
    s0 {
      e -> s1;
    }
    s1 {
    }
  }
}
      

Load the above code into UmpleOnline