1
2
3
4
5
6
7 package org.state4j.sm;
8
9 import java.util.Map;
10
11 /***
12 * @author andrea
13 *
14 */
15 public interface SmCompositeState extends SmState {
16
17 SmState getState(String name);
18
19 Map<String, SmState> getStates();
20
21 boolean hasState(String name);
22
23 boolean hasStates();
24
25 void setStates(Map<String, SmState> states);
26
27 SmState getActiveSubstate(SmContext cntx);
28 boolean hasActiveSubstate(SmContext cntx);
29
30 SmCompositeState getLCA(SmState state1, SmState state2);
31 SmState getInitialState();
32
33 void registerLCA(SmTransition transition);
34 }