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

User Manual    [Previous]   [Next]   

W057 No Events in Pooled State Machine

Umple semantic warning issued when a pooled state machine does not have events to be pooled

A pooled state machine must have events to be pooled, or this warning will be issued.

Example

//The warning will be generated
//as there are no events to be
//pooled in the state machine sm
class A {
  pooled sm {
    s0 {
    }
    s1 {
    }
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The following avoids the warning
//by adding an event to the state machine
class A {
  pooled sm {
    s0 {
      e -> s1;
    }
    s1 {
    }
  }
}
      

Load the above code into UmpleOnline