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

User Manual    [Previous]   [Next]   

E058 Regular Queued and Pooled State Machines in Class

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

An Umple class cannot contain in the same class a queued state machine, a pooled state machine and/or a regular state machine.
All the state machines in a given class must be of the same type (pooled, queued, regular), or could be distributed in different classes.

Example

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

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 {
  queued sm2 {
    s0 {
      e -> s1;
    }
    s1 {
    }
  }
}

class C { 
  sm3 {
  }
}
      

Load the above code into UmpleOnline