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

User Manual    [Previous]   [Next]   

E075 UserDefinedStateMachineCannotBeNamedTimer

Umple error reported when a user-defined state machine is named 'timer'

In Umple, 'timer' cannot be used as a state machine name. This is because generated code for 'after' statements creates timers and there would be a naming conflict in the generated code. To fix the problem, give the state machine a slightly different name,

Example

class X {
  timer {
    s1 {
      after(1) -> s2;
    }
    s2 {
    }
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

class X {
  sm_timer {
    s1 {
      after(1) -> s2;
    }
    s2 {
    }
  }
}
      

Load the above code into UmpleOnline