mps.baselang.statemachine usage
Hi,
when defining a simple class like this
public class TestClass extends <none> implements <none> {
<<static fields>>
<<static initializer>>
<<fields>>
<<properties>>
<<initializer>>
<<constructor>>
public event event();
<<static methods>>
<<nested classifiers>>
}
and adding a statemachine to this class like:
state machine for TestClass {
<listeners>
initial state{DRAFT} {
on event do {<no statements>} transit to {DONE}
}
final state{DONE} {}
}
it seems that the constructor, which sets the statemachine to initial draft state does not get generated ... right?
Has anyone a clue, what i m doing wrong?
Dan
when defining a simple class like this
public class TestClass extends <none> implements <none> {
<<static fields>>
<<static initializer>>
<<fields>>
<<properties>>
<<initializer>>
<<constructor>>
public event event();
<<static methods>>
<<nested classifiers>>
}
and adding a statemachine to this class like:
state machine for TestClass {
<listeners>
initial state{DRAFT} {
on event do {<no statements>} transit to {DONE}
}
final state{DONE} {}
}
it seems that the constructor, which sets the statemachine to initial draft state does not get generated ... right?
Has anyone a clue, what i m doing wrong?
Dan
Please sign in to leave a comment.
I thunk StateMachine language is a little bit outdated (it's not a part of MPS build AFAIK). We'll most probably review and update it as a part of next MPS release.